TinyDB is a lightweight document oriented database optimized for your happiness :)

Overview

https://raw.githubusercontent.com/msiemens/tinydb/master/artwork/logo.png

Build Status Coverage Version

Quick Links

Introduction

TinyDB is a lightweight document oriented database optimized for your happiness :) It's written in pure Python and has no external dependencies. The target are small apps that would be blown away by a SQL-DB or an external database server.

TinyDB is:

  • tiny: The current source code has 1800 lines of code (with about 40% documentation) and 1600 lines tests.
  • document oriented: Like MongoDB, you can store any document (represented as dict) in TinyDB.
  • optimized for your happiness: TinyDB is designed to be simple and fun to use by providing a simple and clean API.
  • written in pure Python: TinyDB neither needs an external server (as e.g. PyMongo) nor any dependencies from PyPI.
  • works on Python 3.5+ and PyPy: TinyDB works on all modern versions of Python and PyPy.
  • powerfully extensible: You can easily extend TinyDB by writing new storages or modify the behaviour of storages with Middlewares.
  • 100% test coverage: No explanation needed.

To dive straight into all the details, head over to the TinyDB docs. You can also discuss everything related to TinyDB like general development, extensions or showcase your TinyDB-based projects on the discussion forum.

Supported Python Versions

TinyDB has been tested with Python 3.5 - 3.8 and PyPy.

Example Code

>>> from tinydb import TinyDB, Query
>>> db = TinyDB('/path/to/db.json')
>>> db.insert({'int': 1, 'char': 'a'})
>>> db.insert({'int': 1, 'char': 'b'})

Query Language

>>> User = Query()
>>> # Search for a field value
>>> db.search(User.name == 'John')
[{'name': 'John', 'age': 22}, {'name': 'John', 'age': 37}]

>>> # Combine two queries with logical and
>>> db.search((User.name == 'John') & (User.age <= 30))
[{'name': 'John', 'age': 22}]

>>> # Combine two queries with logical or
>>> db.search((User.name == 'John') | (User.name == 'Bob'))
[{'name': 'John', 'age': 22}, {'name': 'John', 'age': 37}, {'name': 'Bob', 'age': 42}]

>>> # More possible comparisons:  !=  <  >  <=  >=
>>> # More possible checks: where(...).matches(regex), where(...).test(your_test_func)

Tables

>>> table = db.table('name')
>>> table.insert({'value': True})
>>> table.all()
[{'value': True}]

Using Middlewares

>>> from tinydb.storages import JSONStorage
>>> from tinydb.middlewares import CachingMiddleware
>>> db = TinyDB('/path/to/db.json', storage=CachingMiddleware(JSONStorage))

Contributing

Whether reporting bugs, discussing improvements and new ideas or writing extensions: Contributions to TinyDB are welcome! Here's how to get started:

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug
  2. Fork the repository on Github, create a new branch off the master branch and start making your changes (known as GitHub Flow)
  3. Write a test which shows that the bug was fixed or that the feature works as expected
  4. Send a pull request and bug the maintainer until it gets merged and published
