Skip to main content

Pyton database wrapper

Project description

zpy-database v0.1.1

Zguillez | Guillermo de la Iglesia

Pyton database wrapper

Getting Started

Install

pip install --upgrade zpy-database

Usage

from zpy_database import database as db

db.connect({
    'conn': os.environ['DB_HOST'],
    'database': os.environ['DB_NAME'],
    'user': os.environ['DB_USER'],
    'password': os.environ['DB_PASS']
})
data = db.sql("SELECT id, name FROM my_table")
print(data[0])
data = db.dict("SELECT id, name FROM my_table", ['id', 'name'])
print(data[0]['name'])
db.close()

Contributing and issues

Contributors are welcome, please fork and send pull requests! If you have any ideas on how to make this project better then please submit an issue or email me.

License

©2023 Zguillez.IO

Original code licensed under MIT Open Source projects used within this project retain their original licenses.

Changelog

v0.1.1 (February 13, 2023)

  • Initial commit

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

zpy-database-0.1.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file zpy-database-0.1.1.tar.gz.

File metadata

  • Download URL: zpy-database-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for zpy-database-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d62eb3ab46b60c6b69f4b598c35da78d8d2b8ef0d0326ae44b6e10b8e9ba7bd7
MD5 da90c38beedca6207f2d82dd0899f7bd
BLAKE2b-256 52e72ec0d8898c4d533ae80942037e84dc29d794c84b53acaa68c513e955a01e

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