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

The package is supported on Python 3.7 and above.

How to use

You can call a function as this example:

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

This is the libraries I am using with the package

$ ----------------------------------------------------
>>> beautifulsoup4==4.7.1
>>> exchangelib==4.7.2
>>> openpyxl==3.0.5
>>> pandas==1.1.3
>>> paramiko==2.6.0
>>> psutil==5.9.0
>>> pyodbc==4.0.32
>>> pywin32==303
>>> selenium==3.141.0
>>> xlrd==1.2.0
>>> XlsxWriter==1.3.5
>>> xlwings==0.20.8

To use nutAPI / Selenium Functionnalities:

$ ----------------------------------------------------
# To use Chrome Driver
#  Go to chromedriver.chromium.org
#  download and UnZip the folder
#  Move it to Users/local/bin or C:\ProgramData\Anaconda3\Library\bin (Windows)

Documentation

Temporary documentation for nutDate :

from pyNut import nutDate as dat

dte_date = dat.fDte_formatToDate(dte_date, str_dateFormat = '%d/%m/%Y')
""" fDte_formatToDate makes sure you will have a varable with a date format
The first Argument is the Variable (date), and the format of the string if it is a sting
It allows you to avoid testing the type of the variable and get your get Date anyhow"""

int_dateDiff = dat.fInt_dateDifference(dte_date1, dte_date2)
""" fInt_dateDifference give you the difference in days between 2 dates"""

Date2 = dat.fDte_convertExcelInteger(Date)
""" fDte_convertExcelInteger takes an integer as input, 
This is the integer you can find in Excel when it is a date 
And return the associated date  """

Temporary documentation for nutFiles :

from pyNut import nutFiles as fl

l_fileList_consti = fl.fL_listFile(str_path_consti)
"" fL_listFile is listing all files in a folder using the library glob """

o_file = fl.fO_readfile_parquet(str_path)
""" fO_readfile_parquet reads parquet - require the libraries : pyarrow / fastparquet"""

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-1.2.1.tar.gz (63.3 kB view details)

Uploaded Source

Built Distribution

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

pynut-1.2.1-py3-none-any.whl (64.6 kB view details)

Uploaded Python 3

File details

Details for the file pynut-1.2.1.tar.gz.

File metadata

  • Download URL: pynut-1.2.1.tar.gz
  • Upload date:
  • Size: 63.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

File hashes

Hashes for pynut-1.2.1.tar.gz
Algorithm Hash digest
SHA256 10bd7962f351aa1498532f6c357b105cf7e425f891ed5530029a3812311d06ac
MD5 fff454ca0d4946014d9405fee1c2991a
BLAKE2b-256 99fea2d4144e744a1fa2913f1ec75942fc22644bb56f5c501450d2bc779d6c40

See more details on using hashes here.

File details

Details for the file pynut-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: pynut-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 64.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

File hashes

Hashes for pynut-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e14e9d888655f3876c297f4d4c9b7d06d7df7e0775efe83802d4e209de3bea12
MD5 2b7c53a6fc9b8a5ebbad9bf8872ac8b2
BLAKE2b-256 65ec622316122f025095889d48a20ac24437e91cf805a379ae378b77203d2711

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