Skip to main content

A Python Library For All Python Pet Peeves

Project description

PyPI GitHub Workflow Status CodeQL GitHub Workflow Status Upload Python Package PyPI - Python Version GitHub

pypeeve

PyPeeve is a python library for python pet peeves! As a developer, you know how time-consuming and tedious it can be to write the same boilerplate code over and over again. The aim of this library is to provide a tool that helps developers to reduce their unnecessary effort in writing boilerplate codes repeatedly in every project, allowing you to focus on what really matters - solving problems and building new features.

Installation

To install the latest version, run-

pip install pypeeve

What PyPeeve Offers

There are the list of things pypeeve offers so far:

Logger

Pypeeve provides a set of pre-configured loggers. The simplest and quickest way to use pypeeve logger and logger decorators is to import a pre-configured logger that suit your need.

from pypeeve.logger import logger

@logger.default
@logger.perf
def do_something():
    logger.info("Info logs")
    logger.error("Error logs")

Output-

[2023-03-27 02:28:47,680] - [DEBUG] - Entering do_something()
[2023-03-27 02:28:47,681] - [INFO] - Info logs
[2023-03-27 02:28:47,681] - [ERROR] - Error logs
[2023-03-27 02:28:47,682] - [DEBUG] - do_something() starting time: 91411.408944
[2023-03-27 02:28:47,682] - [DEBUG] - do_something() ending time: 91411.409873
[2023-03-27 02:28:47,683] - [INFO] - Total time taken to finish do_something(): 0.000929 second(s)
[2023-03-27 02:28:47,684] - [DEBUG] - Exiting do_something()

The detailed documentation about the pypeeve loggers can be found in logger readme.

License

Pypeeve is distributed under MIT License. License details of all the third party tools used in pypeeve can be found in Third Party Licenses.

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

pypeeve-1.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

pypeeve-1.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file pypeeve-1.0.1.tar.gz.

File metadata

  • Download URL: pypeeve-1.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pypeeve-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c577e2b8f9a9ea175aa5dcb6626ae7edbfeff2e19f125756350a6bedf29a1d4a
MD5 2e7296721c8ea3f1c15dbd60116ea862
BLAKE2b-256 2a90d61b77338efbdcb88f9fd566c834f00686f2f1e699560e4391e6e596f9c8

See more details on using hashes here.

File details

Details for the file pypeeve-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pypeeve-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pypeeve-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08839a9ab2d94789a8b783aaa54d08203a8222dfca5a311f21bc8bc0e9c0e17c
MD5 69b2ae9eeb285f6d5bf76e806c9c2a83
BLAKE2b-256 63c2cc4db6fc82a88af48e86bafabf8a9483a32d0d497c9e1b325022df52f2ed

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