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.1.tar.gz (26.2 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.1-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codacle_graph_sdk-1.1.1.tar.gz
  • Upload date:
  • Size: 26.2 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.1.tar.gz
Algorithm Hash digest
SHA256 e1da349eb36cc75cec27babadfab35e44a13e39765e07f7ac2f75a71e6dcbb02
MD5 20a54604ac20912f6791a3be6fd1efb1
BLAKE2b-256 a7d75311fe21a525c165786c1c1f61103c67852fdc9da3fd4e2d7e20ccb192f8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for codacle_graph_sdk-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4fa2de47ddafbcd522eda6225e82fbd37409f73efcaff150a9806835ad06719
MD5 5701ff43fc4fe92dc9a7cf4b4bb42121
BLAKE2b-256 26982c049177f8f2e9f3a523d38f3afcda9084168edf09a32f012d93ba328a04

See more details on using hashes here.

Provenance

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