DataBaseManager
A simple DataBaseManager manager. You can manage DataBaseManager simply without using SQL or any other query language. The Inputs and outputs are in the form of JSON so you can simply share the data across networks. A simple SQL shell was attached to do more with Your Db.
Installation
Using pypi
You can install using pypi. run
pip install DataBaseManager
Using source file
You can download source file from Here. Then Run:
cd DbManager-0.0.8
python3 -m pip install -r requirements.txt
python3 setup.py isntall
Usage
Import
Then import it By Executing
import DataBaseManager
Supported DataBases:
1)SQLite
multiprocess:
now (v1.0.0) supports multi processing. manage multiple databases(0-infinity) By multiprocess object. one command to manage mulitple databases!. More info given below..
view: https://abam.herokuapp.com/projects/DataBaseManager
SQLite
1)import:-
from DataBaseManager import sqlite
2)create object:-
MyObj= sqlite("your file path")
3)If you want to create a new Db
MyObj= sqlite()
MyObj.CreateDb("db name",{"table name":{"column":"type"}})
4)For inserting data:-
MyObj.insert("table name",[{"column1":"value1","column2":"value2"},{"column":"next items"}])
5)for selecting:-
MyObj.select(["table1","table2"],select=["table1.column","table2.column"],where={"table1.column":"value","table2.column":"value2"}))
This will return the data in the form of a list of the result tuples same as the form of fetchall() Use MyObj.parse_fetch_all() to get the data in the form of dictionary 5)For Getting shell:-
MyObj.shell('Any commands if you want')
6)also have execute, executescript, commit, fetchone,fetchall etc. cursor same as the python sqlite3 7) execute MyObj.conn to return the connection 8) execute MyObj.schema to get the schema in the form of a dictionary 9) execute MyObj.tables to get the table names 10)to start a multiprocess:-
from DataBaseManager import multiprocess
MyObj = multiprocess(your_data_base("database name"),your_second_database("databasename"))
your data base name may be sqlite or any other DataBaseManager Supports. execute MyObj.insert, update ,execute,executescript,select, commit, etc. as same in the other db objects 11)to start sqlite shell execute:-
python -m DataBaseManager -sqlite file_name
for help:-
python -m DataBaseManager --help
sqlite shell info at:- https://abam.herokuapp.com/projects/DbManager/
More info on the link:
https://abam.herokuapp.com/projects/DataBaseManager
Whats new
V1.0.0--maked dirctly executable for sqlite use shell by Executing 'python -m DataBaseManager -sqlite your_file_name'
fixed error in the shell
fixed bugs,
fixed error in installing on linux
Versions
v0.0.1=>old stable Versions not stable
v0.0.2=>error in this version import prints a while loop
v0.0.3=>Stable version not recommended
v0.0.4=>fixed bugs. not supported multiprocess object. not recommended
v0.0.5=>new object multiprocess for manageing multiple database at the same time. not supported directly executing shell. not recommended
v0.0.6=>new directly executing shell.
v0.0.7=>new version . fixed error in installing on linux.
v1.0.0=>Fixed bugs
Metadata
Release files for DataBaseManager 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| DataBaseManager-1.0.0.tar.gz | 6.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| DataBaseManager-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / DataBaseManager-1.0.0.tar.gz
| Download URL | DataBaseManager-1.0.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f619359ad4e770fe07a342f6478f5cfe8c2c3301f3132584d20ab86828fb5463
|
|
BLAKE2b-256 checksum How to use checksums |
9dc9bdf6cf497fcba7b4a591355bd22f8720cc4e10fa59782de82c6d2880407f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / DataBaseManager-1.0.0-py3-none-any.whl
| Download URL | DataBaseManager-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ad38f037f0dfb07f2d74b3b45a9cd78ab9d417175437e357720a69a2e8700a5
|
|
BLAKE2b-256 checksum How to use checksums |
0cdb68405c16122cd7ed2b9581bad7f2e3eef269971589dabfc98746f2af8a42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for DataBaseManager 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.