Skip to main content

A simple Database manager. You can manage database 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.

Project description

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. Execute "pip install DataBaseManager" Then import it By Executing "import DataBaseManager"

Supported DataBases:

1)SQLite

multiprocess:

now (v0.0.7) supports multi processing. manage multiple databases(0-infinity) By multiprocess object. one command to manage mulitple databases!. More info given below..

view: https://techabam.000webhsotapp.com/DbManager/

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://techabam.000webhostapp.com/DataBaseManager/sqlite/shell.html More info on the link: https://techabam.000webhostapp.com/DataBaseManager

Whats new

V0.0.7--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. Latest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DataBaseManager-0.0.7.linux-aarch64.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

DataBaseManager-0.0.7-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file DataBaseManager-0.0.7.linux-aarch64.tar.gz.

File metadata

  • Download URL: DataBaseManager-0.0.7.linux-aarch64.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

File hashes

Hashes for DataBaseManager-0.0.7.linux-aarch64.tar.gz
Algorithm Hash digest
SHA256 bf1f96d4faa5382d6f0941b162533421f6360300f3652c3f80d4ebca84ff5e64
MD5 fdf54aa535c97ae5c9d8cc1ebee89b33
BLAKE2b-256 2003f406c146f42e35bc1afaa6ba82b7895bba535ad467d8da5ab74a08b484ef

See more details on using hashes here.

File details

Details for the file DataBaseManager-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: DataBaseManager-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

File hashes

Hashes for DataBaseManager-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 aa58e83ea62350f3cb32c65db8a4f6455f83c74ae1d584484b1bbcc74c2123d2
MD5 44fe5ddc1976e89d6b9a0d659d74aa58
BLAKE2b-256 7185b739c65e62c830f9b5abd4535e01800540a56108a6404e53f100ff592f77

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page