Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

GoDebian_api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

GoDebian_api

Python client for go.debian.net and deb.li URL shortening service

  • 1.1.0.dev1
  • PyPI
  • Socket score

Maintainers
1

Documentation and Wiki

Python client for go.debian.net and deb.li URL shortening service

Full documentation is available at https://wiki.debian.org/deb.li

Features

  • Consume deb.li and go.debian.net API | URL shoretening service
  • Check for IP whitelist for this service
  • Add new URL against randomly generated key
  • Add static URL against pre-defined KEY
  • Get existing URL via KEY
  • Generate preview URL
  • Pure Python Module
  • Works with Python 2.6+ and 3.2+
  • No dependencies

Usage Examples

import GoDebian a = GoDebian.GoDebianApi()

a.add_url("http://www.debian.org") 'http://go.debian.net/3xEIl'

a.get_url("3xEIl") 'http://www.debian.org'

a.get_preview_url("3xEIl") 'http://go.debian.net/p/3xEIl'

a.add_static_url("http://harshdaftary.com", "harsh") 'http://go.debian.net/harsh'

a.get_url("harsh") 'http://harshdaftary.com'

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc