Skip to main content

No project description provided

Project description

async_pokepy

An, in the works, asynchronous wrapper for the PokeAPI.co API.

Documentation

Available available @ readthedocs.

Installing

At the moment you can only install it from git with:
pip install git+github.com/PendragonLore/async_pokepy.git

Example

import asyncio

import async_pokepy


async def main(query):
    client = await async_pokepy.Client.connect()

    pokemon = await client.get_pokemon(query)

    fmt = " ".join(map(str, pokemon.abilities))
    print("{0} has the abilities {1}".format(pokemon, fmt))

    await client.close()


loop = asyncio.get_event_loop()
loop.run_until_complete(main("Snorlax"))

This will output: "snorlax has the abilities gluttony thick-fat immunity"

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

async_pokepy-0.0.5a0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distributions

async_pokepy-0.0.5a0-py3.7.egg (31.2 kB view details)

Uploaded Source

async_pokepy-0.0.5a0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file async_pokepy-0.0.5a0.tar.gz.

File metadata

  • Download URL: async_pokepy-0.0.5a0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for async_pokepy-0.0.5a0.tar.gz
Algorithm Hash digest
SHA256 c029502909a95d4b16ff551f83aec853bbd7bbe3b893e054cfe291047ee4db08
MD5 ad696478a92a2810382ecac98a080d43
BLAKE2b-256 19e87b7dfa7fb326fc9106637c4104da3449e1ce6ffb25359b509c5cde250195

See more details on using hashes here.

Provenance

File details

Details for the file async_pokepy-0.0.5a0-py3.7.egg.

File metadata

  • Download URL: async_pokepy-0.0.5a0-py3.7.egg
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for async_pokepy-0.0.5a0-py3.7.egg
Algorithm Hash digest
SHA256 92d990b27b0336daa75af656eaf9602a083a0a2cc3e44b8cb860ae4837e4ca4a
MD5 1b19fb07560cdb230ce562b54e55ce95
BLAKE2b-256 336b63a5ca45c2a1cf8778a584be335983bbae9e5ccb9f993109b62e66fcb1cf

See more details on using hashes here.

Provenance

File details

Details for the file async_pokepy-0.0.5a0-py3-none-any.whl.

File metadata

  • Download URL: async_pokepy-0.0.5a0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for async_pokepy-0.0.5a0-py3-none-any.whl
Algorithm Hash digest
SHA256 b693a0b7aae662dc071fa2ede69cc4bacd428aeddf3ae4f604dfb407d4a660a6
MD5 a7ee2f5cdedba0e2c8f9248773702e75
BLAKE2b-256 aef0bb7e730a77b5fa562bd8a407120b6dc7816394305af94fd990e2a67d6974

See more details on using hashes here.

Provenance

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