Skip to main content

简易48个半小时记录法

Project description

Half-Hour (hh)

A minimal command-line note-taking tool for quick logging and reviewing of time-stamped entries.

Overview

The hh package provides three simple functions to manage a plain-text note file configured via hh.yaml:

  • hha: Add a new note line.
  • hhl: List the most recent notes.
  • hhd: Delete the most recent lines.

All notes are appended to a single text file specified in the configuration.

Configuration

Create a hh.yaml file in the same directory as __init__.py with the following content:

notefile: /path/to/your/notes.txt

Replace /path/to/your/notes.txt with the absolute or relative path to your desired note file.

Usage

Add a note (hha)

from hh import hha

hha("14:30", "Started working on README")
# Equivalent to: hha("14:30 Started working on README")

Note: All arguments are joined into a single line and appended to the note file.

List recent notes (hhl)

from hh import hhl

hhl()      # Show last 10 lines
hhl(5)     # Show last 5 lines

Delete recent notes (hhd)

from hh import hhd

hhd(3)     # Delete the last 3 lines

⚠️ Deletion is permanent and cannot be undone.

Requirements

  • Python 3.6+
  • PyYAML library (pip install PyYAML)

License

MIT (assuming standard open-source practice; adjust as needed).

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

half_hour-0.1.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

half_hour-0.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file half_hour-0.1.1.tar.gz.

File metadata

  • Download URL: half_hour-0.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for half_hour-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cf19cbfab7483eb296e156386848a140f9ba8abc816b54009571c659523be05c
MD5 a7cec88a446ea3a8ad6067efe89b4623
BLAKE2b-256 db2ea606f9b3ef087141b0bef3ab83a44170795b889c3fb1760280d3b131bf11

See more details on using hashes here.

File details

Details for the file half_hour-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: half_hour-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for half_hour-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8d533da5ab1669b77aeaf4556d88565834d9b6af43699af096ee5d7de071490
MD5 9d51def4841d51dbb3369a86baaf4570
BLAKE2b-256 9f0ece1654b04761bb805a025c4f5858a31e2856ded2541b9a3c0db47d0b252f

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