https://github.com/almas-ali/flexdb
A simple, fast, and lightweight database for storing and retrieving data.
https://github.com/almas-ali/flexdb
Last synced: 7 months ago
JSON representation
A simple, fast, and lightweight database for storing and retrieving data.
- Host: GitHub
- URL: https://github.com/almas-ali/flexdb
- Owner: Almas-Ali
- License: gpl-3.0
- Created: 2023-02-22T19:07:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T19:31:49.000Z (over 2 years ago)
- Last Synced: 2025-02-07T16:01:37.686Z (8 months ago)
- Language: Python
- Homepage: https://almas-ali.github.io/FlexDB/
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FlexDB
A simple, fast, and lightweight database for storing and retrieving data.
Created by [**@Almas-Ali**](https://github.com/Almas-Ali)
## Table of Contents
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Documentation](#documentation)
- [License](#license)## Features
- Simple and easy to use
- Fast and lightweight
- Stores any data type
- Stores data in a encrypted binary file## Installation
```bash
pip install flexdb
```## Usage
```python
from flexdb import FlexDB # Import the databasedb = FlexDB() # Create a database instance
db.connect('flex.db') # Connect to the databasedb.set('name', 'Almas') # Set a key and value pair any data type can be used
db.get('name') # Get the value of a key
db.get_all() # Get all the key and value pairsdb.delete('name') # Delete a key and value pair
db.commit() # Commit the changes to the database
db.close() # Close the database
```## Documentation
- [Website](https://almas-ali.github.io/FlexDB/)
- [GitHub](https://github.com/Almas-Ali/FlexDB)
- [PyPI](https://pypi.org/project/flexdb/)## License
Free to use and modify under the [**MIT License**](https://github.com/Almas-Ali/FlexDB/blob/master/LICENSE)