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 hashes)
Built Distribution
Close
Hashes for myclippings-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36d49e66d0ee8a85facaf3aacee01e247abc9354fbca3afa2f872d737ff259de |
|
MD5 | 79d996fefe6b36eb7ebbaaff98e9c100 |
|
BLAKE2b-256 | 2a92f535e9264794e5bafe340fcc92282fc079362e52765194887d52d78f9a2f |