Skip to main content

A simple DB connector for MySQL, SQLite, and MongoDB

Project description

dbmini

dbmini is a lightweight Python library to quickly connect to MySQL, SQLite, and MongoDB databases.
It is designed to be simple, flexible, and easy to integrate into any project.


🔹 Features

  • Connect to MySQL databases.
  • Connect to SQLite databases (local or in-memory).
  • Connect to MongoDB databases (e.g., hosted on filess.io or local).
  • Minimal configuration — credentials are passed as parameters.
  • Interactive database operations can be done easily in Python scripts.

🔹 Installation

Install via PyPI:

pip install dbmini

---

## 🔹 Steps to use

To use MySQL, you can call the mysql function by passing the username, password, host, and port as parameters. For example:

from dbmini import mysql
conn, cur = mysql(user="user_name", password="user_password", host="localhost", port=port_number)

---


For SQLite, you can call the sqlite function by passing the path to the database file. 
For example:

from dbmini import sqlite
conn, cur = sqlite("your_db_path")

---

For MongoDB, you can call the mongo function by passing the MongoDB connection URL and the database name you want to connect to. 
For example:

from dbmini import mongo
client, db = mongo(mongo_url="filess.io_mongo_url", mongo_db="your_db_name")

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

dbmini-0.1.4.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbmini-0.1.4-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file dbmini-0.1.4.tar.gz.

File metadata

  • Download URL: dbmini-0.1.4.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for dbmini-0.1.4.tar.gz
Algorithm Hash digest
SHA256 629b415fcaf8795aee00db6339ff5f929cd7d8e59d687017fc47877c46e1bb22
MD5 02d7d1900df79bcaca6a7bd7d345719b
BLAKE2b-256 dfa84acc94d47f37098b70aefd0d2aff1ebb5bac9d068da903be3be38c2e2ae6

See more details on using hashes here.

File details

Details for the file dbmini-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: dbmini-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for dbmini-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bad16ce0bfea9289d5297f9289809c84f6a4455b0acd1901a531112d89fdecca
MD5 8223093816c9605c8486d1fdc09c02d3
BLAKE2b-256 399afd1d6ed27f73046a41381d2a6ec51df2cd9852671fa67b75c578b90b93bd

See more details on using hashes here.

Supported by

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