Skip to main content

A diary tool.

Project description

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:

  1. Edit the pyproject.toml file, altering the line defining version.

  2. Edit the src/diarydek/diarydek.py file, altering the definition of self.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

  1. https://packaging.python.org/tutorials/packaging-projects/ provides information on packaging.

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

diarydek-0.0.25.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

diarydek-0.0.25-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file diarydek-0.0.25.tar.gz.

File metadata

  • Download URL: diarydek-0.0.25.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for diarydek-0.0.25.tar.gz
Algorithm Hash digest
SHA256 30ff6a6d3dca760902bd871d7227dc0db9f2ebcf8d6ae19ee67b5801753a068f
MD5 cdf904466efa402240adf2ae6e5c30c5
BLAKE2b-256 4c18cd427c33c1b7ba2408bab7e0635b749204313802a1e2db0fee4013370a4c

See more details on using hashes here.

File details

Details for the file diarydek-0.0.25-py3-none-any.whl.

File metadata

  • Download URL: diarydek-0.0.25-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for diarydek-0.0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 e8a3d78f0cc62a4533689c7604767a8aeec29b66e9940aa951d5782b7ca825bb
MD5 f252003ee5a14d1ea1848acc8f4948ce
BLAKE2b-256 2aae39937c9e656935e34d9c8dd94028259359d4a5b9c54fcccd75a4ac905d2b

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