This package will take care of cleaning the database and querying the database.
Project description
ShynaDatabase
Suggested: Not to use
This package will take care of cleaning the database and querying the database. More functionality will be added as I process.
test = ShynaDatabase() # Make the object of the class
# share the host and password credentail and key file
cred_filename_host = 'host.ini'
key_file_host = 'host.key'
cred_filename_pass = 'dbpass.ini'
key_file_pass = 'dbpass.key'
test.host = test.set_host(cred_filename_host=cred_filename_host, key_file_host=key_file_host)
test.passwd = test.set_password(cred_filename_pass=cred_filename_pass, key_file_pass=key_file_pass)
print(test.check_connectivity()) # True if the database is connected
query = "SELECT * FROM test"
print(test.create_insert_update_or_delete(query=query)) # returns a dictoinary with result or 'EMPTY' as string
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
ShynaDatabase-0.97.1.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for ShynaDatabase-0.97.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abe3b50fab6d872e4575f67b4d6de35f4524a2113878ecf5317ca481d12a6f90 |
|
MD5 | e63abc03dbe478f764ae1596bfbaba11 |
|
BLAKE2b-256 | 923c2eb230d39383ce43747b6ff5e281089616e73ff7788dc9780f3e0599e77d |