A Python client for the Kruncher API
Project description
Kruncher Client
Kruncher Client is a Python library for interacting with Kruncher data, allowing users to seamlessly access and analyze structured information.
🚀 Installation
To install the kruncher-client library, use pip:
pip install kruncher-client
🔑 API Key Setup
To use the Kruncher API, an API key is required. Follow these steps to obtain it:
- Log in to your account on kruncher.ai with an owner/admin account.
- Navigate to Settings.
- Go to Integrations.
- Copy the
KRUNCHER_API_KEYand store it securely.
Save it in a .env file within your project directory:
KRUNCHER_API_KEY=your_api_key_here
Or set it as an environment variable:
export KRUNCHER_API_KEY=your_api_key_here
📖 Usage
To use the KruncherClient, either pass the API key directly when initializing the client or ensure it is set in your environment variables.
✅ Basic Example
from kruncher import KruncherClient
# Initialize the client with the API key
client = KruncherClient(api_key='your_api_key_here')
# Alternatively, if the API key is set in the .env file, initialize without arguments
client = KruncherClient()
# Fetch projects
df_projects = client.get_projects(page=0)
print(df_projects)
# Fetch projects as a DataFrame
projects_df = client.get_projects_df_full(page=0)
print(projects_df)
# Fetch analysis details
analysis_id = 'your_analysis_id_here'
analysis_details = client.get_analysis_detail(analysis_id=analysis_id)
print(analysis_details)
📌 Features
- 🔍 Retrieve projects from Kruncher API.
- 📊 Fetch projects as a DataFrame for easy analysis.
- 📈 Get analysis details using an
analysis_id. - 🔒 Secure API key storage via
.envfile or environment variables.
❓ Need Help?
For any issues, feel free to reach out:
- 📧 Support: info@kruncher.ai
- 🛠 GitHub Issues: Report Issues
Enjoy using kruncher-client! 🚀
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kruncherclient-0.1.0.tar.gz.
File metadata
- Download URL: kruncherclient-0.1.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
289446aa7ac755510ca086669f9b8487c3259f31afa796e1feb93c418aa14bfb
|
|
| MD5 |
e0de6490f32c09e8b1c2b61a0147c411
|
|
| BLAKE2b-256 |
a7edb1df3574332e7950020c9b54e265e3237e41b296ed0b600bd6783a76daaa
|
File details
Details for the file kruncherclient-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kruncherclient-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb8258e73b02e8e514d39bd81bbb9e090f3fd2a22d24bebba9cd89e3ab51bad4
|
|
| MD5 |
d0d1eba78c83f97ada52cce8def8c4ce
|
|
| BLAKE2b-256 |
c2c2bd4367dd98e5cbdfde85deea0f13accfd0ff39804fc3c99ccc1f1d87bbe3
|