Git Product home page Git Product logo

jsondocdb's Introduction

jsondocdb

A Python Sqlite3 database for JSON documents. Simple indexing using JsonLogic.

The JsonLogic class was adapted from https://github.com/nadirizr/json-logic-py

Documentation will eventually be included here.

jsondocdb's People

Watchers

 avatar  avatar

jsondocdb's Issues

Volume exercise

Possible to do ops in mem, then backup?

Context to switch to mem, then record back to file. How make safe?

CLI

Use click

  • yasondb dbpath --create
  • yasondb dbpath statistics
  • yasondb dbpath export [--doctype default] [-o outputfile]
  • yasondb dbpath show iuid [-o outputfile]
  • yasondb dbpath find indexname key [-o outputfile]
  • yasondb dbpath range indexname lowkey highkey [-o outputfile]

Undump

CLI

  • Flag for updating, or skipping documents with same iuid.
  • Flag for adding indexes.

Write README

Example code, class and methods documentation.

Use code for exceptions.

Put_many

Within a transaction. Faster?

Test utf8

Can handle json with swedish chars?

CSV export

Return data structure appropriate for csv write.

Require schema?

Allow index function

  • Callable as argument in create_index.
  • Since cannot be recorded in db, needs to be set each time db is opened.

Dump

CLI: Indexes and/or documents.

Find_docs

Return dict of docs, iuids as keys.

find

JSON path and value

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.