# myclippings
---
Converts `My Clippings.txt` file into a JSON format like below:
```json
[
"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:
```bash
python3 -m myclippings.main "My Clippings.txt"
```
As a module:
```bash
pip install myclippings
```
```python
from myclippings import clippings_to_json
books = clippings_to_json("My Clippings.txt")
```
Raw data
{
"_id": null,
"home_page": "",
"name": "myclippings",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "amazon,clippings,kindle,kindle-clippings,parser",
"author": "",
"author_email": "Belen Buccolo <belenbuccolo@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/94/d2/6eeefd30881fae9f80cba37f645d9ed46d6de0e0926c449d87622319d539/myclippings-0.0.5.tar.gz",
"platform": null,
"description": "# myclippings\n\n---\n\nConverts `My Clippings.txt` file into a JSON format like below:\n\n```json\n[\n \"title\": \"Clean Code: A Handbook of Agile Software Craftsmanship\",\n \"author\": \"Martin, Robert C.\",\n \"clippings\": [\n {\n \"content_hash\": \"66698d9e\",\n \"title\": \"Clean Code: A Handbook of Agile Software Craftsmanship\",\n \"author\": \"Martin, Robert C.\",\n \"note_type\": \"highlight\",\n \"location_start\": 892,\n \"location_end\": 893,\n \"date\": \"2022-10-12T12:20:59\",\n \"content\": \"Leave the campground cleaner than you found it.5\"\n },\n {\n \"content_hash\": \"f31e9873\",\n \"title\": \"Clean Code: A Handbook of Agile Software Craftsmanship\",\n \"author\": \"Martin, Robert C.\",\n \"note_type\": \"highlight\",\n \"location_start\": 783,\n \"location_end\": 783,\n \"date\": \"2022-10-03T14:55:50\",\n \"content\": \"Code, without tests, is not clean. No matter how elegant it is,\"\n }\n ]\n]\n```\n\nCurrently, it supports English and Spanish languages.\n\n## Usage\n\nAs a CLI tool:\n\n```bash\npython3 -m myclippings.main \"My Clippings.txt\"\n```\n\nAs a module:\n\n```bash\npip install myclippings\n```\n\n```python\nfrom myclippings import clippings_to_json\n\nbooks = clippings_to_json(\"My Clippings.txt\")\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "Parses My Clippings.txt",
"version": "0.0.5",
"project_urls": null,
"split_keywords": [
"amazon",
"clippings",
"kindle",
"kindle-clippings",
"parser"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2a92f535e9264794e5bafe340fcc92282fc079362e52765194887d52d78f9a2f",
"md5": "79d996fefe6b36eb7ebbaaff98e9c100",
"sha256": "36d49e66d0ee8a85facaf3aacee01e247abc9354fbca3afa2f872d737ff259de"
},
"downloads": -1,
"filename": "myclippings-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "79d996fefe6b36eb7ebbaaff98e9c100",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 5738,
"upload_time": "2024-01-23T23:08:00",
"upload_time_iso_8601": "2024-01-23T23:08:00.494737Z",
"url": "https://files.pythonhosted.org/packages/2a/92/f535e9264794e5bafe340fcc92282fc079362e52765194887d52d78f9a2f/myclippings-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "94d26eeefd30881fae9f80cba37f645d9ed46d6de0e0926c449d87622319d539",
"md5": "0321a599a7c3ae8f93a29b6969fe9eec",
"sha256": "891e572f643d065aece87583a050e8f82163a16fcba3dd246a3614bce9891539"
},
"downloads": -1,
"filename": "myclippings-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "0321a599a7c3ae8f93a29b6969fe9eec",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6412,
"upload_time": "2024-01-23T23:08:02",
"upload_time_iso_8601": "2024-01-23T23:08:02.748111Z",
"url": "https://files.pythonhosted.org/packages/94/d2/6eeefd30881fae9f80cba37f645d9ed46d6de0e0926c449d87622319d539/myclippings-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-23 23:08:02",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "myclippings"
}