Skip to main content

Brei

GitHub Org's stars Python package PyPI - Version Entangled badge

Minimal workflow system and alternative to Make.

  • Read from TOML or JSON (also pyproject.toml in [tool.brei] section)
  • Only Python ≥ 3.11 required
  • Runs task lazily and in parallel
  • Supports variables, templates, includes and custom runners

Read more: documentation

Why (yet another workflow tool)

This tool was developed as part of the Entangled project, but can be used on its own. Brei is meant to perform small scale automisations for literate programming in Entangled, like generating figures, and performing computations locally. It requires no setup to work with and workflows are easy to understand by novice users. If you have any more serious needs than that, we'd recommend to use a more tried and proven system, of which there are too many to count.

When to use

You're running a project, there's lots of odds and ends that need automisation. You'd use a Makefile but your friend is on Windows and doesn't have GNU Make installed. You try to ship a product that needs this, but don't want to confront people trying it for the first time with a tonne of stuff they've never heard of.

Install

To install, you may:

pip install brei

Or you use a tool for virtual environments, we recommend Poetry, after creating a new project with poetry init:

poetry add brei

Development

To run unit tests and type checker:

poetry install
poetry shell
brei test

To build the documentation, run the brei weave workflow:

# poetry shell
brei weave

Some parts of Brei are literate. Run the entangled watch daemon while editing code,

entangled watch

or else, as a batch job, stitch changes before committing:

entangled stitch

License

Copyright Netherlands eScience Center, Apache License, see LICENSE.

Metadata

Release files for brei 0.2.4

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

Source distribution (sdist)

Source distribution for brei 0.2.4
File Size Uploaded
brei-0.2.4.tar.gz 18.9 kB Details

Built distribution (wheel)

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

Total release size: 41.3 kB

Release files / brei-0.2.4.tar.gz

Download URL brei-0.2.4.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fb8a1f191a1c70a81a9df366c530e01938b8082e7198e898d4ea8eb53066fa92
BLAKE2b-256 checksum
How to use checksums
5297503b9bc095501678cd6e10a940e042d36f2a77ee41b798e93477d142543d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / brei-0.2.4-py3-none-any.whl

Download URL brei-0.2.4-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46967640f1aebe3c698456434a8ff0b2901860c4544778ab763803875e925155
BLAKE2b-256 checksum
How to use checksums
866de5c216146c0654cbf7d4e0567a075e3f13f2700bc8812b9ec3a35bf1099b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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