Git Product home page Git Product logo

ddb's Introduction

ddb (delimited database)

A serviceless sql interface for flat files written in python

What does it do?

  • ddb sits on top of text files, giving them a database access layer
  • you can read, write, update csv's or any type of delimited text file via sql

What are the human benifits to using ddb?

  • a common interface for all of your flat files
  • change control
  • access and modification logging
  • multiple points of integration (python, shell, slack, ansible)
  • sql is easy to work with, no coding required
  • the text file stays the same
  • wont break or affect anything that might use the file

What are the technical benifits to using ddb?

  • it does not run as a service, nothing to maintain
  • it can run on any server with python 2.7>
  • low memory foot print. it reads data 1 line at a time
  • eases the effort of data migration using sql
  • the text file does not change
  • accessibility of the text file doesnt change
  • ease of automation
  • error handeling for bad data
  • event logging
  • no caching at all, all access is live
  • optimized for speed using cython

How do I use it?

Where do I get it?

How do I install it?

The github repo is where I work. Stable releases should be downloaded from pypi.

pip install ddb --user

If you dont want to quote everything in shell

  • disable globing for ddb

BASH

   echo "alias ddb='set -f;ddb';ddb(){ command ddb "$@";set +f;}" >~/.bashrc

Getting started

dev stuff

ddb WorkFlow

Workflow

BASH Demo

Demo

ddb 30 forks, 1 file with locking

Demo

DDB Icon

DDB

Will you help me?

Sure, within reason and ability. Just contact me

ddb's People

Contributors

barbeque avatar chris17453 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tscofield

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.