eolas-db/README.md

50 lines
953 B
Markdown
Raw Normal View History

2024-08-26 15:50:13 +01:00
# eolas-db
2024-11-14 09:21:01 +00:00
This CLI application parses entries in my
[zettelkasten](https://github.com/thomasabishop/eolas) and extracts key metadata
about each entry. It create and populates an SQLite database to store the data and derive
relations between entries.
2024-10-31 15:40:05 +00:00
2024-11-03 14:31:15 +00:00
## Local development
2024-10-31 15:40:05 +00:00
```
source venv/bin/activate
2024-11-14 09:21:01 +00:00
eolas-db [opts]
```
## Production
After development is complete, instead of compiling to a single executable I can just install the application
with `pipx` like any other.
```
pipx install [local_path_to_application]
eolas-db [opts]
```
### Update after changes
```
pipx uninstall eolas-db
pipx install [local_path_to_application]
```
## Options
### `populate`
2024-10-31 15:40:05 +00:00
```
2024-11-14 09:21:01 +00:00
eolas-db populate
```
Parse Eòlas entries and extract key metadata and body text, import into database
tables.
2024-11-03 14:31:15 +00:00
## ERM
![ERM diagram for eolas-db](./eolas-db-ERM.png)
2024-11-11 14:34:41 +00:00
## Resources
https://www.digitalocean.com/community/tutorials/how-to-use-the-sqlite3-module-in-python-3