Instruction for develop a new module.
from bc.dev.handlers import WorkerThreadHandler
counter = 0
def worker_function(data):
global counter
counter += 1
print(counter)
return {"results": [1, 2, 3, 45]}
a = WorkerThreadHandler(worker_function=worker_function, name='name', hostname='hostname')
a.run()
data - here you see all data which send in sheduler in your channel
{"results": [1, 2, 3, 45]} - module send to channel _reporter as:
{
'task_data': data,
'result': [1, 2, 3, 45],
'name': 'name',
'hostname': 'hostname'
}
worker_function - required arg name - optional hostname - optional
Module send to channel _registration:
{
"name": "name",
"hostname": "hostname"
}
Module must receive from channel _registration:
{
'subjects_to_subscribe': ['test'],
'unique_name': 'test_module1'
}
If error will be detected in worker, module send error message to channel _errors:
{
'task_data': data,
'result': "ERROR",
'name': 'name',
'hostname': 'hostname'
}
Metadata
Release files for bordercontrol 0.2.0.0.4
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 | Actions |
|---|---|---|---|---|
| bordercontrol-0.2.0.0.4.tar.gz | 3.8 kB | Without provenance | Details for bordercontrol-0.2.0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bordercontrol-0.2.0.0.4-py3-none-any.whl | Python 3 | none | any | Details for bordercontrol-0.2.0.0.4-py3-none-any.whl |
Total release size: 9.0 kB
Release files / bordercontrol-0.2.0.0.4.tar.gz
| Download URL | bordercontrol-0.2.0.0.4.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fa2270ff42501c0090a94982bfb3f966d130ea0af0dc40553fe2fc2ca3e5aae
|
|
BLAKE2b-256 checksum How to use checksums |
5a76a7034690d122ce3f9ea0c16558bbb7eb73f1cf6f7ecc84d73b60fb421e4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6
|
Release files / bordercontrol-0.2.0.0.4-py3-none-any.whl
| Download URL | bordercontrol-0.2.0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
313b2196eff962fb73e7b8566921033f9582dc3f6c69ed7837cdfd566f8d405e
|
|
BLAKE2b-256 checksum How to use checksums |
67bcc189a41cdd4bf09e537b61394b4d55123fae75e0ab5ed14f6cf7ed793386
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6
|
Security for bordercontrol 0.2.0.0.4
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.