No project description provided
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nbdefs2py-0.1.3.tar.gz
(50.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nbdefs2py-0.1.3.tar.gz.
File metadata
- Download URL: nbdefs2py-0.1.3.tar.gz
- Upload date:
- Size: 50.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57fda621cdbe39b6ad80e910eefda54c7493630b8852af84a215a323d7288100
|
|
| MD5 |
c0828ca7cdebf6697de29726d66c1a64
|
|
| BLAKE2b-256 |
ec27adf2ebd557786ad992ee9f61fd85913e1e9b70dcbed97942014ada244699
|
File details
Details for the file nbdefs2py-0.1.3-py3-none-any.whl.
File metadata
- Download URL: nbdefs2py-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1890a4162d757d5b5ae75659ba3082e72f967be2d16de878cff6115301d0567c
|
|
| MD5 |
299a788c61fe4adaa3de628cdda27c94
|
|
| BLAKE2b-256 |
978cf96fb0a94e130c9a35e4b79efeb16bfb618ea2c758624c1786691deee4a4
|