Features
History saving
Sneaky-reader implements a simple cache mechanism. You can use -l to list all the previous books, and use -b ID to quickly get the book. For example:
$ sneaky_reader -l
[0] CharlesDickens-OliverTwist
[1] 红楼梦
$ sneaky_reader -b0
...
Intuitive usage
Greate thanks to the wonderful projects: rich and textual, sneaky-reader can build a (relatively) complex UI in terminal with few lines:
- You can press
fto show/hide the chapters pane - You can press
m,nto forward/backward the current chapter - You can press
/to enable BOSS mode! It will hide all the sneaky things and only leave a fake Python snippet. You can pass-f <PYTHON FILE>to use your own fake code!
Smart spliting
Sneaky-reader supports you to use regluar expression (refer to the re module in python) to split your TXT into chapters. Using the command line option -e to pass your regluar expression.
Remember, always group your chapter name in first in your regular expression! group the title with (.*)
Quick Start
- Via
pip:pip install sneaky-reader - Via sources: clone and enter this repo, then install with
pip install -e .. Then you have a shell commandsneaky_readerto use!
For the demo books, you could start with commands
#demo in english
sneaky_reader -p="./assets/CharlesDickens-OliverTwist.txt" -e="^CHAPTER (.*)"
# demo in chinese
sneaky_reader -p="./assets/红楼梦.txt" -e="^第(.*)回"
For the first time you import a book, sneaky_reader will require the book path and the spliting expression. After that, the book will be cached and you can read it with command -b ID.
Metadata
Release files for sneaky-reader 0.1.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 |
|---|---|---|---|---|
| sneaky_reader-0.1.2.tar.gz | 7.3 kB | Without provenance | Details for sneaky_reader-0.1.2.tar.gz |
Release files / sneaky_reader-0.1.2.tar.gz
| Download URL | sneaky_reader-0.1.2.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
717dd8c648aeb6b707e6fc6e719ea7022d6d9b8c6eb21d28ced87cfc07841144
|
|
BLAKE2b-256 checksum How to use checksums |
d31bb251caefde5440f4d5b6b46e40f886e69499cff8a39b4a3e35c5d8d9930a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for sneaky-reader 0.1.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.