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
|
2024-11-14 13:32:13 +00:00
|
|
|
about each entry. It creates and populates an SQLite database and offers options for
|
|
|
|
exporting mapped 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
|
|
|
|
|
|
|
|

|
2024-11-11 14:34:41 +00:00
|
|
|
|
|
|
|
## Resources
|
|
|
|
|
|
|
|
https://www.digitalocean.com/community/tutorials/how-to-use-the-sqlite3-module-in-python-3
|