Skip to main content

code with love by Payadel

Build Status Coverage PyPI

GitHub Pull Requests welcome

About

The pylity package is a set of utility and common functions for Python. pylity means Python Utility.

When we work on different projects, there are usually functions that are common between the projects. Functions that we generally call Utility or helpers or something like that. Functions that are independent and can be used in different places.

Well, instead of copying and pasting these functions in a new project every time, it is better to have a package that gathers all these together so that we can install and use them easily. This is the goal of this project. :)

Getting Started

Installation

Use pip to install package:

pip install pylity --upgrade

Usage

Prerequisites

Please note that this package uses on_rails package for most functions. on_rails is an easy and valuable package for better error management. If you are not familiar with this package, you should read its documentation.

Sample

A set of different functions are grouped into related classes. Import any class you want, then use the functions. For example:

from pylity import Function

Function.is_func_valid(lambda: None)  # returns True

Function.get_num_of_params(lambda a, b, c: None) \
    .on_success(lambda num_of_params: print(f"Number of parameters is: {num_of_params}")) \
    .on_fail(lambda result: print(f"An error occurred:\n{result}"))

CHANGELOG

Please see the CHANGELOG file.

Roadmap

See the open issues for a list of proposed features (and known issues).

Support

Reach out to the maintainer at one of the following places:

Project assistance

If you want to say thank you or/and support active development of pylity:

  • Add a GitHub Star to the project.
  • Tweet about the pylity.
  • Write interesting articles about the project on Dev.to, Medium or your personal blog.

Together, we can make pylity better!

Contributing

First off, thanks for taking the time to contribute! Contributions are what make the free/open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.

Please read our contribution guidelines, and thank you for being involved!

Authors & contributors

The original setup of this repository is by Payadel.

For a full list of all authors and contributors, see the contributors page.

Security

pylity follows good practices of security, but 100% security cannot be assured. pylity is provided "as is" without any warranty.

For more information and to report security issues, please refer to our security documentation.

License

This project is licensed under the GPLv3.

See LICENSE for more information.

Release files for pylity 0.0.11

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

Source distribution (sdist)

Source distribution for pylity 0.0.11
File Size Uploaded
pylity-0.0.11.tar.gz 21.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pylity 0.0.11
File Interpreter ABI Platform
pylity-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 43.3 kB

Release files / pylity-0.0.11.tar.gz

Download URL pylity-0.0.11.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5e9d96d059f6bc2665228fe273195748c8e7893675f483bbd0363c1c58071827
BLAKE2b-256 checksum
How to use checksums
377a51b97b00f96e9aa8f5d21277a5f159693522fc3c77caeffcf6b78c056d35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.0 CPython/3.8.16 Linux/5.15.0-1037-azure

Release files / pylity-0.0.11-py3-none-any.whl

Download URL pylity-0.0.11-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f66e30259c443a12740ab81f4b3fd6f701fbc51ba2e99416458c7839806d94c4
BLAKE2b-256 checksum
How to use checksums
db8c6b0c5bf7d13cf299ee23727ea09480c873e832e0b6d7e68bdd113830e22c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.0 CPython/3.8.16 Linux/5.15.0-1037-azure

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.3

2 release files

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