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.6.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.6.tar.gz.
File metadata
- Download URL: myclippings-0.0.6.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 |
7fa0a31746198ee28f220f68e48d4d4a3d4a692637cf192d2e4cf1d151ec5e27
|
|
| MD5 |
0be44b1a3923063c79fc87ee272e0d81
|
|
| BLAKE2b-256 |
6dfd1dc7246bcd999f2d137ca008872af01b5defc18814481036e8213409e476
|
File details
Details for the file myclippings-0.0.6-py3-none-any.whl.
File metadata
- Download URL: myclippings-0.0.6-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 |
91899b6472f4867081a32ca35f1610ddc6815ac9c6d4750a37afc3678f7a40ca
|
|
| MD5 |
6fe2e80e366556e37831e5d83055a405
|
|
| BLAKE2b-256 |
07ce427ab8cbd598eca506203cfaddba1340d6a4aec3a4565f8780a7fa295983
|