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!
Metadata
Release files for polytomic 25.9.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| polytomic-25.9.8.tar.gz | 289.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polytomic-25.9.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 837.0 kB
Release files / polytomic-25.9.8.tar.gz
| Download URL | polytomic-25.9.8.tar.gz |
|---|---|
| Size | 289.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e12c595b7f3b2bccabe1f8c8a0438b1deee19cd4f63c9c089a0aa07f1541a138
|
|
BLAKE2b-256 checksum How to use checksums |
f245d38e5e3bb12c5b7e645aacf6984484b63bbbad1e72b8ba52202fd4fdbcd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.21 Linux/6.17.0-1022-azure
|
Release files / polytomic-25.9.8-py3-none-any.whl
| Download URL | polytomic-25.9.8-py3-none-any.whl |
|---|---|
| Size | 547.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db64e7bfb5f5c4786b5ba794b2dae59909981b14b66ce4daa1173300546b72c1
|
|
BLAKE2b-256 checksum How to use checksums |
3a933c6a4e850463951b868b2319597894a96289a33d2df2aacec3acd79939c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.21 Linux/6.17.0-1022-azure
|