nbs2ctx
Usage
nbs2ctx is a minimal CLI for turning a directory of notebooks (e.g. an NBDev project) into context for an LLM. For example, from the root dir of this github repo we could run:
nbs_to_ctx nbs ctx.xml
This will create a file ctx.xml with the contents of all the notebooks in the nbs folder.
<documents>
<document index="1">
<source>00_core.ipynb</source>
<document_content>
# nbs_to_ctx
> Turning Jupyter notebooks into LLM-ready context
```python
#| default_exp core
... and so on, with the full contents of the notebook
Installation
Install latest from the GitHub repository:
$ pip install git+https://github.com/AnswerDotAI/nbs2ctx.git
or from pypi
$ pip install nbs2ctx
Metadata
Release files for nbs2ctx 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nbs2ctx-0.0.2.tar.gz | 9.2 kB | Without provenance | Details for nbs2ctx-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nbs2ctx-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for nbs2ctx-0.0.2-py3-none-any.whl |
Total release size: 17.6 kB
Release files / nbs2ctx-0.0.2.tar.gz
| Download URL | nbs2ctx-0.0.2.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd8e884a95874fb13c7c3b5e92be91bd4125253141b0480f1d9d22d2b0e343fb
|
|
BLAKE2b-256 checksum How to use checksums |
235056aa6a0752ad41fc5e811f8cb1c0530fe36f2c2bdcbadeafb0ae09b87026
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / nbs2ctx-0.0.2-py3-none-any.whl
| Download URL | nbs2ctx-0.0.2-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e0982fee401fe2ebe0cb17229cfae16dc408cabdb8cf6f34ab2a29d84c269d3
|
|
BLAKE2b-256 checksum How to use checksums |
d9a17c7b11b5aac74b8711dce197037c75ec152ea9a265731e6cc61c41616832
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for nbs2ctx 0.0.2
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.