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.9.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for ShynaDatabase-0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d52cd60d34de5bcf81aa47830f0c3e41a770c7d4de99faa0fea665da9dafd20 |
|
MD5 | ff2d5f6751a005977892b99e4fdba515 |
|
BLAKE2b-256 | f7d09d427ca7d5a416ad4ab763f966ae86b0327beeb77dcd519bb2dc542dd691 |