Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imyizhang/jsonabledb

A lightweight document-oriented database based on JSON
https://github.com/imyizhang/jsonabledb

database documentdb json jsonable jsonify nosql

Last synced: 6 days ago
JSON representation

A lightweight document-oriented database based on JSON

Awesome Lists containing this project

README

        

# jsonableDB

[![GitHub][github_badge]][github_link] [![PyPI][pypi_badge]][pypi_link]

**jsonableDB** is a lightweight document-oriented database based on JSON.

## Installation

```bash
pip install jsonabledb
```

## Quickstart

Get your documents prepared

```python
documents = [
{...},
{...},
...
]
```

Jsonify your documents as a JSON file using **jsonableDB**

```python
from jsonable import jsonify

jsonify(documents, "collection_name", "database_name")
```

Retrieve all your documents in the **jsonableDB**

```python
import jsonable

client = jsonable.Client()

collection = client["database_name"]["collection_name"]

collection.find()
```

## License

**jsonableDB** has a BSD-3-Clause license, as found in the [LICENSE](https://github.com/imyizhang/jsonabledb/blob/main/LICENSE) file.

## Contributing

Thanks for your interest in contributing to **jsonableDB**! Please feel free to create a pull request.

## Changelog

**jsonableDB 0.0.2**

* Support to jsonify documents as a JSON file

**jsonableDB 0.0.1**

* First release

[github_badge]: https://badgen.net/badge/icon/GitHub?icon=github&color=black&label
[github_link]: https://github.com/imyizhang/jsonabledb

[pypi_badge]: https://badgen.net/pypi/v/jsonabledb?icon=pypi&color=black&label
[pypi_link]: https://www.pypi.org/project/jsonabledb