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.0.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.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: half_hour-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d6c8280e7cfa825df708028a2a3ecc2c60e0f14838db1f2130a895f8dbcc798a
MD5 5e7e8e51c0b59ab0241680164780e38d
BLAKE2b-256 3c6e3742c694e46a2ff74021e20f0eb536ba299041288e1e47de22a79ea6c5c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: half_hour-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6d1eacf932f00467f9316220e4907700219fa398cf7d0e7adaac3ffa66ad3cd
MD5 00a00fce74dce75740f25ece83e7cfe8
BLAKE2b-256 0e84e19ba5ac5de64a145e485e2cddf7633fe44127a1d38e246d5419e9c83d38

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