Skip to main content

PYLIB3

  • The pylib3 is a shared python library, that includes common functions that can be used in any python package.
  • This package can be used both with python2 and python3

Usage:

  • Install the pylib3 package (inside your project virtual environment)
pip install pylib3
  • To import the pylib3 package
import pylib3
  • To use one of the common functions from the pylib3 package
from pylib3 import timer

Common Functions:

get_version(caller, version_file)

Gets the version number from the version_file

param str caller: source file caller (i.e file) param str version_file: a version file to get the version number from returns (str): version number or '0.0.0' if the version_file doesn't exists

init_logging(log_file, verbose=False, console=False, info='white', debug='blue', warning='yellow', error='red', critical='red')

Logger initialization

param str log_file: log file name param bool console: if set to True will print logs both to a file and to stdout (console) param bool verbose: if set to True will print more information param str info: info messages color param str debug: debug messages color param str warning: warning messages color param str error: error messages color param str critical: critical messages color

timer(func)

This function used as a decorator function to print the elapsed time of the passed function

param obj func: original function returns (obj): wrapper function

Metadata

Release files for pylib3 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylib3 0.0.4
File Size Uploaded Provenance Actions
pylib3-0.0.4.tar.gz 9.4 kB Without provenance Details for pylib3-0.0.4.tar.gz

Release files / pylib3-0.0.4.tar.gz

Download URL pylib3-0.0.4.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9daa6eb37e13ae349f73f0b33fad41010d07a82c70391e3e7985bb6f12b082ed
BLAKE2b-256 checksum
How to use checksums
e90f4b3fe6dcafd64690bb6f53eabea26120303c7368095efaf3e81576c68d5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for pylib3 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page