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.2-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.2-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.2-cp313-cp313-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

graph_sitter-0.56.2-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.2-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.2-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.2-cp312-cp312-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

graph_sitter-0.56.2-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.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 979bd428308a97c8da6f683cc8dea1065ff62480249ad64ec3603d958fd251d4
MD5 5f9f444024377b50a0868f2db91d13e2
BLAKE2b-256 fb99a9d3ff2ea9e7ffe337a4679df91688e380e2fe28c49b2374a4ed57c22dbd

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.2-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.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ea87c0e353f5ab1c3bee9d8797d76ed4925e227e48cb18652011a33924709994
MD5 ed3bdfb9c69c7e571f572f8e8723e256
BLAKE2b-256 a5b4ebaf058d1152a101a086570787f447bc5854b75bcf53f1f48bfbc62a812a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for graph_sitter-0.56.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97065a961e0d6a1affcf2de9eb7729d1156fbdba334fd3cfeadc12dc9d89e85f
MD5 af965ed928ea1874be9370b82a1949e9
BLAKE2b-256 38076a97f61ef309fda2504cf19530ed7425e840058dc044172e3a6cc352caaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for graph_sitter-0.56.2-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f69babc95dd75a8d85f2f9a3cc4490fcca44bffcfa1776bb891908d490da36e6
MD5 52f753342fa95ca674e1b3cd7ce0e198
BLAKE2b-256 70b47db1f25f78f5f848a43fb1aa0c586136e1e8d9308644d06a462330ec7c7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for graph_sitter-0.56.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 035cd2656196bfe3078e635991f7d0c13e8320e537eb72431b23a3f25aaf9fa4
MD5 5d4c0469ca54d4652b7650cd02a03925
BLAKE2b-256 aa7efb3eabfacf5407184caf5d773d2ccdf7c5304e89055c6e8efb006227e14c

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.2-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.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a00f3537be342c040c68973609d55e2fc90d01e0b60ae61b56dfe2ac9db71372
MD5 0711547c8b6928c68401f196e24b3178
BLAKE2b-256 1315fc69b92b0e18f63c20fbc9bd3f2a6268ef5d035bca53632917c419ed69d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for graph_sitter-0.56.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 998b896901200171e513aeb9240213ac46ecf8a9bde1a33562a119247942695b
MD5 c9f433f02ffb8e35ac245a0c863afcc5
BLAKE2b-256 6c7ff1bc8222894213b592268425124839ae75b8d504392e0dc68dfd5eebba87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for graph_sitter-0.56.2-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5845f20aa99e3e0bc9fbde6a71982ed502429b01123574afec4f4e894794ef6d
MD5 79d41696c7502e9cedb0c288b1f2b0ab
BLAKE2b-256 916c1da0d5e94596f38f413ee25bcbb8508bf8cfbc8b60a4a52a1357f32211bd

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