Skip to main content

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")

Metadata

Release files for milho-multi-sqlite3-manager 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for milho-multi-sqlite3-manager 0.4.0
File Size Uploaded
milho_multi_sqlite3_manager-0.4.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for milho-multi-sqlite3-manager 0.4.0
File Interpreter ABI Platform
milho_multi_sqlite3_manager-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / milho_multi_sqlite3_manager-0.4.0.tar.gz

Download URL milho_multi_sqlite3_manager-0.4.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5b1a194c3368228c9c32fd86acbfc0d641ccc7f8e7326ef0f0a8430afca1b616
BLAKE2b-256 checksum
How to use checksums
32eaa4cc24696a1550c9704666ebbf2830ce5ac5f74e0da152c223e227912664
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.11.3 Windows/10

Release files / milho_multi_sqlite3_manager-0.4.0-py3-none-any.whl

Download URL milho_multi_sqlite3_manager-0.4.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
475f3cbc60967d48c477a3d3d63c5bf0b5af3e75372e8230f51eab4b43d15c29
BLAKE2b-256 checksum
How to use checksums
ab12935989fcff6d71071fe6b8ca802f00ffc43b0c1a002b4c739981ee37b52b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.11.3 Windows/10

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page