Metadata-Version: 2.1
Name: pypi-tdb
Version: 0.0.2
Summary: tdb: text based database with tagging
Project-URL: Homepage, https://github.com/graehu/tdb
Project-URL: Bug Tracker, https://github.com/graehu/tdb/issues
Author-email: Graham Hughes <graehu@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# tdb

A text based database with tagging.

```
Usage: py -m tdb [add | edit | template | show | config | archive] [text | options]
----------------------------------------------------------------
Commands:
add:            Make a record when text is supplied. Otherwise, open an editor to write one.
edit:           Open an editor with some view of the database, see options.
template:       Open an editor to write a record with the passed template file as a basis.
config:         Open tdbs config file.
archive:        Open tdbs archive. Check here if you lose a record.
----------------------------------------------------------------
Options:
span:           The records to select, example: span:7d is the last 7 days.
format:         The format to see the records in. Only valid for show currently. [html, json, short]
@{tag}:         This tag or any others must be included, example: @notes @school, records must have either.
+@{tag}:        This tag and any others must be included. i.e. +@notes +@school, records must have both.
-@{tag}:        This tag must not be included. i.e. -@notes @school, records for school, no notes.
{text}:         This text is optional.
+{text}:        This text must be included.
-{text}:        This text must not be included

Note, text must be quoted if there are spaces.
```
