diarydek
'diarydek' is a python script to handle diary entries. It is still in an Alpha stage of development, meaning that anything you see here might change in the future. Heck, some of it may be wrong even as you read this!
Sample Usage
Get help.
diarydek --help
diarydek -h
Add an entry that has no categories.
diarydek I ate breakfast.
Add an entry that has a single category.
diarydek I ate a salad for lunch. : food
Add an entry that has a two categories.
diarydek I ate a salad for lunch. : food healthy
See all entries
diarydek --list
See entries with caw in the entry.
diarydek --list caw
See entries with tag sound.
diarydek --list : sound
Rename a tag.
diarydek --renameTag oldName newName
Find tag usage
diarydek --showTags
Combining databases.
The following appends the contents of the database B to database A.
diarydek --database ~/B.db --writeCSV > B.csv
diarydek --database ~/A.db --readCSV B.csv
Developer's Notes
The following builds locally, when run from the source directory.
python3 -m pip install . --break-system-packages
If this works in testing, consider uploading to pypi. Be sure to bump the version number first to avoid conflict with a version on pypi. Do this in two steps:
-
Edit the
pyproject.tomlfile, altering the line definingversion. -
Edit the
src/diarydek/diarydek.pyfile, altering the definition ofself.appversion.
With this done, it is possible to upload to pypi, which is done with the following. (The first step just ensures that you don't try to upload any old sources that you might have built up previously with twine.)
rm dist/* # remove any existing files
python3 -m build # build, installing 2 files in dist
python3 -m twine upload dist/* # upload to pypi
Once this is done, you can install the pypi version using the following. If it works, then you can have some assurance that users can install it (using the second step).
pip uninstall diarydek --break-system-packages # remove any existing version
pip install diarydek --break-system-packages # install new, from pypi
Suggested aliases
Although you can use a single diary for all your work, it can sometimes help to have multiple databases, e.g. for privacy. I do things like the following.
alias ',dp'='diarydek --database=~/Documents/diary/personal.db'
alias ',dw'='diarydek --database=~/Documents/diary/work.db'
References
- https://packaging.python.org/tutorials/packaging-projects/ provides information on packaging.
Release files for diarydek 0.0.25
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| diarydek-0.0.25.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| diarydek-0.0.25-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / diarydek-0.0.25.tar.gz
| Download URL | diarydek-0.0.25.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30ff6a6d3dca760902bd871d7227dc0db9f2ebcf8d6ae19ee67b5801753a068f
|
|
BLAKE2b-256 checksum How to use checksums |
4c18cd427c33c1b7ba2408bab7e0635b749204313802a1e2db0fee4013370a4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / diarydek-0.0.25-py3-none-any.whl
| Download URL | diarydek-0.0.25-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8a3d78f0cc62a4533689c7604767a8aeec29b66e9940aa951d5782b7ca825bb
|
|
BLAKE2b-256 checksum How to use checksums |
2aae39937c9e656935e34d9c8dd94028259359d4a5b9c54fcccd75a4ac905d2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|