Skip to main content

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


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.1.0.tar.gz (22.7 kB view hashes)

Uploaded Source

Built Distribution

notevault-1.1.0-py3-none-any.whl (18.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page