Parses My Clippings.txt
Project description
myclippings
Converts My Clippings.txt file into a JSON format like below:
[
"title": "Clean Code: A Handbook of Agile Software Craftsmanship",
"author": "Martin, Robert C.",
"clippings": [
{
"content_hash": "66698d9e",
"title": "Clean Code: A Handbook of Agile Software Craftsmanship",
"author": "Martin, Robert C.",
"note_type": "highlight",
"location_start": 892,
"location_end": 893,
"date": "2022-10-12T12:20:59",
"content": "Leave the campground cleaner than you found it.5"
},
{
"content_hash": "f31e9873",
"title": "Clean Code: A Handbook of Agile Software Craftsmanship",
"author": "Martin, Robert C.",
"note_type": "highlight",
"location_start": 783,
"location_end": 783,
"date": "2022-10-03T14:55:50",
"content": "Code, without tests, is not clean. No matter how elegant it is,"
}
]
]
Currently, it supports English and Spanish languages.
Usage
As a CLI tool:
python3 -m myclippings.main "My Clippings.txt"
As a module:
pip install myclippings
from myclippings import clippings_to_json
books = clippings_to_json("My Clippings.txt")
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
myclippings-0.0.5.tar.gz
(6.4 kB
view details)
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 myclippings-0.0.5.tar.gz.
File metadata
- Download URL: myclippings-0.0.5.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
891e572f643d065aece87583a050e8f82163a16fcba3dd246a3614bce9891539
|
|
| MD5 |
0321a599a7c3ae8f93a29b6969fe9eec
|
|
| BLAKE2b-256 |
94d26eeefd30881fae9f80cba37f645d9ed46d6de0e0926c449d87622319d539
|
File details
Details for the file myclippings-0.0.5-py3-none-any.whl.
File metadata
- Download URL: myclippings-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36d49e66d0ee8a85facaf3aacee01e247abc9354fbca3afa2f872d737ff259de
|
|
| MD5 |
79d996fefe6b36eb7ebbaaff98e9c100
|
|
| BLAKE2b-256 |
2a92f535e9264794e5bafe340fcc92282fc079362e52765194887d52d78f9a2f
|