Comments
  • Add Table.write_back(), replacing documents by ids

    Add Table.write_back(), replacing documents by ids

    Compare to update(), ~replace()~ write_back() provide a more customizable workflow to modify documents. One can fistly search the documents and modify them by thier conditions, then input new douments with thier doc_ids to ~replace()~ write_back().

    Example Usage

    from tinydb import TinyDB, Query
    from tinydb.storages import MemoryStorage
    
    db = TinyDB(storage=MemoryStorage)
    
    db.purge()
    
    dataset = [
        {"stock": ["cookies", "apple"]},
        {"stock": ["brownies"]},
        {"stock": ["cake"]},
        {"stock": ["cookies", "milk"]},
        {"stock": ["cake"]},
        {"stock": ["pie", "cake"]},
        {"stock": ["apple"]},
    ]
    
    table = db.table('yumyum')
    table.insert_multiple(dataset)
    # search
    yum = Query()
    docs = table.search(yum.stock.any(["cake", "apple"]))
    # modify docs
    for doc in docs:
        for i, stock in enumerate(doc["stock"]):
            if stock == "cake":
                doc["stock"][i] = "water"
            if stock == "apple":
                doc["stock"][i] = "honey"
    # write back
    table.write_back(docs)
    

    Or ~replace~ write_back with new documents

    db.purge()
    
    table = db.table('yumyum')
    table.insert_multiple(dataset)
    
    docs = table.all()
    # save doc_ids
    doc_ids = [doc.doc_id for doc in docs]
    # modify docs
    for i, doc in enumerate(docs):
        if len(doc["stock"]) == 1:
            docs[i] = {"best": doc["stock"][0]}
        elif len(doc["stock"]) > 1:
            docs[i] = {"good": doc["stock"]}
    
    table.write_back(docs, doc_ids)
    

    Could be a convenient feature :)

    opened by davidlatwe 21
  • adding new functionality to `update()`

    adding new functionality to `update()`

    I'm looking to add new functionality to update. I would like to add an increment function first of all. I thought of something like this:

    db.update(inc('int'), cond, eids)
    

    And then change the update's present functionality to set, so:

    db.update(set({'char': 'a'}), cond, eids)
    

    Alternatively an interface such as this may be preferable:

    db.update(cond, eids).inc('int')` and `db.update(cond, eids).set({'char': 'a'})
    

    This change would allow the addition of new functions such as max, min, etc going forward.

    I'm looking for thoughts/opinions and how best to structure this?

    opened by wearp 21
  • Discussion: adding an index extension

    Discussion: adding an index extension

    Hello, I am looking for some thoughts on a Tinydb extension that i am mulling over how to implement. Considering there is an active discussion about ideas for a 4.0 #284 I thought this might be a good time to bring it up.

    To start off with here is a quick description of what I am doing in my application that I am interested in integrating directly into a TinyDB extension. Currently I have a DB of a size that is on the upper end of what TinyDB is recommended for. In that DB i have a particular field that is used very often in DB "queries". The values of that field are not guaranteed to be unique, however the number of entries that share that same value will always be small relative to the number of entries in the DB. Additionally the values associated with the field are sort-able. To speed up my application i have been pulling the entries out of the DB and creating a SortedCollection sorted by that particular field and I maintain the state of that collection along with every database modification, kind of like smart-cache. Then when I get to a point where i would normally perform a query on that field (or a combination of that field and something else), i use the sorted collection for faster lookup.

    What I am trying to figure out is what would be the best way to integrate this behavior into TinyDB, so that it can be done transparently with the query interface. To start i know i would need to create a TableClass to implement the management and usage of the sorted "Index(s)". There also must be some way of specifying which field(s) should be indexed, either statically at the creation of the database object or dynamically based on the query being used. I am considering whether or not it makes sense to subclass the Query class so that the index is only used for a specific type of query.

    Finally I need a way to determine, within each query consuming call, whether the query can be performed on an index or must be done on the database directly. I am imagining that I would need to do something like decomposing the query "path" to determine if it is a direct query of an indexed field or if it is a top level AND of a query on that field and something else. I think those are the only cases that would work, a top level OR definitely wouldn't.

    I am interested to here any thoughts anyone might have on the feasibility of this kind of extension, how i might go about implementing it, or anything i may have missed. Despite having gotten this far, and created a few simple customization to TinyDB, I am still very new to this library and python in general. Any assistance would be greatly appriciated.

    discussion stale 
    opened by dcflachs 15
  • __repr__ methods for classes TinyDB, Table and Query

    __repr__ methods for classes TinyDB, Table and Query

    Hello, considers https://github.com/msiemens/tinydb/issues/226.

    I have added basic __repr__ implementation for mentioned classes, would like to know if you see it as sufficient and which else classes should be implemented within the same way.

    You may try the reprs with:

    from tinydb import database, queries
    
    print(repr(database.TinyDB('test.json')))
    print(repr(database.Table(database.JSONStorage('test.json'), 'some name')))
    
    Fruit = queries.Query()
    print(repr(Fruit.type == 'peach'))
    

    Achieving results:

    TinyDB(tables={'_default'}, tables_count=1, default_table_documents_count=0, all_tables_documents_count=['_default=0'])
    Table(name='some name', total=1, storage=<tinydb.storages.JSONStorage object at 0x10212c2e8>)
    QueryImpl('==', ('type',), 'peach')
    
    opened by Xarvalus 14
  • Refactoring Elements

    Refactoring Elements

    I was writing a package to build a simple graph on top of TinyDB, and came into a problem similar to #97. After reading the TinyDB source code, it isn't really possible (or at least comes with a huge performance penalty).

    At the moment, whilst you can replace the Table class used by the TinyDB class, you have no control over the Element or StorageProxy classes. Instances of StorageProxy are created by the TinyDB class, and passed to the Table class. The StorageProxy then creates Element instances, with no way of changing it.

    If I were to extend Table and replace the _read method with my own in order to use my own objects, there would be quite a performance penalty. The reason being, JSONStorage by way of using the json package has created dict objects for every element, then StorageProxy has gone and replaced each of those dicts with an Element object, and then I would replace them again with my own. Additionally, whilst I could pass my object to the json module with the object_hook argument, this object would then be replaced by the StorageProxy anyway, defeating the purpose.

    The way I see it, the only purpose of the Element class is to give the element the eid attribute. I think this can be acheived in 2 ways;

    1. It would be possible to create a custom json decoder, based upon json/simplejson. I have looked over the source code for those packages, and it would be possible to maintain a 'breadcrumb' list as the elements were decoded, and thus the eid would be known as the element is created. In this instance, the element object to create could be defined by the object_hook argument. The problem with this approach is that you couldn't use a different json package, as they would not have the capability of determining the eid as they decoded. For this reason, I don't think this is a good option.
    2. Make the eid a field on the element. Then, any json package will work, and the object_hook argument that a lot of json packages seem to implement would work too.

    I think option 2 opens up a lot of possibilies. The 'default' Element used by TinyDB could just be the dict as per json, or a slightly extended version with __getattr__ that allows the eid to be returned as a property. An optional Element could allow all fields to be accessed as properties. And of course, people can pass in their own objects.

    There's a lot more specific implementation details I could go into, but I'll let you respond to this first.

    opened by neRok00 14
  • Storage interface to receive element in context

    Storage interface to receive element in context

    What are your thoughts on passing the element from the write context (e.g. Table's insert) to the storage instead of all the data. This would allow storages that don't have to write all of the data every time any one (or a few) elements are created/modified/deleted.

    BTW, you really nailed the API in this project. Nice and simple.

    opened by fictorial 14
  • Allow datetime objects in TinyDB

    Allow datetime objects in TinyDB

    Since JSON is the default serilization format for TinyDB there's the datetime problem:

    >>> from tinydb import TinyDB
    >>> from datetime import datetime
    >>> db = TinyDB("db.json")
    >>> db.insert({"date": datetime.now()})
    ...
    TypeError: datetime.datetime(2015, 2, 21, 17, 24, 17, 828569) is not JSON serializable
    

    Many other databases handle datetime conversion for the user, and I would very much like TinyDB to do the same (It's usually fixed by specifying a custom encoding and a corresponding decoder when reading from the database).

    Do you think this is a good idea?

    opened by EmilStenstrom 14
  • [feature] Add timestamp on document insertion/update

    [feature] Add timestamp on document insertion/update

    Hi Markus,

    My use-case for TinyDB requires a timestamp to be added to each document upon insertion and when that document is updated. This is useful for understanding database activities, establishing statistics and trends etc.

    I have implemented this feature, nonetheless I think this is a fairly simple addition and would like to discuss and see if other people are interested in this feature.

    A user settable flag is defined in the Table class. The default value is false (i.e. the feature is not active) so as to not break compatibility.

    On insertion, the field 'created' is added to the document dictionary and initialized with the current UTC time in string format. The field 'updated' is also added but is initialized as empty string ''.

    On update of a document, the field 'updated' is set to the current UTC time in string format.

    I don't really care what time zone/format is chosen as long as it is consistent, UTC seems like a good choice. This might be a point of issue for some people and maybe it will require some customization down the track, although I like the simplicity of having only one time format.

    Let me know what you think.

    Cheers,

    Miles

    opened by mcaples 13
  • add create_dirs kwarg to JSONStorage

    add create_dirs kwarg to JSONStorage

    Setting create_dirs=True in __init__ will create the necessary parent directories to ensure db file will be created. This will further lessen what the user has to worry about.

    opened by ofek 13
  • Problem installing 2.3 as dependency from setup.py

    Problem installing 2.3 as dependency from setup.py

    My colleague had this problem today, trying to install through pip. My package, that he's trying to install, and which depends on tinydb, has the setup.py requirement for tinydb>=2.2. Are we missing something silly here or is there a problem with the uploaded 2.3 version to pip? Thanks!

    Searching for tinydb>=2.2
    Reading https://pypi.python.org/simple/tinydb/
    Best match: tinydb 2.3.0-b
    Downloading https://pypi.python.org/packages/source/t/tinydb/tinydb-2.3.0-b.zip#md5=15f0720f29a7f673a4bec54cd5ec6350
    Processing tinydb-2.3.0-b.zip
    Writing /tmp/easy_install-udrz_6/tinydb-2.3.0/setup.cfg
    Running tinydb-2.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-udrz_6/tinydb-2.3.0/egg-dist-tmp-HZLQA2
    No eggs found in /tmp/easy_install-udrz_6/tinydb-2.3.0/egg-dist-tmp-HZLQA2 (setup script problem?)
    error: Could not find required distribution tinydb>=2.2
    
    opened by robclewley 13
  • Proposal: TinyDB v4.0.0

    Proposal: TinyDB v4.0.0

    Lately, I've been thinking about how to move TinyDB forward and what the next steps are. And the more I thought about it, the more I became convinced, that TinyDB needs a v4.0.0.

    Motivation

    Why would we want a TinyDB v4.0? Why introducing a backwards-incompatible releases? In my view, the reasons to publish a new major release is threefold:

    • Remove deprecated functionality that's been waiting to be removed for more than two years now.
    • Fix design issues that have been introduced by a lack of vision for extension mechanisms in TinyDB.
    • Simplify the architecture in order to fix other issues that cannot be solved without breaking backwards compatibility.

    To elaborate on these reasons:

    Deprecations

    TinyDB is 6 years old now. The first stable release (v1.0.0) was published in July 2013. A year later in September 2014 there has been a major release (v2.0.0) that changed the data format and improved the API. Again a year later in November 2015, the next major release (v3.0.0) cleaned up the query language architecture and started moving non-core functionality to external packages.

    Version 3.0.0 is now almost 4 years old. In the meantime TinyDB continued to evolve, including shifting the terminology from elements to documents in v3.6.0 and the deprecation of ujson support. Both of these changes have been major cleanups, but there hasn't been a major release of TinyDB that would actually get rid of the deprecated features. This results in cluttered code which makes it harder to understand the TinyDB software design/architecture.

    In addition, Python 2, which TinyDB supports, will reach its end of life at the end of 2019. As TinyDB has quite a few places where it has to do extra work to support both Python 2 and 3 from the same code base, dropping Python 2 support would simplify the code even further.

    TinyDB v4.0.0 would simplify the source code by removing deprecated features and in turn make it easier to understand the source and to develop one's own extensions. In addition, only Python 3 would be supported.

    Extension Mechanisms

    Right from the start, there have been two ways to extend TinyDB: Custom Storages and Custom Middlewares. As the popularity and usage of TinyDB increased, so did requests to make it possible to extend other parts of TinyDB. Thus, Custom Table Classes and Custom Storage Proxy Classes have been added. In addition, mechanisms to modify the default table class name and parameters as well as the default storage class have been introduced. As as result there are no less than seven places where TinyDB's behaviour can be modified.

    Except for the first two, all extension mechanisms have been introduced as a result of user requests. At the time of each request, it seemed to be the best option to follow the path of least resistance when adding a new extension mechanism, refraining from any soft of breaking changes. But looking back it is apparent, that there was no real concept of how extending TinyDB should work in general.

    TinyDB v4.0.0 would remove all extension mechanisms except for Custom Storages. All other extension mechanisms would be replaced by a unified extension concept as detailed below.

    Architecture & API

    To be honest, I'm not particularly proud about TinyDB's internal software architecture. As TinyDB evolved gradually, often simplicity of the software architecture was neglected. Now we're in a state, where there's a lot of unneeded indirection. Data access uses up to 5 classes, two of which are some form of proxy class: TinyDBTableStorageProxyDocumentProxyStorage. This makes TinyDB's source code complicated and also impacts performance (see #250). Fixing these design issues requires rearchitecting TinyDB. But this in turn requires breaking backwards compatibility as some extension mechanisms rely on the old software architecture.

    Additionally, there's been discussion about inconsistencies in TinyDB's API regarding purging data (see #103). Removing these inconsistencies would break backwards compatibility.

    TinyDB v4.0.0. would simplify the internal software architecture and remove inconsistencies from its API, making it easier to understand how TinyDB works and thus making it easier to extend.

    Proposals

    Deprecations

    For the reasons outlined above, I propose to

    • Put TinyDB v3 into maintenance mode, implementing only bug fixes but not adding new features,
    • Remove all deprecated features,
    • Drop Python 2 support

    Extension Mechanisms

    I propose to replace all existing extension mechanisms with Custom Storages and Inheritance. Custom Storages continue to be a useful extension mechanism that is difficult to replicate by other means. In addition to Custom Storages, the main way to extend TinyDB and to modify its behaviour would be inheritance – to create subclasses of TinyDB. A famous example of this approach is Flask:

    The Flask class has many methods designed for subclassing. You can quickly add or customize behavior by subclassing Flask (see the linked method docs) and using that subclass wherever you instantiate an application class.

    In addition, the Flask docs state:

    As you grow your codebase, don’t just use Flask – understand it. Read the source. Flask’s code is written to be read; its documentation is published so you can use its internal APIs. Flask sticks to documented APIs in upstream libraries, and documents its internal utilities so that you can find the hook points needed for your project.

    With the new extension approach, TinyDB would aim to follow the same path: Instead of adding new extension mechanisms endlessly, users would be encouraged to subclass TinyDB and other classes in order to modify, how TinyDB fetches the last ID, how it calculates the next ID, how the default table name is determined, and other behaviours.

    Implementing this requires making useful internal TinyDB methods part of the public API and documenting them in a way that makes it easy to overload them with custom behaviour. The documentation should provide examples of what types of extensions are possible by subclassing. Also, the source code itself should have its code comments reworked to make it easy to understand how TinyDB works from the first reading of the source code (based on ideas like literate programming).

    The main challenge of implementing this approach is to find the right balance of how much of TinyDB's internal methods should become part of the public API. Making too few methods part of the public API makes it difficult to modify all aspects of TinyDB's behaviour. But making too many methods part of the public API makes it difficult to continue to evolve TinyDB without breaking the existing API and existing extensions and in addition cluttering the public API too much.

    My approach regarding which methods to include in the public API would be to be conservative and – at first – include too few methods rather than too many. The reason behind this is that it's possible to move more methods to the public API after the fact without breaking the existing API whereas the opposite would break existing usage.

    Architecture & API Changes

    I propose to simplify to rearchitect TinyDB to use the following classes:

    • TinyDB class
      • Create and manage tables
      • Forward calls to the default table
    • Table class
      • Receive a storage instance from the TinyDB class
      • Modify table data
      • Cache query results to avoid unneeded I/O
    • Storage class
      • Read and write data to a storage
    • Query class
      • Provide searching and filtering
    • Document class
      • Provide a thin wrapper around stored data that remembers the document's ID

    There may be additional internal classes (such as the QueryImp and LRUCache classes we currently have), the classes outlined above should do the lion share of the work for TinyDB. All in all, the new architecture should provide a clear separation of concerns and responsibilities. Simplifying the architecture in this way would allow to fix issue #250 (StorageProxy read performance is abysmal). Also, a simple architecture makes it easy to understand how TinyDB works which in turn would impact how easy it is to extend TinyDB using inheritance (see above). In other words: Having a simpler architecture should make it easier to extend TinyDB.

    In addition to architecture changes, I propose to also simplify TinyDB's API. For one thing, we could fix issue #103 (Inconsistency with purge functions) by making function names consistent between the TinyDB and Table classes. For another thing, I would propose to remove the write_back method as it complicates the API, probably is rarely used and can be implemented by subclassing, if needed. Also, I would like to make process_elements part of the internal API again as it's a core method of how data is manipulated and probably should not be modified by subclassing.

    Feedback Requested

    If you have thoughts, questions, comments or ideas regarding a possible TinyDB v4.0.0, especially regarding the proposals outlined above, feel free to comment and discuss on this issue 🙂

    discussion pinned design 
    opened by msiemens 12
  • build(deps): bump certifi from 2022.9.24 to 2022.12.7

    build(deps): bump certifi from 2022.9.24 to 2022.12.7

    Bumps certifi from 2022.9.24 to 2022.12.7.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Query multiple docs by ID

    Query multiple docs by ID

    As a follow-up to #329 , how can I query for multiple docs using their IDs? Like

    doc_ids = [1, 2, 5]
    db.search(doc_ids=doc_ids)
    

    db.get(doc_id) exists but only for a single document. I could iterate over the list of doc IDs yet this might not be as efficient.

    opened by pylipp 3
  • Atomic replace (second attempt)

    Atomic replace (second attempt)

    Revamp of #468. Fixes #467.

    I was in a position to fix this one because during the python-atomicwrites package fiasco I read somewhere that the author basically said people should be using os.replace anyway. Other platform-dependent errors were fixed basically by closing file handles in the right order.

    opened by richardsheridan 3
  • Query syntax causing pylint

    Query syntax causing pylint "singleton-comparison" and flake8 E712

    Hey there! I'm trying to use tinydb in a project using mypy (thanks for the plugin), pylint and flake8. While mypy works and understands the query syntax thanks to the provided plugin, pylint and flake8 will complain about the following:

    database.search(query["test"] == True)
    pylint: singleton-comparison error: should be "query["test"] is True"
    flake8: E712 use "if query["test"] is True: or if query["test"]:"
    

    Apparently using those syntax changes as advised by these linting frameworks results in an error, because then the query is not a Callable anymore but directly a boolean value.

    The only thing I found to "work" is to silence both linters on every line that makes use of the query language. Please tell me I'm just stupid and there is another, straight forward way of doing this :pray:

    "Fun"-fact: I tried to circumvent this by passing a lambda function as query which works in code and pleases pylint and flake8 but then mypy will start to break out in tears because there is an obvious type mismatch between some random Callable and a a QueryLike object.

    opened by w4tsn 1
  • Why not using os.rename to write file?

    Why not using os.rename to write file?

    Hi, I noticed that the JsonStorage uses the write method to rewrite the entire file. However if a crash occurs while the file is being written, the db could be damaged. Why don't write to a temporary file and rename? You can check what I mean in PR #468 :)

    opened by ostafen 8
Releases(v4.7.0)
HTTP graph database built in Python 3

KiwiDB HTTP graph database built in Python 3. Reference Format References are strings in the format: { JanCraft 1 Dec 17, 2021

A Modular MWDB Utility to Collect Fresh Malware Samples

MWDB Feeds A Modular MWDB Utility to Collect Fresh Malware Samples This project is FREE as in FREE 🍺 , use it commercially, privately or however you

c3rb3ru5 32 Jul 07, 2022
Enfilade: Tool to Detect Infections in MongoDB Instances

Enfilade: Tool to Detect Infections in MongoDB Instances

Aditya K Sood 7 Feb 21, 2022
A Simple , ☁️ Lightweight , 💪 Efficent JSON based database for 🐍 Python.

A Simple, Lightweight, Efficent JSON based DataBase for Python The current stable version is v1.6.1 pip install pysondb==1.6.1 Support the project her

PysonDB 282 Jan 07, 2023
Python function to extract all the rows from a SQLite database file while iterating over its bytes, such as while downloading it

Python function to extract all the rows from a SQLite database file while iterating over its bytes, such as while downloading it

Department for International Trade 16 Nov 09, 2022
Migrate data from SQL to NoSQL easily

Migrate data from SQL to NoSQL easily Installation 💯 pip install sql2nosql --upgrade Dependencies 📢 For the package to work, it first needs "clients

Facundo Padilla 43 Mar 26, 2022
A Painless Simple Way To Create Schema and Do Database Operations Quickly In Python

PainlessDB - Taking Your Pain away to the moon 🚀 Contribute · Community · Documentation 🎫 Introduction : PainlessDB is a Python-based free and open-

Aiden Ellis 3 Jul 15, 2022
Decentralised graph database management system

Decentralised graph database management system To get started clone the repo, and run the command below. python3 database.py Now, create a new termina

Omkar Patil 2 Apr 18, 2022
A Persistent Embedded Graph Database for Python

Cog - Embedded Graph Database for Python cogdb.io New release: 2.0.5! Installing Cog pip install cogdb Cog is a persistent embedded graph database im

Arun Mahendra 214 Dec 30, 2022
A Python wrapper API for operating and working with the Neo4j Graph Data Science (GDS) library

gdsclient This repo hosts the sources for gdsclient, a Python wrapper API for operating and working with the Neo4j Graph Data Science (GDS) library. g

Neo Technology 101 Jan 05, 2023
Postgres full text search options (tsearch, trigram) examples

postgres-full-text-search Postgres full text search options (tsearch, trigram) examples. Create DB CREATE DATABASE ftdb; To feed db with an example

Jarosław Orzeł 97 Dec 30, 2022
A simple GUI that interacts with a database to keep track of a collection of US coins.

CoinCollectorGUI A simple gui designed to interact with a database. The goal of the database is to make keeping track of collected coins simple. The G

Builder212 1 Nov 09, 2021
This is a simple graph database in SQLite, inspired by

This is a simple graph database in SQLite, inspired by "SQLite as a document database".

Denis Papathanasiou 1.2k Jan 03, 2023
Shelf DB is a tiny document database for Python to stores documents or JSON-like data

Shelf DB Introduction Shelf DB is a tiny document database for Python to stores documents or JSON-like data. Get it $ pip install shelfdb shelfquery S

Um Nontasuwan 35 Nov 03, 2022
ChaozzDBPy - A python implementation based on the original ChaozzDB from Chaozznl with some new features

ChaozzDBPy About ChaozzDBPy is a python implementation based on the original Cha

Igor Iglesias 1 May 25, 2022
Connect Django Project to PostgreSQL

An application for learning things with creating quizzes and flashcards.Django, PostgresSQL are used for this project.

Cena Ashoori 1 Jan 25, 2022
Monty, Mongo tinified. MongoDB implemented in Python !

Monty, Mongo tinified. MongoDB implemented in Python ! Was inspired by TinyDB and it's extension TinyMongo

David Lai 523 Jan 02, 2023
A fast ordered NoSQL database.

MerkavaDB Note This is still in active development. Things will change. If you are interested in helping out, or would like to see any particular feat

Adam Hopkins 6 Sep 29, 2022
TelegramDB - A library which uses your telegram account as a database for your projects

TelegramDB A library which uses your telegram account as a database for your projects. Basic Usage from pyrogram import Client from telegram import Te

Kaizoku 79 Nov 22, 2022
MyReplitDB - the most simplistic and easiest wrapper to use for replit's database system.

MyReplitDB is the most simplistic and easiest wrapper to use for replit's database system. Installing You can install it from the PyPI Or y

kayle 4 Jul 03, 2022