Skip to main content

Scriptable interface to a powerful, multi-lingual language server built on top of Tree-sitter

Project description


The SWE that Never Sleeps

PyPI Documentation Slack Community License Follow on X


The Codegen SDK provides a programmatic interface to code agents provided by Codegen.

from codegen.agents.agent import Agent

# Initialize the Agent with your organization ID and API token
agent = Agent(
    org_id="YOUR_ORG_ID",  # Find this at codegen.com/developer
    token="YOUR_API_TOKEN",  # Get this from codegen.com/developer
    # base_url="https://codegen-sh-rest-api.modal.run",  # Optional - defaults to production
)

# Run an agent with a prompt
task = agent.run(prompt="Implement a new feature to sort users by last login.")

# Check the initial status
print(task.status)

# Refresh the task to get updated status (tasks can take time)
task.refresh()

# Check the updated status
print(task.status)

# Once task is complete, you can access the result
if task.status == "completed":
    print(task.result)  # Result often contains code, summaries, or links

Installation and Usage

Install the SDK using pip or uv:

pip install codegen
# or
uv pip install codegen

Get started at codegen.com and get your API token at codegen.com/developer.

You can interact with your AI engineer via API, or chat with it in Slack, Linear, Github, or on our website.

Resources

Contributing

Please see our Contributing Guide for instructions on how to set up the development environment and submit contributions.

Enterprise

For more information on enterprise engagements, please contact us or request a demo.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

graph_sitter-0.56.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64manylinux: glibc 2.34+ ARM64

graph_sitter-0.56.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64manylinux: glibc 2.5+ x86-64

graph_sitter-0.56.1-cp313-cp313-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

graph_sitter-0.56.1-cp313-cp313-macosx_10_13_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

graph_sitter-0.56.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64manylinux: glibc 2.34+ ARM64

graph_sitter-0.56.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64manylinux: glibc 2.5+ x86-64

graph_sitter-0.56.1-cp312-cp312-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

graph_sitter-0.56.1-cp312-cp312-macosx_10_13_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

File details

Details for the file graph_sitter-0.56.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 73e05709935b724f59883ee672bfa205df7756c1eacbcf1870665d5416d632e0
MD5 7e258f84437bff0e65bbc77a827b21a6
BLAKE2b-256 d599e0b3c4debce30bb53a6e240a100452c9e824f6e5cc51bc49bbe60965a872

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f26bdcdd9caa37bae0a6a9db85df5c95ff682e5fd173897eb6aeec60b655fde6
MD5 ace03aeddd27e2c9c2bb2d75b8354ef6
BLAKE2b-256 4680a94f8bce9f355c5a2e93d927cd4b9aff420c6d21d08961ba29221bb2585c

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85dafdedb9851cb830fbf2829d5c126767171133fbda51f90719140378541ebb
MD5 ef4b4a36164dad1ac29a180fa6076197
BLAKE2b-256 2fe006b1119c309e2d2a86b16327f788133b7ca9d1e10112d4567ea895d1f1bd

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.1-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 37d7b524e9e1af6c9030f4c669501f1e0c51bdbe934b490216cedf856a743323
MD5 7c03bb203c83cb7904937c7be6948a3d
BLAKE2b-256 e10bec4c05571281e9c58a900477d7a75c324a5d7bcb23cff9e0a275f127ec8f

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 9b3587b1047490c868c07695e8868dcdc7fe47a6d3a03071d40374f327e41fc3
MD5 bd30b23f5bde98ee1dfdb220b7c47016
BLAKE2b-256 f9b3ef3a84982d9a8c99c4b2dac72042f58e63bbb3f7fbe8bdaa405bce274866

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 306f2198a1c232700290315b7194d937c14e04db522773967a92b108a7d9c420
MD5 1134cdfb8ff64a27e7fd9ae8811d488a
BLAKE2b-256 58e61be176ecf721ff75b4c25d7c161fabf43706d013e61241f3abff169c024b

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e7dce979ddbaa4eb631a4070905b0fc31202de863a01d0e93974ddcb1822e1e
MD5 f173e7b0cc4355e01fbbab438cdf8756
BLAKE2b-256 aea9f900138fab4d31bfa9f3b8c9e3499c1c24d78b064e23a1e35490ff3d028b

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.1-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ae1e17cd77fe11a54f576fd3701637b471b7e3ea50a8cf24610b540877028692
MD5 59c7d4c2d78421f5a09d324c130f4788
BLAKE2b-256 6a10eccd493ccd8fb9efe3c5a9305087e662fc67bb656e9e118cc9639fc9fece

See more details on using hashes here.

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