PyBase is a database manager for multiple filetypes including SQLite3. Very poweful, simple and effective.
Project description
PyBase is focused on the ease and effectiveness for the administration of databases.
PyBase is actually on Beta phase, may contain bugs.
Why PyBase?
If you want to store static data (JSON, YAML, Bytes) or store a database in SQLite, the best thing would be to use an administrator that simplifies your tasks and helps you with a good organization and efficiently.
PyBase does exactly that, allows you to create such databases with just one method, and simplifies the task of manipulating their data!
Contribuitors
Quick start
Installation
PyBase requires Python 3.x and can be installed through pip with the following command.
# Stable version
python3 -m pip install -U pybase_db
# Pre-release (Development) version
python3 -m pip install -U --pre pybase_db
# From github's latest commit
# Available branches:
# • master (recommended)
# • development (unstable releases)
# NOTE: this installation mode will not install PyBase dependencies!
python3 -m pip install -U git+https://github.com/PyBase/PyBase@branch
Building
The development branch changes aren't compiled and uploaded to Pypi every time, so you must compile a wheel yourself to test the experimental stuff if the newest changes aren't uploaded to Pypi.
python3 setup.py bdist_wheel
python3 -m pip install -U dist/pybase_db-version-py3-none-any.whl
Usage example
This is a brief example of the methods that PyBase currently has.
# Lets import PyBase Class from PyBase Package
from pybase import PyBase
# Lets define our database name and format (with default db_path).
# db_type isn't case sensitive. You can use JSON and json and it'll be valid.
db = PyBase("example", "JSON") #=> ./example.json
# Lets define and add some content to our database.
pybase_info = {"pybase": "awesomeness", "version": "0.3.0"}
# Lets insert the defined dict inside our database.
db.insert(pybase_info) #=> {'pybase': 'awesomeness', 'version': '0.3.0'}
print(db.get())
# Lets delete an object inside our database cuz it's useless.
db.delete('pybase') #=> {'version': '0.3.0'}
print(db.get())
# Lets fetch an object inside our database and display its type.
# It's useful to debug and manipulate the data dynamically.
print(db.fetch('version'))
#Gets the corresponding value according to the specified key
print(db.get("version")) #=> '0.3.0'
To see SQLite3 usage example, click here
Documentation
You can see the PyBase documentation through the help() function of the REPL
and through the official documentation site.
License
PyBase is distributed under MIT License.
Contributing
You can see how to contribute here
Code of Conduct
You can see the code of conduct here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybase_db-0.5.0.tar.gz.
File metadata
- Download URL: pybase_db-0.5.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
387caf25839f3369eab8765180a2385587e6f33b61ba93a6982c50ba2b18c288
|
|
| MD5 |
0824a24b42321f56fe633f87609aaf24
|
|
| BLAKE2b-256 |
edb73dbd67d09e5587a151edca59e2269b495a457fe3b63cf59c0ab4cc1454cb
|
File details
Details for the file pybase_db-0.5.0-py3-none-any.whl.
File metadata
- Download URL: pybase_db-0.5.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db1d8b20d7e9f02b843f53abb4b3ada8fade9379be644272c96e2d57d7e1aad3
|
|
| MD5 |
5e5700c2027ccabe805603fbac8e7011
|
|
| BLAKE2b-256 |
4620ecb618125eb49143394d65fa8d49bb17fcb018c67e8b1f0000cfa2dced2d
|