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.0.tar.gz (13.2 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.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: micro_graph-0.3.0.tar.gz
  • Upload date:
  • Size: 13.2 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.0.tar.gz
Algorithm Hash digest
SHA256 864bb3c7f99d452571f47aca39c4e32233fcb1cab653989af3c6c3ff6f9d0294
MD5 5516d9ab8b290fce8112fb0b39a25efa
BLAKE2b-256 1793b75f5baa5516661b240a6d629d6ee63d3f8d7bc7dd1907e5ac784fdcbf9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for micro_graph-0.3.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: micro_graph-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04a5046cb63505efd0af993f2ef0c5fe2fa79e05577e33a5b5f3ebe5f5d7837a
MD5 9c791dcd7ee11c5ff934e06fb72ff360
BLAKE2b-256 47f9492d9f93b5a2f4f9a57d030bb18e20db1d88bdd5d005d6c786ab44d90914

See more details on using hashes here.

Provenance

The following attestation bundles were made for micro_graph-0.3.0-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