Skip to main content

A simple library to build compute graphs for logical flows like agents.

Project description

Micro-Graph

If all the fancy langgraph etc. libraries are too heavyweight and complex for you, look no further.

A tiny library allowing you to build graphs for executing workflows. It is focused purely on minimalism, simplicity and ease of understanding. It does not need any dependencies.

🛠️ Installation

pip install micro-graph

# to also install `micro_graph.ai` dependencies
pip install micro-graph[ai]

👨‍💻 Usage

See the examples or tests for example uses.

👥 Contributing

Feel free to make this code better by forking, improving the code and then pull requesting.

However, the goal of this repo is to be the minimal functionallity required and implementing it without any external dependencies. Please keep this in mind if you modify this repo.

Keep it simple!

Setup

Install dev dependencies and pre-commit hooks

pip install -e .[dev,ai]
pre-commit install

This will automatically run ruff check . and pytest before each commit.

⚖️ License

Micro-Graph is licensed under the permissive 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

micro_graph-0.3.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

micro_graph-0.3.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file micro_graph-0.3.1.tar.gz.

File metadata

  • Download URL: micro_graph-0.3.1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for micro_graph-0.3.1.tar.gz
Algorithm Hash digest
SHA256 6c3ae52f270ad8e002d7f2dc1a5e2c07c7ff7f98974bec22f2d86b5e585d3ad3
MD5 21e82ee10dc84fc6181d42144b787292
BLAKE2b-256 b119d282ac0c5a9a38ef2a4dd20ac96b83ee4e0fc98b7f76022d890968957c5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for micro_graph-0.3.1.tar.gz:

Publisher: python-publish.yml on penguinmenac3/micro-graph

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

File details

Details for the file micro_graph-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: micro_graph-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for micro_graph-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82eb4e7d2ecf984d944233df305ea1adf977ad7ffd39f98421d7f4ad91419b64
MD5 642c5395c36028a0d1f5ff8875a3c6cd
BLAKE2b-256 6ff31a4ce259bfee9164498e354ea316fbc6346d63f2167391c21eafc2a60b4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for micro_graph-0.3.1-py3-none-any.whl:

Publisher: python-publish.yml on penguinmenac3/micro-graph

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