A small package (only) to export functions and classes from notebooks to scripts
Table of Contents
Installation
pip install nbdefs2py
Usage
nbdefs2py can be used as a CLI tool or a Python function.
$ python -m nbdefs2py -h
usage: python -m nbfuncs [-h] [-i IGNORE] [--update] [--no-update] [--include INCLUDE [INCLUDE ...]]
[--exclude EXCLUDE [EXCLUDE ...]]
SRC DST
Extract definitions from notebooks.
positional arguments:
SRC source file/path
DST target file/path
optional arguments:
-h, --help show this help message and exit
-i IGNORE, --ignore IGNORE
glob expression of files to ignore
--update update only existing functions
--no-update overwrite destination file
--include INCLUDE [INCLUDE ...]
names of functions to include
--exclude EXCLUDE [EXCLUDE ...]
names of functions to ignore
>>> from nbdefs2py.io import export
>>> export(source="nb.ipynb", destination="exported.py")
License
nbdefs2py is distributed under the terms of the MIT license.
Metadata
Release files for nbdefs2py 0.1.3
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 | Actions |
|---|---|---|---|---|
| nbdefs2py-0.1.3.tar.gz | 50.5 kB | Without provenance | Details for nbdefs2py-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nbdefs2py-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for nbdefs2py-0.1.3-py3-none-any.whl |
Total release size: 58.0 kB
Release files / nbdefs2py-0.1.3.tar.gz
| Download URL | nbdefs2py-0.1.3.tar.gz |
|---|---|
| Size | 50.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57fda621cdbe39b6ad80e910eefda54c7493630b8852af84a215a323d7288100
|
|
BLAKE2b-256 checksum How to use checksums |
ec27adf2ebd557786ad992ee9f61fd85913e1e9b70dcbed97942014ada244699
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.24.0
|
Release files / nbdefs2py-0.1.3-py3-none-any.whl
| Download URL | nbdefs2py-0.1.3-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1890a4162d757d5b5ae75659ba3082e72f967be2d16de878cff6115301d0567c
|
|
BLAKE2b-256 checksum How to use checksums |
978cf96fb0a94e130c9a35e4b79efeb16bfb618ea2c758624c1786691deee4a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.24.0
|
Security for nbdefs2py 0.1.3
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.