Skip to main content

No project description provided

Project description

Polytomic Python Library

pypi

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polytomic-25.9.2.tar.gz (181.7 kB view details)

Uploaded Source

Built Distribution

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

polytomic-25.9.2-py3-none-any.whl (349.6 kB view details)

Uploaded Python 3

File details

Details for the file polytomic-25.9.2.tar.gz.

File metadata

  • Download URL: polytomic-25.9.2.tar.gz
  • Upload date:
  • Size: 181.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.20 Linux/6.17.0-1010-azure

File hashes

Hashes for polytomic-25.9.2.tar.gz
Algorithm Hash digest
SHA256 e5af292aeb2e16a0cf38eacebb7c1832a0e7b74f3edce43b2f7a52ac77d73a80
MD5 a064cc22790efb01917611007bc1bf57
BLAKE2b-256 df3a3f3b358d8d19b6e4038470ca678db952c07f2afa3c55c031a075a14b616a

See more details on using hashes here.

File details

Details for the file polytomic-25.9.2-py3-none-any.whl.

File metadata

  • Download URL: polytomic-25.9.2-py3-none-any.whl
  • Upload date:
  • Size: 349.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.20 Linux/6.17.0-1010-azure

File hashes

Hashes for polytomic-25.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e6ae8c6500daeedff882e643f324282b730203f59a3d2a0a9bc5cbf14be8e22d
MD5 0c84f6ca002c6105655264bcfa288f5a
BLAKE2b-256 e9a29d83ed9cdca4260ad2b6aab71c49bfb99502162db9300923fc201dbd67b3

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