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.1.0.tar.gz (26.0 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.1.0-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codacle_graph_sdk-1.1.0.tar.gz
  • Upload date:
  • Size: 26.0 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.1.0.tar.gz
Algorithm Hash digest
SHA256 117947b4e2d3640ecb6609b5db601bd9d57dfdc1fc20da7aacedfb20143ed5a0
MD5 a426219013b37204279b05abfb57063f
BLAKE2b-256 a2e8e15c7674128dd003a5117c179228897d2c6e4f1bb180cccd022f5a151282

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for codacle_graph_sdk-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22330c1d8198546ddd16256d427cfcf9c1f83444c884a4922571cb619a34fb54
MD5 5f436caf66ef5d3def95bf2b6473680f
BLAKE2b-256 f6f70513413bdeff88413b9ff4cc00749460ca7633b917969277b8a37fd35f88

See more details on using hashes here.

Provenance

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