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
-
Configure your environment variables (see
.env.sample
) -
Build for local testing
pip install -e .
-
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
Built Distribution
File details
Details for the file integrationos-0.1.2.tar.gz
.
File metadata
- Download URL: integrationos-0.1.2.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36cd8dd3a0ef019d13bee1eeea85ad733cc3676c20ea7ff5e9a88a5cd2ec1d9d |
|
MD5 | 7888910e1b9bdc18b2b0ea26f78d2d49 |
|
BLAKE2b-256 | 1774bb6af47f178bca70c50585a580b91b40070f191040a3a71c910c9a7c2a34 |
File details
Details for the file integrationos-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: integrationos-0.1.2-py3-none-any.whl
- Upload date:
- Size: 29.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1adaf38ba4649631ba19d49d6cd9836e7db6695c4518b089f6eff7a4f8ffdacc |
|
MD5 | 8b015bb5b56d0615a7d4afe2e3c7e997 |
|
BLAKE2b-256 | 44918b18c6467ea94a29bccbae6c2d128b4d13248329c15b31ad5bc48ca1433e |