Skip to main content

Convert Kindle notes to MarkDown

Project description

Kindle to Markdown

Kindle to Markdown converts Kindle notes and highlights exported by Bookcision as JSON into Markdown.

Installation

  1. Ensure pip is installed.
  2. pip install kindle-to-md

Usage

To export your Kindle notes and highlights using Bookcision:

  1. Install Bookcision.
  2. View your notes an highlights on Amazon.
  3. Run the Bookcision bookmarklet.
  4. Select Download | as JSON from the Bookcision menu.

To convert your notes to Markdown:

  1. In terminal, run kindle-to-md {downloaded_notes.json} {output_file.md}
  2. You can also run kindle-to-md {downloaded_notes.json} to output the notes to terminal.

To import to another Python script:

import kindle_to_md

Bug Reports and Feature Requests

To submit a bug report or make a feature request, create an issue on the GitHub repostitory.

Development

The development repository is located at https://github.com/mikethicke/kindletomd.

Pull Requests should be accompianed by unit tests that fail before the changes are merged and pass afterwards.

This project follows Google's Python Style Guide.

This package uses a src layout, so you will have to build and install the package locally to run the tests.

Sample development workflow (for MacOS / Linux):

  1. Clone the repository: git clone https://github.com/mikethicke/kindletomd.git
  2. Change to your repository directory: cd kindletomd
  3. Create a virtual environment: python3 -m venv venv
  4. Activate the virtual environment: source venv/bin/activate
  5. Install development dependencies: pip install -r requirements.txt
  6. Write test or tests that fail for the bug you are addressing or feature you are developing. Tests are located in the tests directory. Avoid putting test data directly in the unit tests themselves. Instead, put data in test-data directory or in conftest.py. This makes it easier to reuse data in other tests. If your test addresses a specific issue, reference the issue in the test's docblock.
  7. Build the package: python -m build
  8. Install the package locally: pip install dist/{pacakge}.tar.gz
  9. Run pytest:
    1. cd tests
    2. pytest
  10. Your tests should fail and none others should.
  11. Implement your changes.
  12. Rebuild the package.
  13. Reinstall the package.
  14. Re-run pytest and confirm your changes cause your tests to pass.
  15. Commit your changes and open a Pull Request on Github to merge your changes.

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

kindle-to-md-1.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kindle_to_md-1.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file kindle-to-md-1.0.0.tar.gz.

File metadata

  • Download URL: kindle-to-md-1.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for kindle-to-md-1.0.0.tar.gz
Algorithm Hash digest
SHA256 922a3a9d6782521249b81690b0025fd215cc244596bc058497146e10b262d0a5
MD5 15b09843656ed3ba3c85f64ee811036d
BLAKE2b-256 5e39dd982d11eb3cc0808cf497de72154f1ec7f2389dbb069e5a77f7386708ff

See more details on using hashes here.

File details

Details for the file kindle_to_md-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: kindle_to_md-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for kindle_to_md-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d12c08386976f40c88a227e3a4531fcf75f0830f44f2814a17f545be7dd847b8
MD5 1aaa4f7ae967b1e3bd14801cef587655
BLAKE2b-256 aba9802c57f4ab34fab8795404398bd3720129ccbf7d3bab6267fcb7a36181b9

See more details on using hashes here.

Supported by

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