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:
    result = client.cypher_query("MATCH (c:Class) RETURN c LIMIT 10")
    for node in result.get_nodes():
        print(node.name)

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.cypher_query("MATCH (m:Module) RETURN m")
        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.2.0.tar.gz (32.5 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.2.0-py3-none-any.whl (46.8 kB view details)

Uploaded Python 3

File details

Details for the file codacle_graph_sdk-1.2.0.tar.gz.

File metadata

  • Download URL: codacle_graph_sdk-1.2.0.tar.gz
  • Upload date:
  • Size: 32.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 130e17145cac47c738fea745217bc40979786b363a55b30f5312227dfd7a71e1
MD5 731289bdaab43abc28258ee14b459c78
BLAKE2b-256 d7b3d837608c137b598089d6a5027b9fb34ea1b41e85ebce7ae31fe282db9b28

See more details on using hashes here.

Provenance

The following attestation bundles were made for codacle_graph_sdk-1.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for codacle_graph_sdk-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c05429c632bdd1cfb3ba9d2ecfcadd8bcb71d7a66aa00ec9a3330a5c4ba79c7
MD5 86a3dfed6bfb0e1879a21398b42f3068
BLAKE2b-256 faf0475695abc8ed15c7959a7591dbb6838b949f36e96a0a7a0494812ba401a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for codacle_graph_sdk-1.2.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