https://github.com/picahq/python-sdk
Python SDK for the IntegrationOS Unified API
https://github.com/picahq/python-sdk
Last synced: 2 months ago
JSON representation
Python SDK for the IntegrationOS Unified API
- Host: GitHub
- URL: https://github.com/picahq/python-sdk
- Owner: picahq
- Created: 2024-10-31T16:15:20.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-31T18:57:00.000Z (7 months ago)
- Last Synced: 2025-03-09T15:36:27.886Z (3 months ago)
- Language: Python
- Size: 7.1 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```jsx
pip install integrationos
```## Configuration
To use the library you must provide an API key and Connection key. Both are located in the IntegrationOS dashboard.
```python
import asyncio
from integrationos import IntegrationOSasync 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
```bash
pip install -e .
```3. Run tests
```bash
> 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](https://docs.integrationos.com/docs/setup) and [API Reference](https://docs.integrationos.com/reference) for more information and Node.js usage examples.