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.4.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for myclippings-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d63813ea0e803af3ef8cfa3fe2d009c3ad8fc1388daf6c82dc8dcc5e9837160 |
|
MD5 | 3f15409fa855fa3a3a3b79aa5a12b8b5 |
|
BLAKE2b-256 | eb38ad1396a7377ef0579c4738612c327a558827819e86d4875989be5bdcd66b |