https://github.com/trollmii/bunnybase
An efficient data managing system
https://github.com/trollmii/bunnybase
bunnybase data data-science data-structures database datascience python python3
Last synced: 11 months ago
JSON representation
An efficient data managing system
- Host: GitHub
- URL: https://github.com/trollmii/bunnybase
- Owner: TrollMii
- License: gpl-2.0
- Created: 2025-04-06T22:10:57.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-04-07T16:34:11.000Z (12 months ago)
- Last Synced: 2025-04-22T14:13:38.877Z (11 months ago)
- Topics: bunnybase, data, data-science, data-structures, database, datascience, python, python3
- Language: Python
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BunnyBase
BunnyBase is a tool for working with data.
The data won't be stored in a table, they will be stored in categories.
## Performance
__BunnyBase is: time = O(1)__
![][1]
![][2]
## How to install?
You can use PIP to install bunnybase:
`pip install bunnybase`
## Example
```python
from bunnybase import Hub, Data
hub = Hub()
hub << Data('person', firstname='peter', lastname='griffin')
hub << Data('person', firstname='homer', lastname='simpson', favourite_food=['donuts'])
hub << Data('animal', name='cat', age=15)
hub << Data('os', name='linux', rate='good', spyware=False)
hub << Data('distro', name='nixos', good=True)
hub << Data('os', name='windows', free=False, spyware='maybe')
hub.filter(name='cat') # DataList([Data('animal', name='cat', age=15)])
hub.filter('person') # DataList([Data('person', firstname='peter', lastname='griffin'), Data('person', firstname='homer', lastname='simpson', favourite_food=['donuts']), ])
hub.filter(name='*') # DataList([Data('animal', name='cat', age=15), Data('os', name='linux', rate='good', spyware=False), Data('distro', name='nixos', good=True), Data('os', name='windows', free=False, spyware='maybe')])
```
[1]: https://raw.githubusercontent.com/trollmii/bunnybase/master/imgs/adding-data-to-hub.png
[2]: https://raw.githubusercontent.com/trollmii/bunnybase/master/imgs/performance-saving-hub.png