nbdevAuto
Unlike most sites in this collection, this one documents an
installable library rather than a topic. nbdevAuto exists because
the nbdev release cycle is a fixed sequence of commands typed in the
same order every time: export the notebooks, run the tests, clean them,
bump the version, commit, push, build the docs. Each step is one nbdev
call, and forgetting one produces a confusing failure two steps later.
The library collapses that sequence into single-word shell commands. It
is what just upload and just full_upload invoke under the hood for
every submodule in the parent Knowledge repo.
Install
pip install nbdevAuto
Use
Every exported function is also a console script, so the common case is a bare word in the terminal at the root of an nbdev project:
upload -m "commit message" # export, test, clean, then add/commit/push
Or import the helpers into a notebook:
from nbdevAuto.functions import download_search_images, classify_images
from nbdevAuto.pdf import PDFreader
Contents
| Page | Covers |
|---|---|
| Functions | Dataset and image helpers: reading a list out of a text file, downloading single images or whole search-driven datasets, verifying and resizing what came back, building the folder layout a classifier expects, running a fastai learner over one image, Kaggle competition and dataset shortcuts, and graph, a graphviz.Digraph subclass preloaded with a rounded, filled style |
| Automate | The command line surface: the prep/commit/push pipeline, GitHub and PyPI releases, reinstall and update, conda environment creation, and the help output that lists them all |
| PDF Reader | PDFreader, a class that converts a PDF through pdf2image and renders page ranges inline when you slice it (pdf[0:5]) |
The Command Line Surface
Installing the package puts these on your PATH. They are ordinary
functions in Automate, exposed as scripts through
[project.scripts].
| Command | Does |
|---|---|
prep |
Export, test, and clean the notebooks, rendering the README if it needs it |
gacp |
git add, commit, and push, with -m for the message |
status |
Show the working tree state |
upload |
prep then gacp, the one you actually type |
release |
Bump the version, then release to both GitHub and PyPI |
gitrelease / piprelease |
The two halves of release, separately |
reinstall / update |
Reinstall or update the package locally |
everything |
upload, update, release, reinstall, in that order |
create_env |
Create a conda environment for AI work, named fast by default |
h |
Print the list of available commands |
Both prep and
upload take
-p to choose which version part to increment.
Where It Is Used
The parent Knowledge repo’s justfile calls
upload once
per submodule. just upload runs it only where the working tree is
dirty, just full_upload runs it everywhere. That is the main consumer,
so a change to automate.py affects the publish path for every site in
the collection.
Not Covered Yet
- No test notebook. The functions are exercised only by being used, so a broken helper surfaces in a downstream repo rather than here.
- Undeclared dependencies.
pyproject.tomllists onlygraphviz, but the image helpers importfastai, the Kaggle shortcuts need the Kaggle CLI and its credentials, andPDFreaderneedspdf2imagewith poppler behind it, plus matplotlib. Install those yourself. core.pyis an empty nbdev stub (a singlefoo), with no notebook behind it.- The docstrings are one-liners, so the rendered API pages are thin. The notebooks carry the real explanation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 nbdevauto-0.3.61.tar.gz.
File metadata
- Download URL: nbdevauto-0.3.61.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07ef6f06a2364b8cbd35e85d18d6ad480707ab8235fda454d264c08fab064175
|
|
| MD5 |
3f310b317ad0342dc36c1703cfde7c36
|
|
| BLAKE2b-256 |
ff2d8721e1596b3d39dc170ab0f2ec79dedd3df41ee1ae09fd4003680b77390c
|
Provenance
The following attestation bundles were made for nbdevauto-0.3.61.tar.gz:
Publisher:
publish.yaml on bthek1/nbdevAuto
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nbdevauto-0.3.61.tar.gz -
Subject digest:
07ef6f06a2364b8cbd35e85d18d6ad480707ab8235fda454d264c08fab064175 - Sigstore transparency entry: 2595926030
- Sigstore integration time:
-
Permalink:
bthek1/nbdevAuto@8d9a8198722493c14a6828dbb41fc9911d14160a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/bthek1
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@8d9a8198722493c14a6828dbb41fc9911d14160a -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file nbdevauto-0.3.61-py3-none-any.whl.
File metadata
- Download URL: nbdevauto-0.3.61-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c3d05c3dcef608fa96d4d57f20a4621db89c197305f5a9a1775f929a6f465ae
|
|
| MD5 |
44868c0d64ea440dfb163ae26d45f8a7
|
|
| BLAKE2b-256 |
9e64040851181e9fe33cfe9ccae28ead2343f3f82504bdb535938271736833b1
|
Provenance
The following attestation bundles were made for nbdevauto-0.3.61-py3-none-any.whl:
Publisher:
publish.yaml on bthek1/nbdevAuto
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nbdevauto-0.3.61-py3-none-any.whl -
Subject digest:
9c3d05c3dcef608fa96d4d57f20a4621db89c197305f5a9a1775f929a6f465ae - Sigstore transparency entry: 2595926060
- Sigstore integration time:
-
Permalink:
bthek1/nbdevAuto@8d9a8198722493c14a6828dbb41fc9911d14160a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/bthek1
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@8d9a8198722493c14a6828dbb41fc9911d14160a -
Trigger Event:
workflow_run
-
Statement type: