Skip to main content

rulz is a decorator based IoC framework.

Project description


A decorator based IoC framework for python3.6+. There are no runtime dependencies outside of what's in the standard library.

A demo module is in rulz/plugins/

#!/usr/bin/env python
from rulz import plugin, run_graph

def one():
    return 1

def two():
    return 2

@plugin(one, two)
def add(a, b):
    return a + b

if __name__ == "__main__":

Invoke it directly or create a driver script like this:

#!/usr/bin/env python
from rulz import load, run_graph


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rulz, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size rulz-0.0.5.linux-x86_64.tar.gz (11.8 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size rulz-0.0.5-py3-none-any.whl (10.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page