Skip to main content

Handnotes to markdown in seconds

Project description

Handmark

Handmark is a Python CLI tool that converts handwritten notes from images into Markdown files. It uses Azure AI to process images and extract text, making it easy to digitize handwritten content.

License: MIT Version


Features

  • Converts images of handwritten notes to Markdown format
  • Intelligent title extraction from content
  • Easy-to-use CLI interface
  • Uses Azure AI for accurate image processing
  • Automatically formats output as valid Markdown

Installation

pip install handmark

You can also install using uv:

uv pip install handmark

Usage

Handmark provides a simple CLI with the following commands:

Process an Image

handmark digest <image_path> [options]

Options:

  • -o, --output <directory> - Specify output directory (default: current directory)
  • --filename <name> - Custom output filename (default: response.md)

Configure Authentication

handmark auth

This will prompt you to enter your GitHub token, which is required for Azure AI integration. The token is securely stored in a .env file in the project directory.

Configure Model

handmark conf

This command lets you select and configure the AI model used for image processing. You can choose from available models, and your selection will be saved for future runs.

Check Version

handmark --version

Example

Here's a real-world example of Handmark in action:

Input image (samples/prova.jpeg):

Handwritten notes example

Output (prova-response.md):

# Primeiro Exercício Escolar - 2025.1

Leia atentamente todas as questões antes de começar a prova. As respostas obtidas somente terão validade se respondidas nas folhas entregues. Os cálculos podem ser escritos a lápis e em qualquer ordem. Evite usar material eletrônico durante a prova, não sendo permitido o uso de calculadora programável para validá-lo. Não é permitido o uso de celular em sala.

---

1. (2 pontos) Determine a equação do plano tangente à função f(x,y) = √(20 - x² - 7y²) em (2,1). Em seguida, calcule um valor aproximado para f(1.9, 1.1).

2. (2 pontos) Determine a derivada direcional de f(x,y) = (xy)^(1/2) em P(2,2), na direção de Q(5,4).

3. (2 pontos) Determine e classifique os extremos de f(x,y) = x⁴ + y⁴ - 4xy + 2.

4. (2 pontos) Usando integrais duplas, calcule o volume acima de onde z = 0 e abaixo da superfície z = x² + y² + 2.

5. (2 pontos) Sabendo que E é o volume do sólido delimitado pelo cilindro parabólico z = x² + y² e pelo plano z = 1, apresente um esboço deste volume e calcule o valor de E.

The output is saved as a Markdown file with a filename derived from the detected title.

See the full example output


Development

Prerequisites

  • Python 3.10 or higher
  • A GitHub token for Azure AI integration

Setup

  1. Clone the repository:

    git clone https://github.com/devgabrielsborges/handmark.git
    cd handmark
    
  2. Install dependencies:

    pip install -e .
    

Running Tests

pytest

Project Structure

  • src/ - Source code
    • main.py - CLI interface
    • dissector.py - Image processing and API interaction
    • utils.py - Helper functions
  • samples/ - Sample images for testing
  • tests/ - Unit tests

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author


Last updated: May 20, 2025

Contributing

Contributions are welcome! Please open an issue or submit a pull request.


License

This project is licensed under the MIT License.


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

handmark-0.3.2.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

handmark-0.3.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file handmark-0.3.2.tar.gz.

File metadata

  • Download URL: handmark-0.3.2.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.5

File hashes

Hashes for handmark-0.3.2.tar.gz
Algorithm Hash digest
SHA256 c32af7bdc06df32d17969f6820af11e5a9b06e9affb7c3c2c38f6c687cbf99ed
MD5 4350350958df2ccfcd921add0adec04f
BLAKE2b-256 5d033679ef1734f8b09952618793d067010d5a0dc54b153d5a7751034fb8233a

See more details on using hashes here.

File details

Details for the file handmark-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: handmark-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.5

File hashes

Hashes for handmark-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8c871ce2f22a97b5785563b005047c4c2bac2d3af0faf93c165cb2c879942d33
MD5 a831bdbad637277760853ecaaa5df6d2
BLAKE2b-256 43726fe598f8db9a545040fc30fb72616307e8c6b4a6840f1092c7052827078d

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