Skip to main content

No project description provided

Project description

milho-multi-sqlite3-manager

Description

The idea is to have an environment with multiple SQLITE3 files, aiming at ease of access and use. The inspiration for creating this module came from the ease of working with Spark in BigData environments where, generally, everything is integrated, without the need to make several explicit connections in the code.

If you want an integrated environment on your machine, create an environment variable called "MULTISQLITE3MANAGER_FOLDER_PATH" with the directory of your folder. You will need to make sure that all files in this folder are SQLITE3 databases.

When "to_dataframe" is used, the result is a Pandas DataFrame. The query is previously parsed to map all the databases used in the SQL. Then the module create a sqlalchemy connection and attach that databases to the connection. After that, the query is executed and the result is a Pandas DataFrame.

Code Samples

from multisqlite3manager import print_databases, print_tables, to_dataframe

print_databases()
print_tables("DB_NAME")

df = to_dataframe("SELECT * FROM db_1.tMisto")
df2 = to_dataframe("SELECT * FROM db_2_copy.tMisto")

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

milho_multi_sqlite3_manager-0.4.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file milho_multi_sqlite3_manager-0.4.0.tar.gz.

File metadata

File hashes

Hashes for milho_multi_sqlite3_manager-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5b1a194c3368228c9c32fd86acbfc0d641ccc7f8e7326ef0f0a8430afca1b616
MD5 b03f05a0c6224cc10ae97d7ebd7b571f
BLAKE2b-256 32eaa4cc24696a1550c9704666ebbf2830ce5ac5f74e0da152c223e227912664

See more details on using hashes here.

File details

Details for the file milho_multi_sqlite3_manager-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for milho_multi_sqlite3_manager-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 475f3cbc60967d48c477a3d3d63c5bf0b5af3e75372e8230f51eab4b43d15c29
MD5 ea8f9f48e688559d76075935b3e84d4a
BLAKE2b-256 ab12935989fcff6d71071fe6b8ca802f00ffc43b0c1a002b4c739981ee37b52b

See more details on using hashes here.

Supported by

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