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.0.tar.gz
.
File metadata
- Download URL: integrationos-0.1.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb1844df88f7c4e767a81e3fe2177ff6998a5628ec7a4eb2b64af022f497b33f |
|
MD5 | e0dfb124b05b679115103b927843e18c |
|
BLAKE2b-256 | 2ba4f2120a581a9d3a18bec3b7b67d2aecdda758a351f6c75c96f31cb7156f77 |
File details
Details for the file integrationos-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: integrationos-0.1.0-py3-none-any.whl
- Upload date:
- Size: 29.6 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 | 214dca010582a8d9a68555e260a8da2e23ebd2aa1d0890d1a6177f633edb60be |
|
MD5 | 4a636a9269e88c25bd64c1e12ff570a7 |
|
BLAKE2b-256 | a1e7217eff952bcdf80f2e0f74cffcfbb437efded6992ca1f3ef8fb706abb6a9 |