Python client for interacting with the Parcha API, providing both synchronous and asynchronous methods for various API endpoints.
Project description
Parcha API Client
A Python client for interacting with the Parcha API, providing both synchronous and asynchronous methods for various API endpoints.
Features
- KYB (Know Your Business) and KYC (Know Your Customer) job management
- Check job execution
- Job retrieval by ID and case ID
- Asynchronous support using
aiohttp
Installation
pip install parcha-api-client # Note: Package name may differ
Usage
from parcha_api import ParchaAPI, KYBAgentJobInput
# Initialize the client
api = ParchaAPI("https://api.parcha.com", "your_api_token")
# Start a KYB agent job
kyb_input = KYBAgentJobInput(
agent_key="your_agent_key",
kyb_schema={"business_name": "Example Corp"}
)
response = api.start_kyb_agent_job(kyb_input)
# Get job by ID
job = api.get_job_by_id("job_id_here")
# Async example
async def fetch_jobs():
jobs = await api.get_jobs_by_case_id_async("case_id", "agent_key")
return jobs
Documentation
For detailed information on available methods and models, refer to the docstrings in the source code.
Requirements
- Python 3.7+
requests
aiohttp
pydantic
License
This Parcha API Client is proprietary software belonging to Parcha Labs Inc. All rights reserved. Use of this software is subject to the terms of your service agreement with Parcha Labs Inc..
For questions about licensing or usage, please contact support@parcha.ai.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
parcha_api-0.1.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for parcha_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4f0a4c59d4df3557bbd06639089800296565fc0c3697ae229b767ebbebb7673 |
|
MD5 | 8b6d1b1ee7a62bd5ebb134c99a3f4d23 |
|
BLAKE2b-256 | f89f4ab9c1c418cec808230b38f91438a23c818c55f4bf20c66a5cd880faf0e0 |