Skip to main content

test-nb

Custom utilities to convert notebooks to python and test them.

CLI Reference

Usage: nb [OPTIONS] COMMAND [ARGS]

  Convert notebooks to python scripts and run them for testing purposes

Options:
  --help  Show this message and exit.

Commands:
  convert  Convert notebook to python files
  test     Convert notebook to python files and test them end-to-end by running them

Commands

convert

Usage: nb convert [OPTIONS]

  Convert notebooks to python files

Options:
  --file TEXT       Include one or more notebook files to convert to python
  --directory TEXT  Directory from which to convert notebooks.
  --recursive       Search recursively for notebooks in the provided directory
  --include-md      Include markdown (as comments) in the script
  --no-errors       Silence errors when reading from notebooks and writing to
                    python files.
  --exclude-env     Exclude code that sets environment variables
                    (os.environ[*] = *)
  --overwrite       Overwrite existing files when converting to python.
  --help            Show this message and exit.

test

Usage: nb test [OPTIONS]

  Convert notebook to python files and test them end-to-end by running them

Options:
  --file TEXT               Include one or more notebook files to convert to
                            python
  --directory TEXT          Directory from which to convert notebooks.
  --recursive               Search recursively for notebooks in the provided
                            directory
  --include-md              Include markdown (as comments) in the script
  --no-errors               Silence errors when reading from notebooks and
                            writing to python files.
  --exclude-env             Exclude code that sets environment variables
                            (os.environ[*] = *)
  --overwrite               Overwrite existing files when converting to
                            python.
  --python-executable TEXT  Path to the python executable. Defaults to
                            executable in the current environment if not
                            provided
  --verbose                 Verbose logging for tests.
  --timeout FLOAT           Timeout for notebook execution
  --help                    Show this message and exit.

Metadata

Release files for test-nb 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for test-nb 0.1.1
File Size Uploaded Provenance Actions
test_nb-0.1.1.tar.gz 30.0 kB Without provenance Details for test_nb-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for test-nb 0.1.1
File Interpreter ABI Platform Actions
test_nb-0.1.1-py3-none-any.whl Python 3 none any Details for test_nb-0.1.1-py3-none-any.whl

Total release size: 39.0 kB

Release files / test_nb-0.1.1.tar.gz

Download URL test_nb-0.1.1.tar.gz
Size 30.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f49a4d18defbd665a02811a86ab7852501c1e37c9034e78b305126ab3d91c3f2
BLAKE2b-256 checksum
How to use checksums
f7cacadadab43ab03334da8ec3f033d0129c1e25907132eabeafd0cb211f0b28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release files / test_nb-0.1.1-py3-none-any.whl

Download URL test_nb-0.1.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5528717a229e8472638cb4d8ee6976620514e87e6cef0e10adbc258f3105714c
BLAKE2b-256 checksum
How to use checksums
19134c4c5028b7b3dbd6f1990c539ca6b79e379039840006055d34b49df50f9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Security for test-nb 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page