Skip to main content

Clase rápida para trabajar con notebooks

Project description

Jupyter Functions Exec

PyPI version License: MIT Rust

A high-performance Python package built in Rust that allows you to extract and execute functions directly from Jupyter Notebooks (.ipynb files).

Installation

Python 3.11 >=

pip install jupyter-functions-exec

API Reference

JupyterFunctions(notebook_path: str)

Creates a new instance by parsing a Jupyter notebook.


exec_function(name: str, /, *args, **kwargs) -> Any

Executes a function from the notebook with the provided arguments and returns the result.


return_function(name: str) -> Callable

Returns a function object that can be called later.


exists_function(name: str) -> bool

Checks if a function exists in the notebook.


functions_names() -> List[str]

Returns a list of all function names found in the notebook.


necessary_imports() -> List[str]

Returns all import statements found in the notebook.

License

MIT License - see the LICENSE file for details.

Author

Oscar - oscarortegarios@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

jupyter_functions_exec-0.7.1-cp311-abi3-win_amd64.whl (804.5 kB view details)

Uploaded CPython 3.11+Windows x86-64

jupyter_functions_exec-0.7.1-cp311-abi3-manylinux_2_34_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.34+ x86-64

jupyter_functions_exec-0.7.1-cp311-abi3-macosx_11_0_arm64.whl (894.6 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file jupyter_functions_exec-0.7.1-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for jupyter_functions_exec-0.7.1-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 28c6ddba2a3329645f0bd3d9b0a87c8e3ddd3eefb6f23371f02bd3122f760e69
MD5 dba00165b9dc872e97ebe31229c4bae3
BLAKE2b-256 06311992a55e4ffd8d8b7b7f4ca5bf1ccaa923fc1e63d1172351f5cde0a29648

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_functions_exec-0.7.1-cp311-abi3-win_amd64.whl:

Publisher: python-publish.yml on Osc-Ort/jupyter_functions_exec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jupyter_functions_exec-0.7.1-cp311-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for jupyter_functions_exec-0.7.1-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a4a2799d469a9c6508c1d71f5bd53c6b99a8a83722c7288cca5b13892a240179
MD5 2b608e8840a889cf4d87c9a4b5ee8947
BLAKE2b-256 cee21fe4f6fab9b238cb2b84b1d4d5c4e4fff186bbea4e017a4b31f51abcba0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_functions_exec-0.7.1-cp311-abi3-manylinux_2_34_x86_64.whl:

Publisher: python-publish.yml on Osc-Ort/jupyter_functions_exec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jupyter_functions_exec-0.7.1-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for jupyter_functions_exec-0.7.1-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9437d4a5b6774cb8c5a25fd177e2dc7ade632372b38ecec7f6f4dd98146bb95
MD5 1db854f0daa260b5f546f0c79779bc88
BLAKE2b-256 923ef571c2287e59baca0bab8828c2dc10d4279eb0f2c66e5d6d290fb62f713b

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_functions_exec-0.7.1-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: python-publish.yml on Osc-Ort/jupyter_functions_exec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page