Onkitep
Onkitep is an advanced Python library designed for dynamically creating and executing custom functions.
Features
- Dynamic Function Creation: Define one or more functions in a single code string and extract the desired function by name.
- Function Execution: Execute any dynamically created function with provided arguments.
- Validation: Check if the function code is syntactically correct before execution.
Installation
Install via pip:
pip install onkitep
Usage Here is an example of how to use Onkitep:
import onkitep as okp
# Define multiple functions in a single string
code = """
def greet(name):
return f'Hello, {name}!'
def farewell(name):
return f'Goodbye, {name}!'
"""
# Create and execute the 'greet' function
greet_func = okp.create_function("greet", code)
print(okp.execute_function(greet_func, "World")) # Output: Hello, World!
# Create and execute the 'farewell' function
farewell_func = okp.create_function("farewell", code)
print(okp.execute_function(farewell_func, "World")) # Output: Goodbye, World!
Metadata
Release files for onkitep 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 | |
|---|---|---|---|---|
| onkitep-1.0.tar.gz | 2.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| onkitep-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / onkitep-1.0.tar.gz
| Download URL | onkitep-1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9804c8dfd28ab28282aa7001e08736cd09bb9984e6702e14d459a2aa677cdf2a
|
|
BLAKE2b-256 checksum How to use checksums |
c1a6ca8959694e4b2c9f0077ce672d1e191e17c3a0ad00bc8c69b41be15a6088
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|
Release files / onkitep-1.0-py3-none-any.whl
| Download URL | onkitep-1.0-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72aff2178869584ba4d5db0889804286c3a366cc1736ab5c005f318ac142f426
|
|
BLAKE2b-256 checksum How to use checksums |
5816ff0993bc62ab2fb9123a2707a70bd8a0e280c2b61b336962d579e2bc1a20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|
Security for onkitep 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.