comb , A simple and high-performance framework for create parallel program
Upgrade notes
- Version 0.9.x
Add --no-daemon option.
User interrupt directly when user specific --debug option.
change --sleep data type to float in python3.
update document
improve setup.py file
support safety user interrupt.
support python3
Add --once option. execute once and exit instead of wait.
As of Comb 0.8.99, we change --sleep_max option to --sleep-max.
change comb script install path,use python library path instead /usr/local/bin
Quick links
Installation
Automatic installation:
pip install comb
comb is listed in PyPI and can be installed with pip or easy_install. it includes demo applications.
Manual installation: Download the latest source from Github.
git clone https://github.com/nextoa/comb.git cd comb python setup.py build sudo python setup.py install
The comb source code is hosted on GitHub.
Prerequisites: comb was only test on Python 2.7. It may be runs on all Python versions.
How to use
To use comb, you should create a python module file. we named slot.
A legal slot must be named ‘Slot’ in your module file and it must be at least contain four method:
- initialize
initial resource, e.g: database handle
- __enter__
get next data to do,you can fetch one or more data.
- slot
user custom code
- __exit__
when slot finished, call this method
Slot Demo
Start
Execute a comb is very simple. just execute:
comb --root SLOT_ROOT_PATH slot-package.slot-module
if you set SLOTPATH environment, you can use:
comb slot-package.slot-module
Quick View. call:
comb comb.demo.list
this will execute the Deal List Demo
Note for production deployment
You’d better make comb process number equals your cpu core number.
We strongly recommend you use comb with supervisor
Metadata
Release files for comb 0.9.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| comb-0.9.10.tar.gz | 13.8 kB | Without provenance | Details |
Release files / comb-0.9.10.tar.gz
| Download URL | comb-0.9.10.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa66fbccfbd172e978f30fd1f0dc66ada3c8e6eb9e24fac44c88a9206ed8b646
|
|
BLAKE2b-256 checksum How to use checksums |
b3b35f4bc7623d9602205de36da311f316ac5357cded74769bd0d6545abef6a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for comb 0.9.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.