Skip to main content

A REST client for Python

Project description

# napper

A REST framework for asyncio.

Currently in experimental stage. Use at your own risk.

import asyncio

from napper import apis

async def getstargazers():
    """Print the most popular repository of the authors of
    the most recent gists from github."""
    with apis.github() as github:
        gists = github.gists.get()
        async for gist in gists:
                repo = await gist.owner.repos_url.get()[0]
            except AttributeError:
                print("{}: Gist has no owner".format(gist))
            except IndexError:
                print("{}: {0.owner.login} has no repositories".format(gist))
            print("{}: {0.owner.login} {} {1.stargazers_count}".format(
                gist, repo

loop = asyncio.get_event_loop()

Project details

Download files

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

Files for napper, version 0.1a1
Filename, size & hash File type Python version Upload date
napper-0.1a1-py2.py3-none-any.whl (11.5 kB) View hashes Wheel py2.py3
napper-0.1a1.tar.gz (7.2 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page