Skip to main content

Pyton helpers

Project description

python-toolz v0.1.7

Zguillez | Guillermo de la Iglesia

Python helpers

Getting Started

Install

pip install --upgrade python-toolz

Usage

from python_toolz import helper as ztools

ztools.log("test")
db = ztools.database({
    '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 template ORDER BY id ASC LIMIT 0,5")
db.close()
print(data[0])
data = db.dict("SELECT id, name FROM template ORDER BY id ASC LIMIT 0,5", ['id', 'name'])
db.close()
print(data[0]['name'])

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.0 (February 11, 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

python-toolz-0.1.7.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file python-toolz-0.1.7.tar.gz.

File metadata

  • Download URL: python-toolz-0.1.7.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for python-toolz-0.1.7.tar.gz
Algorithm Hash digest
SHA256 5f1bb2e7899c7f8782c6b450dccce0dda85ec55f5633ab034433b4e7dccfdbf8
MD5 e3c5b2ae90ad0af1970018ae47fbea85
BLAKE2b-256 a61c680555f988c6e53668d683e5da03f2bdd390eae82570a9bb5175cfd813f7

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