Skip to main content

Python SDK for Convoy

Project description

convoy-python

Convoy SDK for Python

This is the Convoy Python SDK. This SDK contains methods for easily interacting with Convoy's API. Below are examples to get you started. For additional examples, please see our official documentation at (https://convoy.readme.io/reference)

Installation

Install convoy-python with

pip install convoy-python

Setup Client

Next, import the convoy module and setup with your auth credentials.

from convoy import Convoy
convoy = Convoy({"api_key":"your_api_key"})

The SDK also supports authenticating via Basic Auth by defining your username and password.

convoy = Convoy({"username":"default", "password":"default"})

In the event you're using a self hosted convoy instance, you can define the url as part of what is passed into convoy's constructor.

convoy = Convoy({ "api_key": 'your_api_key', "uri": 'self-hosted-instance' })

Usage

content, status = convoy.group.all({ "perPage": 10, "page": 1 })

Testing

pytest ./test/test.py

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

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

convoy-python-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

convoy_python-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file convoy-python-0.1.0.tar.gz.

File metadata

  • Download URL: convoy-python-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for convoy-python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 83db8e3707ab1fa881112083c19cb2a364738cc3af119158c3b2abd137ce2d84
MD5 42b88f99519b19b65617d8025a7b71e4
BLAKE2b-256 1ef88196d56ac19885d3572ca5013e8681f4978e6c8c740ef2d307e402b535cb

See more details on using hashes here.

File details

Details for the file convoy_python-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: convoy_python-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for convoy_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03e5dbd6ab31a785873a20ea2cf9f9bcf457d013fa1aa13d4683f04d5c385b3a
MD5 27f6c91eb773f3c0d0d7a1e7521d931c
BLAKE2b-256 946037518fe5dfd359975bd31f488e0e334026235a597e9e94ab766472fe18c1

See more details on using hashes here.

Supported by

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