RapidPro Flows
==============
Python implementation of the RapidPro flow engine.
Usage
-----
```python
org = Org("RW", "eng", pytz.timezone("Africa/Kigali"), DateStyle.DAY_FIRST, False)
fields = [...]
contact = Contact(...)
flow = Flow.from_json("...")
runner = Runner()
run = runner.start(org, fields, contact, flow)
steps = run.get_completed_steps()
fields_to_create = run.get_created_fields()
runner.resume(run, Input.of("Yes"))
json = run.to_json() # run state can be serialized as JSON
restored = RunState.from_json(json, flow) # and then de-serialized when needed
runner.resume(run, Input.of(123))
```
==============
Python implementation of the RapidPro flow engine.
Usage
-----
```python
org = Org("RW", "eng", pytz.timezone("Africa/Kigali"), DateStyle.DAY_FIRST, False)
fields = [...]
contact = Contact(...)
flow = Flow.from_json("...")
runner = Runner()
run = runner.start(org, fields, contact, flow)
steps = run.get_completed_steps()
fields_to_create = run.get_created_fields()
runner.resume(run, Input.of("Yes"))
json = run.to_json() # run state can be serialized as JSON
restored = RunState.from_json(json, flow) # and then de-serialized when needed
runner.resume(run, Input.of(123))
```
Metadata
Release files for rapidpro-flows 1.2.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rapidpro-flows-1.2.9.tar.gz | 28.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rapidpro_flows-1.2.9-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 61.5 kB
Release files / rapidpro-flows-1.2.9.tar.gz
| Download URL | rapidpro-flows-1.2.9.tar.gz |
|---|---|
| Size | 28.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d115fc9f48626780a9f43990e97a4eaf033b245f94a7fd719a803a481482ff70
|
|
BLAKE2b-256 checksum How to use checksums |
1800e93eef6672b5c325379992fca02826ead81aa8b0dd21fd682254e5cb46f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / rapidpro_flows-1.2.9-py2.py3-none-any.whl
| Download URL | rapidpro_flows-1.2.9-py2.py3-none-any.whl |
|---|---|
| Size | 32.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
964fbd633ea98ec8eee7a7f2612cf7d8cc8bcbf07118cbf0518b22ab15aadbfc
|
|
BLAKE2b-256 checksum How to use checksums |
7eca8468415cf2d38b449d1c7c7e27e0cc6e05e42a0166b8feec5707d72aebcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |