Skip to main content

Synthient API bindings.

Project description

synthientpy

Synthient API bindings A strongly typed Python client for the Synthient API. Supports asynchronous and synchronous requests to the Synthient API.

Usage

Check synthientpy/models for the available fields in the response object.

Client and AsyncClient have the following methods:

api_key: str # Your private API key
default_timeout: int = DEFAULT_TIMEOUT  # Default timeout for requests, set to 5 seconds by default
proxy: str = None # Proxy URL to use for requests, set to None by default

Synchronous Usage

import synthientpy as synthient
client = synthient.Client(
    api_key=os.getenv("SYNTHIENT_API_KEY"),
)
token = "..."
visitor_info = client.lookup(token)
print(visitor_info)

Asynchronous Usage

import asyncio
import synthientpy as synthient

async def main():
    client = synthient.AsyncClient(
        api_key=os.getenv("SYNTHIENT_API_KEY"),
    )
    token = "..."
    visitor_info = await client.lookup(token)
    print(visitor_info)
    
asyncio.run(main())

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

synthientpy-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

synthientpy-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file synthientpy-0.1.0.tar.gz.

File metadata

  • Download URL: synthientpy-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.5

File hashes

Hashes for synthientpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9fc1d6f5f7425d7ecec70b0855acf0f9f632bd81f88230ad7bed2d401b6aa30f
MD5 6d223750918ddfcabea80cbad4e219ea
BLAKE2b-256 9bb218bd9a5d8535d38c01fc88cdba92a18d4db567102a819877ce1bea054e28

See more details on using hashes here.

File details

Details for the file synthientpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: synthientpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.5

File hashes

Hashes for synthientpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb8233422b3964aa22c8077fce5f8416b0d0d5661b18952c081074f1be0a13a5
MD5 dc32216815e1746798d15398657b4daa
BLAKE2b-256 78e3f4313cfb074695a99f4d1f374dc1a54c10a8ccd16c041106d12f7bf34498

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