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.0.tar.gz
(50.4 kB
view hashes)
Built Distribution
Close
Hashes for nbdefs2py-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 837adabe654f81ad78a279d71b9844211c0081efcd179b81b16b73d69824b7a1 |
|
MD5 | a941ee10f559ccdcf79faf7fb3d2ff3a |
|
BLAKE2b-256 | 5b06ec89962b182e6070b97610d8a3c85c9e0a416fd2cfedc0fd432d941ed826 |