8000 GitHub - daniel-wuyuezhou/ufarc: async state machines for micropython
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

async state machines for micropython

License

Notifications You must be signed in to change notification settings

daniel-wuyuezhou/ufarc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ufarc

ufarc is a fork and rewrite of farc in order to run on MicroPython.

Known Issue: Some examples fail due to

  File "/Users/dwhall/.micropython/lib/ufarc/__init__.py", line 513, in run_forever
  File "/Users/dwhall/.micropython/lib/ufarc/__init__.py", line 532, in stop
  File "uasyncio/core.py", line 183, in stop
  File "uasyncio/core.py", line 48, in call_soon
IndexError: full

farc

Framework for Asyncio AHSM Run-to-completion Concurrency written in Python3. In other words, a cheap knock-off of QP (www.state-machine.com) that uses coroutines instead of threads. This book describes QP and how to program hierarchical state machines.

This framework has fewer than 1000 LOC. It allows the programmer to create highly-concurrent programs by using a message-passing system and run-to-completion message handlers within a state-machine architecture. With these tools, complex, asynchronous operations are decomposed into manageable chunks of code.

Code Repository

https://github.com/dwhall/ufarc

Release History

2019/01/28 Initialized repo by forking farc at b9db67b56099b463cc079bdcf83d3530f305cd1b

About

async state machines for micropython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0