Skip to main content

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 

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)

Source distribution for pydelegator 0.3.1
File Size Uploaded
pydelegator-0.3.1.tar.gz 1.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydelegator 0.3.1
File Interpreter ABI Platform
pydelegator-0.3.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page