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-1.8.0.tar.gz (53.8 kB view details)

Uploaded Source

Built Distribution

polytomic-1.8.0-py3-none-any.whl (170.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polytomic-1.8.0.tar.gz
  • Upload date:
  • Size: 53.8 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

Hashes for polytomic-1.8.0.tar.gz
Algorithm Hash digest
SHA256 470e2ccd21a089509f9c64d76868a6bbefb5ce65984c8cb191517ec704fc3612
MD5 0ce7b633df8316448af787547885bf08
BLAKE2b-256 8836d931f0549d6ec9f4b172016b2e0cd8c2eaa6114e70a2a5bcdf93164f47a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polytomic-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 170.9 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

Hashes for polytomic-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53630686c50c056d8f3645893993f213ecab6f5d3dec496b67a08015213270ad
MD5 9347605321674a3c53c0fd23731101fa
BLAKE2b-256 4aabf3c656313a7aa4f0b8de4db78b3bedc5ac876be2dac914a1b9a7d294f7be

See more details on using hashes here.

Supported by

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