Skip to main content

Wrap REST APIs to fit nicely into your python code

Project description Documentation Status Maintainability

Wrap web APIs to fit nicely into your python code For python 3.5+.


 import json
 import snug

 def repo(name: str, owner: str):
    """a repo lookup by owner and name"""
    request = snug.http.GET(f'{owner}/{name}')
    response = yield request
    return json.loads(

exec = snug.http.simple_exec()

Check the examples/ directory for some samples.

Release history


0.3.0 (2018-01-14)

  • generator-based queries


  • fixes to documentation


  • improvements to versioning info


  • implement basic resource and simple example

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snug-0.3.0.tar.gz (11.9 kB view hashes)

Uploaded Source

Built Distribution

snug-0.3.0-py3-none-any.whl (17.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page