save parsed markdown into sqlite db
Project description
NoteVault
Define a schema over markdown documents and store certain sections as columsn in sqlite database.
Every list item must have a name
as unique key. For non-list items the key is the heading.
Format
Sections are defined by headings.
key-value pairs are extracted into fields, e.g. key: value
Fields (extraction units) correspond to "Tags", e.g. li, h2
because it can contain other tags and newlines.
field values with commas must be quoted: participants: '@user1, @user2'
Single Item:
- spec:
is_list: false
- markdown lists as fields:
- key: value
Multiple Items:
- spec:
is_list: true
sub-headings
- spec:
is_list: true
+heading_field: name
(must specify the field which will hold the sub-heading in the schema) - substructure: format:
## Title x
can contain: - markdown lists as fields:
- key: value
- sub-headings as simple content fields
markdown lists
- substructure: format:
- key: value, key: value, key: "complex, value"
TODO
- define sections via headings
- parse every section into one model generically (look for props, try to avoid document hierarchy)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
notevault-1.2.0.tar.gz
(23.3 kB
view hashes)
Built Distribution
notevault-1.2.0-py3-none-any.whl
(18.4 kB
view hashes)
Close
Hashes for notevault-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9531ad02219ffc9b2d35b84956b4a4263b6ed99f18b94536f42dfe8cb94986b |
|
MD5 | 26038891dc1d767e741be5834505fb9b |
|
BLAKE2b-256 | c35265af4f217162e081ac8f5435c8ad5eeb8e279331c6026f29d975bc24d27e |