Skip to main content

Connect Python SDK

pyversions PyPi Status codecov Build Status PyPI status Quality Gate Status

Connect Python SDK allows an easy and fast integration with Connect fulfillment API. Thanks to it you can automate the fulfillment of orders generated by your products.

Please check the documentation available here, which contains information on how to install and use the library, and a complete API reference guide.

Main Features

This library may be consumed in your project in order to automate the fulfillment of requests, this class once imported into your project will allow you to:

  • Communicate with Connect using your API credentials.
  • List all requests, and even filter them:
    • For a specific product.
    • For a specific status.
    • For a specific asset.
    • Etc.
  • Process each request and obtain full details of the request.
  • Modify the activation parameters of each request in order to:
    • Inquiry for changes
    • Store information into the fulfillment request
  • Change the status of the requests from its initial pending state to either inquiring, failed or approved.
  • Generate and upload usage files to report usage for active contracts and listings.
  • Process usage file status changes.
  • Work with Notes for requests.
  • Generate logs.
  • Collect debug logs in case of failure.

Your code may use any scheduler to execute, from a simple cron to a cloud scheduler like the ones available in Azure, Google, Amazon or other cloud platforms.

Installation

$ pip install connect-sdk

Requirements

Contribute

If you want to contribute to the connect-python-sdk development feel free to open issues or fork the github repository and submit your pull request.

Development

Getting started

Assuming that you have python and virtualenv installed, and forked the connect-python-sdk repository, set up your environment and install the required dependencies like this:

$ git clone https://github.com/{your_github_account}/connect-python-sdk.git
$ cd connect-python-sdk
$ virtualenv venv
$ . venv/bin/activate
$ pip install -r requirements/test.txt

Running tests

The connect-python-sdk uses pytest for unit testing.

To run the entire tests suite execute:

$ pytest

License

The connect-python-sdk is released under the Apache License, Version 2.0.

Metadata

Release files for connect-sdk 22.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for connect-sdk 22.0
File Size Uploaded
connect-sdk-22.0.tar.gz 103.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for connect-sdk 22.0
File Interpreter ABI Platform
connect_sdk-22.0-py3-none-any.whl Python 3 none any Details

Total release size: 188.1 kB

Release files / connect-sdk-22.0.tar.gz

Download URL connect-sdk-22.0.tar.gz
Size 103.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d7f0436b74351c2c5836802a90b09d2665cbfaf4b196188b1ed8e1d15e870bc1
BLAKE2b-256 checksum
How to use checksums
23cf9a963b670c6bc635ba477b9bf5a8ac6e405ed18241fc8a95d4adca58ea89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / connect_sdk-22.0-py3-none-any.whl

Download URL connect_sdk-22.0-py3-none-any.whl
Size 84.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6313224af9434a64562e0e7f52e4b653abaaf9684ad54d387e78a2924f0a2d64
BLAKE2b-256 checksum
How to use checksums
ba92fd5394c1add9a66cb300f824402385a6c6afbb2bf2854b00dafb9e87e322
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

22.0 This release

2 release files

21.1

2 release files

21.0

2 release files

20.3

1 release file

20.2

1 release file

20.1

1 release file

20.0

1 release file

19.3

1 release file

19.2

1 release file

19.1

1 release file

19.0

1 release file

18.2

1 release file

18.1

1 release file

18.0

1 release file

17.6

1 release file

17.5

1 release file

17.4

1 release file

17.3

1 release file

17.2

1 release file

17.1

1 release file

17.0

1 release file

16.2

1 release file

16.1

1 release file

16.0

1 release file

15.2

1 release file

15.1

1 release file

15.0

1 release file

14.9

1 release file

14.8

1 release file

14.7

1 release file

14.6

1 release file

14.5

1 release file

14.4

1 release file

14.3

1 release file

14.2

1 release file

14.1

1 release file

14.0

1 release file

1.14.0

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page