Skip to main content

A Python SDK for IntegrationOS

Project description

IntegrationOS Python SDK

The IntegrationOS Python library offers a strongly-typed, Pydantic-based interface for seamless interaction with the IntegrationOS API. It's designed to facilitate easy integration and usage within server-side Python applications.

Install

Using pip:

pip install integrationos

Configuration

To use the library you must provide an API key and Connection key. Both are located in the IntegrationOS dashboard.

import asyncio
from integrationos import IntegrationOS

async def main():
    async with IntegrationOS("sk_live_1234") as integrate:
        response = await integrate.customers("live::xero::acme-inc").get("cus_OT3CLnirqcpjvw")
        print(response)

if __name__ == "__main__":
    asyncio.run(main())

Testing

  1. Configure your environment variables (see .env.sample)

  2. Build for local testing

    pip install -e .
    
  3. Run tests

    > python tests/test_unified_api.py # Test Unified API
    > python tests/test_passthrough.py # Test Passthrough API
    > python tests/test_pagination.py # Test Pagination
    

Full Documentation

Please refer to the official IntegrationOS Documentation and API Reference for more information and Node.js usage examples.

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

integrationos-0.1.1.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

integrationos-0.1.1-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file integrationos-0.1.1.tar.gz.

File metadata

  • Download URL: integrationos-0.1.1.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for integrationos-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f32310554e828b2d5c68daec928cbb3f89039951f3d67c288f99585c02771b4f
MD5 f50dcf90352bcc1ffe88987b709b4d98
BLAKE2b-256 d74c12f6eda6b78a770df498aceff70ad058cb800ecc3e92e398b80b962c77ec

See more details on using hashes here.

File details

Details for the file integrationos-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for integrationos-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8786dfc330ba2d8319be9c3904977a98f8e5d27b37105c8b25b92b3d5941d1f3
MD5 7785836cca0fdcdb5dfd2da410de48ae
BLAKE2b-256 6640c6d577a72052d48ac6bc3a02af341a5e530307356ef8f9656e4b83184c06

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