Python SDK for the Codacle Graph Service API
Project description
Codacle Graph SDK
Python SDK for the Codacle Graph Service API. Provides sync/async clients with statically typed models for Neo4j graph operations.
Installation
pip install codacle-graph-sdk
Quick Start
Sync Client
from codacle_graph_sdk import CodacleGraphClient
with CodacleGraphClient(
url="https://api.codacle.com",
api_key="your-api-key",
alias="production-db",
) as client:
# Natural language query
result = client.natural_query("Find all classes")
for node in result.get_nodes():
print(node.name)
# Direct Cypher query
result = client.cypher_query("MATCH (c:Class) RETURN c LIMIT 10")
Async Client
import asyncio
from codacle_graph_sdk import AsyncCodacleGraphClient
async def main():
async with AsyncCodacleGraphClient(
url="https://api.codacle.com",
api_key="your-api-key",
) as client:
result = await client.natural_query("Find all modules")
print(result.get_nodes())
asyncio.run(main())
Features
- Sync and async clients
- Typed node models (Client, Application, Module, Class, Subroutine, etc.)
- Typed relationship models
- Convenience methods for graph traversal
- Exception hierarchy mirroring API errors
License
MIT
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
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 codacle_graph_sdk-1.0.0.tar.gz.
File metadata
- Download URL: codacle_graph_sdk-1.0.0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5236ea2bce288a9885d4be512a65037c1b4f749c56c302842a23621d06c97997
|
|
| MD5 |
9587c5c24ae2e00037e7d0fe188f4378
|
|
| BLAKE2b-256 |
6dddc7167579c494344d6450b46bcd82e1e4b61e4011a828bda88758be9bd6f4
|
Provenance
The following attestation bundles were made for codacle_graph_sdk-1.0.0.tar.gz:
Publisher:
publish.yml on Botman-AI-com/codacle-graph-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codacle_graph_sdk-1.0.0.tar.gz -
Subject digest:
5236ea2bce288a9885d4be512a65037c1b4f749c56c302842a23621d06c97997 - Sigstore transparency entry: 803034925
- Sigstore integration time:
-
Permalink:
Botman-AI-com/codacle-graph-sdk@a905c83adb08b99be5ae2adde18b70c946e1d7f3 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Botman-AI-com
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a905c83adb08b99be5ae2adde18b70c946e1d7f3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file codacle_graph_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: codacle_graph_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4bcb5e21ce7c28f328df038fe918bcd7c216ee7b8d3b970cbab7fd0b407340f
|
|
| MD5 |
b7ee15a9e52744d2d2891a04976512a5
|
|
| BLAKE2b-256 |
4359e0e532ebcd007c3173d64a7ec80521839aa40a42fc207b292ba288443c40
|
Provenance
The following attestation bundles were made for codacle_graph_sdk-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on Botman-AI-com/codacle-graph-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codacle_graph_sdk-1.0.0-py3-none-any.whl -
Subject digest:
c4bcb5e21ce7c28f328df038fe918bcd7c216ee7b8d3b970cbab7fd0b407340f - Sigstore transparency entry: 803034938
- Sigstore integration time:
-
Permalink:
Botman-AI-com/codacle-graph-sdk@a905c83adb08b99be5ae2adde18b70c946e1d7f3 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Botman-AI-com
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a905c83adb08b99be5ae2adde18b70c946e1d7f3 -
Trigger Event:
release
-
Statement type: