No project description provided
Project description
Polytomic Python Library
The Polytomic Python library provides convenient access to the Polytomic API from Python.
Installation
pip install polytomic
Usage
Instantiate and use the client with the following:
from polytomic import BulkSchedule
from polytomic.client import Polytomic
client = Polytomic(
token="YOUR_TOKEN",
)
client.bulk_sync.create(
destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
mode="replicate",
name="My Bulk Sync",
schedule=BulkSchedule(
frequency="manual",
),
source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
)
Async Client
The SDK also exports an async
client so that you can make non-blocking calls to our API.
from polytomic import BulkSchedule
from polytomic.client import AsyncPolytomic
client = AsyncPolytomic(
token="YOUR_TOKEN",
)
await client.bulk_sync.create(
destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
mode="replicate",
name="My Bulk Sync",
schedule=BulkSchedule(
frequency="manual",
),
source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
)
Contributing
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
On the other hand, contributions to the README are always very welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file polytomic-1.7.0.tar.gz
.
File metadata
- Download URL: polytomic-1.7.0.tar.gz
- Upload date:
- Size: 52.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.18 Linux/5.15.0-1064-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b131bd85d97dce1803e7e292028d04d80d88b2f3d96a46559f68405c86a49a81 |
|
MD5 | 683da75710e2fdc11e1252232ae7d270 |
|
BLAKE2b-256 | 91ba90de61ae060e7182423f0f93e0ccabdb2e34d90c76bbc743de0fd6ecd15b |
File details
Details for the file polytomic-1.7.0-py3-none-any.whl
.
File metadata
- Download URL: polytomic-1.7.0-py3-none-any.whl
- Upload date:
- Size: 163.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.18 Linux/5.15.0-1064-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab481f4dcb6434b21283da80327fb697d7726835576235b41543f173a6265175 |
|
MD5 | 8d928ff38f4b9456b0b648d78bb5a582 |
|
BLAKE2b-256 | 1349212b0ba6b42714604ba41eb4a574e27bc51a26af0aa652b5db3f5a41dd96 |