Skip to main content

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

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)

Source distribution for gexecute 0.1.0
File Size Uploaded
gexecute-0.1.0.tar.gz 7.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for gexecute 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 release files

0.0.9

3 release files

0.0.8

3 release files

0.0.7

3 release files

0.0.6

3 release files

0.0.5

3 release files

0.0.4

3 release files

0.0.3

3 release files

0.0.2

3 release files

0.0.1

3 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