Generate notebook_requirements.txt files for Jupyter Notebooks (.ipynb files).
Project description
nbreqs
WORK IN PROGRESS - NOT READY FOR USE
nbreqs
is a lightweight Python tool designed to extract the external library dependencies from Jupyter notebooks.
I'm working on this library because I manage repositories of notebooks with poetry
, whereas users will only use single notebooks and copy them to other directories not managed by poetry
. They thus need requirements files specific to each notebook instead of the repository's requirements.
Features
- Extracts only external dependencies (ignores standard library modules).
- Works on Jupyter notebooks.
- Generates minimal
<notebook>_requirements.txt
files (one per notebook).
Installation
TO BE DETERMINED
How It Works
nbreqs
parses the Python code in memory, extracts all external libraries using ast
, and filters out any standard library modules. It then queries the installed version of each library without needing to import them into your environment.
Development
MAYBE LATER
License
nbreqs
is licensed under 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
Built Distribution
File details
Details for the file nbreqs-0.1.2.tar.gz
.
File metadata
- Download URL: nbreqs-0.1.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98a347dc3527603e66f8b0ffb3ba7fdec50cad7dee0f11de38c4a0941eadb37d |
|
MD5 | e83cf0c281c6f5f6018b20b2a221ffbe |
|
BLAKE2b-256 | 1a1875166bce77ba7a6ca24d4f7d3c37bc4e4c3f33855d9f4a612f9227785fac |
File details
Details for the file nbreqs-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: nbreqs-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 290060668f4a9295cc0778b196cad66c1c01cbdef032eb61cb113558838575a2 |
|
MD5 | 60d46bf3058be47477da8bc961fa5dc8 |
|
BLAKE2b-256 | 37ab6dbda09a8c945562bf48d9feb9031fab7fb5ed222dadc632dd5412b957d2 |