Skip to main content

Python Asyncio REST Client

Project description

Latest PyPI version Latest Travis CI build status

aionap is a Python asyncio enabled REST client. It uses a similar API like slumber and copies shameless other parts of it.

Feel free to contribute via pull requests, issues or email messages.

QuickStart

  1. Install aionap:

    $ pip install aionap
  2. Install Optional Requirement:

    pip install pyyaml
  3. Use it!

Usage

import aionap
async with aionap.API('https://demo.api-platform.com') as api
    response = await api.books.get()

For more see the documenation, the test/test_demo_api.py file or the example directory.

Installation

aionap is available via PyPI, just install it as usual.

$ pip install aionap

aionap requires Python >= 3.6.

[OPTIONAL] PyYaml (Required for the yaml serializer):

$ pip install pyyaml

Features

  • Basic Auth support

  • JSON, YAML serializers

  • GET, POST, PUT, PATCH, DELETE of resources

  • Good test coverage

TODO

  • OAuth support

  • Readthedocs API documentation (SSL_CERT_FILE)

Compatibility

Python >= 3.6

Licence

BSD 2-Clause License

Authors and Contributors

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

aionap-0.7.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

aionap-0.7-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file aionap-0.7.tar.gz.

File metadata

  • Download URL: aionap-0.7.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for aionap-0.7.tar.gz
Algorithm Hash digest
SHA256 0f29e0f13b1deac0dd15bd793c4d8722fe40f83067967bf9f37e2522789b0d1d
MD5 71b6c90e86cdcc9b28848eba3a667733
BLAKE2b-256 680e7d0c2d41e5f63f2afcf8487da7bcb238623decc80e79a6ba073c7f144ad1

See more details on using hashes here.

File details

Details for the file aionap-0.7-py3-none-any.whl.

File metadata

  • Download URL: aionap-0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for aionap-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a4c68a30c749baeb78c8d8124c5d80d4fd64cdcda7e08fb759d30955e3054a3a
MD5 14ce6a61cb0269a6aac4723447ce7dc8
BLAKE2b-256 b043e76de0a6a11622878d2eefc6f862dd00f64c180d511efa33621004b7286e

See more details on using hashes here.

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