Skip to main content

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 hashes)

Uploaded Source

Built Distribution

myclippings-0.0.6-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page