gexecute
Generically execute any function with a unknown function, module, or set of parameters!
Specify some set of parameters in a dictionary with the only restriction being that it must have all of the parameters with non-default values.
The function and module can either be a string representation or its corresponding object.
If the function exists in another module; you must give either the module object or the package path and module name.
How to Install: pip install gexecute
PiPy https://pypi.org/project/gexecute/
How to use:
def test(a, b, c='test'):
print(a, b, c)
> test(1, 2, 3)
1, 2, 3
> gexec(test, {'a': 1, 'b': 2, 'c': 3})
1, 2, 3
> gexec(test, {'a': 1, 'b': 2})
1, 2, test
# Function name can be an object or string
> gexec('test', {'a': 1, 'b': 2})
1, 2, test
# Any variables not in the function header will not be included in the function call
> gexec(test, {'a': 1, 'b': 2, 'd': 4})
1, 2, test
# If test is in the directory C:\python\test_module.py
> gexec({'a': 1, 'b': 2, 'c': 3}, 'test', module='test_module', package_path='C:\python\')
1, 2, 3
import test_module as module_
> gexec({'a': 1, 'b': 2, 'c': 3}, 'test', module=module_)
1, 2, 3
Metadata
Release files for gexecute 0.1.0
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 | |
|---|---|---|---|---|
| gexecute-0.1.0.tar.gz | 7.8 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gexecute-0.1.0-py3.8.egg | Legacy Egg format | - | - | Details |
| gexecute-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.3 kB
Release files / gexecute-0.1.0.tar.gz
| Download URL | gexecute-0.1.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98fbc8e124345587fb05167f9ca50d76caae53e9fc2ab10aec2132cee82d0133
|
|
BLAKE2b-256 checksum How to use checksums |
471ef3e12f97adedec2c3fd0e8851cae03d2838d4b6657d475a8884fdf143907
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Release files / gexecute-0.1.0-py3.8.egg
| Download URL | gexecute-0.1.0-py3.8.egg |
|---|---|
| Size | 6.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
4a265efe3d994ebde6460c1cef1faabba89e134fc49fd81f60c5dcea81537d90
|
|
BLAKE2b-256 checksum How to use checksums |
ad005ba58c3abe4ca6d9ce210c544f67ca7485303d9527bbf9335d91fab70cf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Release files / gexecute-0.1.0-py3-none-any.whl
| Download URL | gexecute-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8292cb87120c7759c9da352ddb8b7f624cc54f26ef1d90352791a5150892236
|
|
BLAKE2b-256 checksum How to use checksums |
621ce64af4836c643df24ca273447b4c4e53b3bb154e4914d309fd26b2ff90f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Security for gexecute 0.1.0
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.