Quick guide
1. Install pydelegator
Past this in your console
pip install pydelegator
2. Create main delegator manager
from pydelegator.delegator_manager import DelegatorManager
main_delegator_manager = DelegatorManager() # it is your main manager
3. Create delegator
In your file where you create want to create new delegator
import <your file name> # you have to import only file but dont import copy of main_delegator_manager
your_file_name.main_delegator_manager.create_delegator(<delegator name>)
4. Link a function to delegator
def test_func(name: str, age: int):
print(name, age)
import <your file name> # you have to import only file but dont import copy of main_delegator_manager
your_file_name.main_delegator_manager.link_func(<delegator name>, <your func>) # for exaple ("test_delegator", test_func) dont use ()
5. Call delegator
import <your file name> # you have to import only file but dont import copy of main_delegator_manager
your_file_name.main_delegator_manager.call_delegator(<delegator name>, <params>) # for exaple ("test_delegator", ("Dmytro", 15, )) int tuple you can hand over args
Metadata
Release files for pydelegator 0.3.1
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 |
|---|---|---|---|---|
| pydelegator-0.3.1.tar.gz | 1.5 kB | Without provenance | Details for pydelegator-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydelegator-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for pydelegator-0.3.1-py3-none-any.whl |
Total release size: 3.3 kB
Release files / pydelegator-0.3.1.tar.gz
| Download URL | pydelegator-0.3.1.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5447fbd5d2dd5616bfae0577dc55d88470b15a4e8e1ba1f7493e01818e498cca
|
|
BLAKE2b-256 checksum How to use checksums |
b658f1cbf42e60fe23003e87a89e5d3f5566f16a1826e2573054d294618d6a0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.12.8 Windows/11
|
Release files / pydelegator-0.3.1-py3-none-any.whl
| Download URL | pydelegator-0.3.1-py3-none-any.whl |
|---|---|
| Size | 1.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c891037c222136c7bbb9143ee5b5db4723e64d0e42042f9fb49e34ced0dd1130
|
|
BLAKE2b-256 checksum How to use checksums |
c03cf8d0f9d271c6542809a78a9df1d81a2bcb27e015ec18461ec5c213eaa9ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.12.8 Windows/11
|
Security for pydelegator 0.3.1
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.