Skip to main content

See what your AI agent actually did. One line. Zero config.

Project description

mokra

See what your AI agent actually did. One line. Zero config.

PyPI version Python versions License: MIT CI

Installation

pip install mokra

Quick Start

from mokra import observe

with observe() as world:
    # Run your AI agent here
    agent.run("Send a welcome email to new users")

# See exactly what happened
print(world)

Features

  • Zero config: Works out of the box with any HTTP-based service
  • Deep adapters: Rich insights for Stripe, Slack, SendGrid, and more
  • Framework support: First-class support for LangChain and CrewAI
  • Test generation: Automatically generate pytest tests from observed behavior

Supported Services

Service Adapter Type Features
Stripe Deep Payment intents, customers, subscriptions
Slack Deep Messages, channels, reactions
SendGrid Deep Emails, templates, recipients
Any HTTP Generic Request/response logging

Documentation

Releases & Versioning

mokra follows Semantic Versioning with automatic version detection from git tags:

MAJOR.MINOR.PATCH

v0.1.0  →  First release
v0.1.1  →  Bug fix
v0.2.0  →  New feature
v1.0.0  →  Major/breaking change

Pre-release versions:

  • v0.1.0a1 - Alpha releases
  • v0.1.0b1 - Beta releases
  • v0.1.0rc1 - Release candidates

Publishing a new version:

git tag v0.2.0
git push origin v0.2.0

That's it! The version is read automatically from the git tag - no need to edit pyproject.toml.

Note: PyPI requires unique version numbers - you cannot overwrite an existing version.

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE for details.

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

mokra-0.1.1.dev1.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

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

mokra-0.1.1.dev1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file mokra-0.1.1.dev1.tar.gz.

File metadata

  • Download URL: mokra-0.1.1.dev1.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mokra-0.1.1.dev1.tar.gz
Algorithm Hash digest
SHA256 489bbd36a876e0f1104b4b3685615b32ccd09a07e7b889c0a01df106e6aac376
MD5 be29aa39e9c4996fea8ac48987ad90b7
BLAKE2b-256 a5b02f8aa5d26e170a3daa3a5a9f98020acd2f482a7269871e7106dddb4d1991

See more details on using hashes here.

Provenance

The following attestation bundles were made for mokra-0.1.1.dev1.tar.gz:

Publisher: ci.yml on handled-engineering/mokra-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mokra-0.1.1.dev1-py3-none-any.whl.

File metadata

  • Download URL: mokra-0.1.1.dev1-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mokra-0.1.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 69b815aef01457cf91eb42c2c6e5214f36cba8d2dedcba879d46b8528c4d0764
MD5 871ae3b1165506af8508ab74202ff0f0
BLAKE2b-256 41bf9ddbd0bb587c69bf15d153c05b052a5020ed52cb3089dcc356f5b8192763

See more details on using hashes here.

Provenance

The following attestation bundles were made for mokra-0.1.1.dev1-py3-none-any.whl:

Publisher: ci.yml on handled-engineering/mokra-python

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