Skip to main content

Function easing life :)

Project description

pynut - Laurent Tupin

It provides various functions to simplify the users life.

Installation

You can install the package from PyPI:

python -m pip install pynut-DB

The package is supported on Python 3.7 and above.

How to use

You can call a function as this example:

$ ----------------------------------------------------
>>> from pyNutTools import nutDate
>>> nutDate.today()

This is the libraries I am using with the package

$ ----------------------------------------------------
>>> pyodbc==4.0.32

Documentation

Temporary documentation for nutDb :

from pyNutDB import nutDb as db

1. Lite Db

db_lite = db.c_db_lite(r'\db_param.db')
db_lite.connect()
df_UID = db_lite.getDataframe("SELECT * FROM tbl_Table")
db_lite.closeConnection()
""" This class allows you to manage simple lite database"""

2. SQL Server (pyodbc)

dbServer =  db.c_db_withLog()
# df_UID will be a dataframe of connexion: Server, Database, UID, Password
dbServer.dataframeCredentials(df_UID)

# Request with a dataframe as a return
db.db_SelectReq("SELECT top 10 * FROM tbl_Table")
print(dbServer.df_result)

# OR EXEC a stored procedure    
db.db_EXEC('EXEC Stored_Procedure')

END

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

pynut-DB-2.1.5.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

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

pynut_DB-2.1.5-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file pynut-DB-2.1.5.tar.gz.

File metadata

  • Download URL: pynut-DB-2.1.5.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.9

File hashes

Hashes for pynut-DB-2.1.5.tar.gz
Algorithm Hash digest
SHA256 283ab16c52c9923e1ff48b31fb4ec3668b09c0e6ec6d78e21bd70da5a7574d52
MD5 47f91819d3c3c2fa17ab493a37dabc25
BLAKE2b-256 bc372eaf335332688547ddfdfee1e21d90347c971265f7431e0b99037c9d1562

See more details on using hashes here.

File details

Details for the file pynut_DB-2.1.5-py3-none-any.whl.

File metadata

  • Download URL: pynut_DB-2.1.5-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.9

File hashes

Hashes for pynut_DB-2.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3cffd676810d2c0a7060a98c2cae912e28af210a795af8ec5b2ae8541522f884
MD5 50955a04cc25bd66831ec478a80a2938
BLAKE2b-256 151360d3ed0d1b316313f810cd8fcf8f0b98387a47a361a47c8a83f0b893c3c0

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