DinoDB is a high-performance, lightweight, Privacy-Focused database designed to store and retrieve data efficiently. This project aims to provide a fast and reliable solution for handling database operations in a simple and scalable way.
- Efficient key-value storage.
- Designed for fast insertions, lookups, and deletions.
- Minimalistic API for integration.
To install DinoDB, simply clone the repository and install the necessary dependencies.
You can pull the latest version of DinoDB (v1.1.1) from Docker Hub using the following command:
docker pull dinodb/dinodb:1.1.1- Python 3.7+
- Docker (optional, for containerized version)
-
Clone the repository:
git clone https://github.com/dino-database/dinodb.git cd dinodb -
Set up the Python environment and install dependencies:
Using
pip:pip install -r requirements.txt
Or use Docker (suggested):
docker pull dinodb/dinodb
To run DinoDB, use the following command:
python main.pyOr if you're using Docker:
docker run -p {your port}:8000 dinodbThis will start the API at http://127.0.0.1:{your port}.
The following endpoints are available:
POST /insert: Insert a new record into the database.GET /search/{key}: Search for a record by key.DELETE /delete/{key}: Delete a record by key.
Insert a Record:
curl -X 'POST' 'http://127.0.0.1:8000/insert' -H 'Content-Type: application/json' -d '{"key": "my_key", "value": "my_value"}'Search for a Record:
curl -X 'GET' 'http://127.0.0.1:8000/search/my_key'Delete a Record:
curl -X 'DELETE' 'http://127.0.0.1:8000/delete/my_key'To contribute to DinoDB, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes and commit them (
git commit -am 'Add new feature'). - Push to your branch (
git push origin feature-branch). - Open a pull request.
This project is licensed under the SSPL License - see the LICENSE file for details.