A type-aware workflow engine working on Python
This is a simple and type-familiar workflow engine that works as a Python package.
A type-aware Python workflow engine
License: MIT License
even if the majority isn't troublesome
Run make test
pytest typedflow/tests -s
============================= test session starts ==============================
platform linux -- Python 3.7.5, pytest-5.2.2, py-1.8.0, pluggy-0.13.0
rootdir: /home/runner/work/typedflow/typedflow, inifile: setup.cfg
collected 5 items / 2 errors / 3 selected
==================================== ERRORS ====================================
_____________ ERROR collecting typedflow/tests/tasks/test_dump.py ______________
import file mismatch:
imported module 'typedflow.tests.tasks.test_dump' has this __file__ attribute:
/opt/hostedtoolcache/Python/3.7.5/x64/lib/python3.7/site-packages/typedflow/tests/tasks/test_dump.py
which is not the same as the test file we want to collect:
/home/runner/work/typedflow/typedflow/typedflow/tests/tasks/test_dump.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
____________ ERROR collecting typedflow/tests/tasks/test_loader.py _____________
import file mismatch:
imported module 'typedflow.tests.tasks.test_loader' has this __file__ attribute:
/opt/hostedtoolcache/Python/3.7.5/x64/lib/python3.7/site-packages/typedflow/tests/tasks/test_loader.py
which is not the same as the test file we want to collect:
/home/runner/work/typedflow/typedflow/typedflow/tests/tasks/test_loader.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
=============================== 2 error in 0.23s ===============================
Makefile:57: recipe for target 'test' failed
make: *** [test] Error 2
##[error]Process completed with exit code 2.
s
In the following codes, passing return values of A to B should be OK. However, flow.typecheck()
fails.
def A() -> Generator[int, None, None]:
pass
def B(a: Iterable[int]) -> None:
pass
It doesn't accept args in the correct way. For instance, life of cache tables are never incremented.
how about exchange the order lint <--> test?
The conventional way is like this:
node_a = TaskNode(a)
node_b = TaskNode(b)
node_c = TaskNode(c)
(node_c < node_b)('key')
(node_c < node_a)('value')
We can shorten the style like this:
node_a = TaskNode(a)
node_b = TaskNode(b)
node_c = TaskNode(c)({'a': node_a, 'b': node_b})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.