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.0.1.tar.gz
(21.4 kB
view hashes)
Built Distribution
notevault-1.0.1-py3-none-any.whl
(15.6 kB
view hashes)
Close
Hashes for notevault-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c36e8a4c7b5513ec7f6d221b31651c3284fc08e98a0f427d740451ef9ae2735 |
|
MD5 | 332c4f1e177e21c0321c0e6e14c30866 |
|
BLAKE2b-256 | 30bd9315e48a163015ba2b87863b48457340039961e1c66609a29566d4c4658f |