Simple note-taking with CLI & Git integration.
Project description
pyzet
"I, of course, do not think everything by myself. It happens mainly within the Zettelkasten".
pyzet is a CLI tool targeted at note-taking and personal knowledge
management loosely inspired by the Zettelkasten approach, hence the
name. The whole workflow is centered around Git repos where notes are
stored.
Installation
Prerequisites:
- Python 3.9+
- Git 2.25+ (but older also should be fine)
Unix and Windows are supported. You can install pyzet with pip:
pip install pyzet
Tutorial
For the quick setup for the either platform (make sure to create missing folders):
pyzet sample-config unix > ~/.config/pyzet/pyzet.yaml
pyzet sample-config windows | Set-Content ~/.config/pyzet/pyzet.yaml
Run pyzet init to create Git repo.
You can read the more detailed tutorial in docs.
Configuration
A config file should be placed inside ~/.config/pyzet/pyzet.yaml, and
looks like this:
repo: ~/zet
editor: /usr/bin/vim
editor_args: []
-
repo: the location of the ZK Git repo -
editor(default:/usr/bin/vim): path to the editor used to add and edit zettels -
editor_args(default: empty): optional list of CLI arguments which should be passed to the editor
Support for multiple ZK repos
You can have multiple repos, and only a single config file, because
there is --repo flag that you can always set to point to a custom repo
(and possibly, create an alias that includes it). If --repo flag is
used, the value from YAML is ignored.
Supported editors
See docs.
Writing parsable zettels
See docs.
Development installation
Development dependencies are stored in requirements-dev.txt. To
install the package in editable mode with the dev dependencies run the
following after cloning the repo:
pip install -e .
pip install -r requirements-dev.txt
For running tests more easily, you might also want to install tox:
pip install tox
Then you can easily run:
tox -e coverage # pytest with test coverage
tox -e pre-commit # run pre-commit checks on all files
Building
tox # runs all tox envs making sure tests pass
pyproject-build # builds both the wheel and source dist
twine check dist/* # checks if the build isn't completely broken
twine upload dist/* # asks for username and password
It's best to use token (__token__ as username) for the last command.
Inspiration and further reading
@rwxrob inspired me to write a
stand-alone tool for note taking rather than use a ready solution. He
posted a good summary in this video.
See also:
-
Two essays by the creator of Zettelkasten, Niklas Luhmann
https://luhmann.surge.sh/ -
Even simpler approach to Zettelkasten
https://gsilvapt.me/posts/poor-man-zettel/ -
Simple, Non-Commercial, Open Source Notes, a great video about tools to do note-taking
https://youtu.be/XRpHIa-2XCE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyzet-0.12.0.tar.gz.
File metadata
- Download URL: pyzet-0.12.0.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e84e663c0009fe058811035a46ef65347b0cbc9cb3f794dbf7af06d83f19a84a
|
|
| MD5 |
6c37a599abce7791c6b94c97ed3f6416
|
|
| BLAKE2b-256 |
39b764dea4e46c9a348d570d487cc89609bd6958af3664955bea63d5409b3aa5
|
File details
Details for the file pyzet-0.12.0-py3-none-any.whl.
File metadata
- Download URL: pyzet-0.12.0-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f46736afc01b478721503f44b80810c4bb33c0101bed6d72644c7fdd6c65fad1
|
|
| MD5 |
9620c0613cbbd4f5f17195a3cf77b63e
|
|
| BLAKE2b-256 |
6c61f3c8567366ba663119c3715f5011051e75a260a32a80b14fef0a4c142c15
|