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.6.0-cp311-abi3-win_amd64.whl (803.0 kB view details)

Uploaded CPython 3.11+Windows x86-64

jupyter_functions_exec-0.6.0-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.6.0-cp311-abi3-macosx_11_0_arm64.whl (893.9 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for jupyter_functions_exec-0.6.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 426c5a666c2ed8af1d6b319b6372980b7cbad35fcbf0e611ac7e1b9ca75d5743
MD5 d3fa1342c93c018e30a3c8ac15ed42c1
BLAKE2b-256 39a9e8b0c49a41aeff99170dba4ffe6275a5975038bde3ee7082b9aa1181d3c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_functions_exec-0.6.0-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.6.0-cp311-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for jupyter_functions_exec-0.6.0-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ebe98b14e54439702a8b351cc779d795d1f0b333ce11d9fcd0660dc17f46ccac
MD5 92fe18a27011ac3a7fcb5d60a5242fd2
BLAKE2b-256 22aa7181e1974fafbb7f29f3e4d9bd4af1e6aa0e81b1e002ce1d761c3809e63c

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_functions_exec-0.6.0-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.6.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for jupyter_functions_exec-0.6.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db05e78671e712c14b0eb99ae7a9ccbb9612e9e4efcd97aac74852a48237f2c1
MD5 086017fbb7a78125dd43a2dbb1c8159e
BLAKE2b-256 653e180f55d9022266f348a90e456106eef0275bd700533886ae4910b0694a1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_functions_exec-0.6.0-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