Nanodoc
--------
Nanodoc is a minimalist document bundler designed for stiching hints, reminders and short docs.
Useful for prompts, personalized docs highlights for your teams or a note to your future self
No config, nothing to learn nor remember. Short , simple, sweet.
Features
--------
- No config, no tutorial, no pain.
- Combines multiple text files into a single document
- Adds clear title separators between pages
- Supports optional line numbering (per file or global)
- Can generate a table of contents
- Flexible file selection methods
- Customizable header styles and sequence numbering
Usage
-----
$ nanodoc file1.txt file2.txt
$ nanodoc -n file1.txt file2.txt # Per-file line numbering
$ nanodoc -nn file1.txt file2.txt # Global line numbering
$ nanodoc -nn --toc file1.txt file2.txt # Global numbering with TOC
File Selection Options
----------------------
Nanodoc is flexible in how you specify the files to bundle:
$ nanodoc <file-1>...<file-n> # individual files
$ nanodoc <dir-name> # all txt and md files in the dir will be included
$ nanodoc <dir-name> <file-1> # mix and match as you'd like
$ nanodoc <bundle> # any .bundle.* file that is a list of paths, one per line
$ nanodoc <live-bundle> # a file that mixes text and file paths, where paths are replaced with their content
Get only parts of a file:
$ nanodoc readme.txt:L14-16,L30-50 # get the good parts only
Command Line Options
--------------------
- `-n`: Add per-file line numbering (01, 02, etc.)
- `-nn`: Add global line numbering: useful for referencing the full doc gen later
- `--toc`: Generate a table of contents at the beginning
Get fancy
---------
- `--seq`: numerical, roman or letter for ref the file sequence
- `--style`: nice (Human Readable (human-readable.txt), or file, or full-path
Save for later:
---------------
Generated a doc good enough to repeat, export the bundle
$nanodoc --export-bundle bestdocs.bundle.txt <file-1>...<file-n>
Keep it simple
--------------
Nothing to config.
Nothing to learn.
No tutorials to watch.
In fact, you've just went through the full documentation.
$ nanodoc --help # all there is
## Installation
nanodoc is available at a distributor near you:
# Using pip
pip install nanodoc
# even better pipx
pipx install --user nanodoc
## Contributing
Contributions are welcome! Say hi, curse me for eternity or even send in something constructive.
Feel free to open issues or submit pull requests.
(just keep it short, we're nano people after all)
## License
MIT License
Metadata
Release files for nanodoc 0.9.7
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 |
|---|---|---|---|---|
| nanodoc-0.9.7.tar.gz | 22.0 kB | Without provenance | Details for nanodoc-0.9.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanodoc-0.9.7-py3-none-any.whl | Python 3 | none | any | Details for nanodoc-0.9.7-py3-none-any.whl |
Total release size: 49.8 kB
Release files / nanodoc-0.9.7.tar.gz
| Download URL | nanodoc-0.9.7.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbf4b5b3939c2aaeb35e344f528a2fd5dd4dabcf3a39bfc85590d828a2f78b3e
|
|
BLAKE2b-256 checksum How to use checksums |
d814ff864500fef82c1b72a1869b1bc8f6ff5f5bb99a569bb34871c47cb820a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / nanodoc-0.9.7-py3-none-any.whl
| Download URL | nanodoc-0.9.7-py3-none-any.whl |
|---|---|
| Size | 27.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
156f362a6810b84f795fcaf4d33d00e1b051670d6d68ce917a40e278cd02aec5
|
|
BLAKE2b-256 checksum How to use checksums |
6a5d457ee5cf7d96809d822b35f5783a7a5f4f7cd44b6fd6e365f06a36ea0bc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Security for nanodoc 0.9.7
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.