Set of utilities of all kinds to develop python projects.
Project description
Set of utilities of all kinds to develop python projects.
Installation
Python 3.10 or higher is required.
pip install flanautils
Features
Data structures
- BiDict:
Dictionary that saves references in both directions to access constantly by hashes both
key -> value
andkey <- vaue
. To achieve this, a copy of the dictionary is used but inverted.
- OrderedSet:
A set that maintains the insertion order and implements all the methods of set and list, although since it is a structure based on hashes the traversal of all the elements and the use of Sequence-based functions (tuple, list, etc.) aren’t efficient.
Models
Base class for serialize to bytes
Base class for serialize to dict
Base class for serialize to json
Base class for calculate mean of objects
Base class that acts as a object-document mapper (ODM)
Base class for enums
Plotly classes
etc.
Functions
Asyncs utils like
do_later(...)
,do_every(...)
, etc.Decorators
Exceptions
Iterable utils like smart
filter(...)
,find(...)
,flattn_iterator(...)
,frange(...)
, etc.Operating system utils like
resolve_path(...)
,suppress_stderr(...)
, etc.Strings utils like
cartesian_product_string_matching(...)
,join_last_separator(...)
,translate(...)
,words_to_numbers(...)
, etc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flanautils-1.8.1.tar.gz
.
File metadata
- Download URL: flanautils-1.8.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cac764a0a53144e6adb416800a7f0c02631477fff66c1d77b0be49481f4c313 |
|
MD5 | d48becd6625e3f24c10a0692631b7edc |
|
BLAKE2b-256 | 09f0a05d2de99d39128be0c8a89f0c71adc72e953bb436f830a8c689ea95d1f1 |
File details
Details for the file flanautils-1.8.1-py3-none-any.whl
.
File metadata
- Download URL: flanautils-1.8.1-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16cc2791823f7cdb5e964d332f827eba450a6cad06bbb2867c5b65482a4d2895 |
|
MD5 | 46a61cd4a5ff0079d332a47d6dbf595a |
|
BLAKE2b-256 | 737b9a5d673919502464bfb90133ce40c4efff9641c1947a598aae28208068fb |