Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

genkit

PyPI version Python versions Downloads License

Genkit is a Python SDK from Google. One API for generate, tools, structured output, and agents, plus a local Developer UI.

Vertex AI, Cloud Trace, and Firestore are there if you want them. So are OpenAI, Anthropic, Ollama, and Bedrock.

Building with a coding agent? Install the Genkit Python skill first.

npx skills add genkit-ai/skills --skill developing-genkit-python

It teaches your agent the current Genkit Python APIs and common gotchas. Source, manual install and skills for other languages: genkit-ai/skills.

Install

uv init my-genkit-app && cd my-genkit-app
uv add genkit genkit-google-genai

Using pip instead: pip install genkit genkit-google-genai.

from pydantic import BaseModel, Field
from genkit import Genkit, PublicError
from genkit_google_genai import GoogleAI

ai = Genkit(plugins=[GoogleAI()], model=GoogleAI.gemini('gemini-flash-latest'))


class Issue(BaseModel):
    title: str = Field(description='Short title')
    severity: str = Field(description='critical, warning, or info')
    suggestion: str = Field(description='How to fix it')


@ai.flow
async def review(code: str) -> Issue:
    result = await ai.generate(
        prompt=f'Review this code:\n{code}',
        output_schema=Issue,
    )
    if result.output is None:
        raise PublicError(
            'INTERNAL',
            f'Model did not return an Issue (finish_reason={result.finish_reason}, error={result.error})',
        )
    return result.output


async def main() -> None:
    print((await review('eval(user_input)')).model_dump_json(indent=2))
    # => {
    #      "title": "Arbitrary code execution via eval",
    #      "severity": "critical",
    #      "suggestion": "Parse input with ast.literal_eval or a schema instead of eval."
    #    }


if __name__ == '__main__':
    ai.run_main(main())

See https://python.api.genkit.dev for more details.

Metadata

Release files for genkit 0.14.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for genkit 0.14.0
File Size Uploaded Provenance Actions
genkit-0.14.0.tar.gz 805.4 kB With provenance Details for genkit-0.14.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for genkit 0.14.0
File Interpreter ABI Platform Actions
genkit-0.14.0-py3-none-any.whl Python 3 none any Details for genkit-0.14.0-py3-none-any.whl

Total release size: 1.2 MB

Release files / genkit-0.14.0.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL genkit-0.14.0.tar.gz
Size 805.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1a56f6ef26f6a0f3f77e2acb585205d30b49759db24601bdb0ea9b69e9f08024
BLAKE2b-256 checksum
How to use checksums
f4ee8cde1432c014e9222f9f64a3d577a4253c35814ba941b6c8d2193176c6be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / genkit-0.14.0-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL genkit-0.14.0-py3-none-any.whl
Size 409.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60b3d0f8655887d6a5348b6c042cd613d30fa35c144407a138ab855549a5c347
BLAKE2b-256 checksum
How to use checksums
75611f0c98c78196f6532348515774c858a444796afb68a8c3f16262fb61b7ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for genkit 0.14.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Change of provenance

The repository and configuration that created this release differ from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for genkit-0.14.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page