Skip to main content

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

codacle_graph_sdk-1.0.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codacle_graph_sdk-1.0.0-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

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

Hashes for codacle_graph_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5236ea2bce288a9885d4be512a65037c1b4f749c56c302842a23621d06c97997
MD5 9587c5c24ae2e00037e7d0fe188f4378
BLAKE2b-256 6dddc7167579c494344d6450b46bcd82e1e4b61e4011a828bda88758be9bd6f4

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codacle_graph_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for codacle_graph_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4bcb5e21ce7c28f328df038fe918bcd7c216ee7b8d3b970cbab7fd0b407340f
MD5 b7ee15a9e52744d2d2891a04976512a5
BLAKE2b-256 4359e0e532ebcd007c3173d64a7ec80521839aa40a42fc207b292ba288443c40

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page