No project description provided
Project description
Utility Functions for developers
Author: Shaon Majumder
Utilities
- stats
- network
- image
- string
- file
Installation
pip install shaonutil
Function Usages
File
get_all_functions - shaonutil.file.get_all_functions(object/file/class)
Image
Network
unquote - Replace %xx escapes by their single-character equivalent. The optional encoding and errors parameters specify how to decode percent-encoded sequences into Unicode characters, as accepted by the bytes.decode() method. By default, percent-encoded sequences are decoded with UTF-8, and invalid sequences are replaced by a placeholder character.
unquote('abc%20def') -> 'abc def'.
Statistics
mean - Avearage or mean of elements - shaonutil.stats.mean(list of numbers)
median - Median of elements - shaonutil.stats.median(list of numbers)
mode - Mode of elements - shaonutil.stats.mode(list of numbers)
String
randomString - Generate a random string of fixed length
Function Usages End
Versioning
major.minor[.maintenance[.build]] (example: 1.4.3.5249)
adoption: major.minor.patch.maintenance.status.trials_for_success
The last position
- 0 for alpha (status)
- 1 for beta (status)
- 2 for release candidate
- 3 for (final) release
For instance:
- 1.2.0.1 instead of 1.2-a1
- 1.2.1.2 instead of 1.2-b2 (beta with some bug fixes)
- 1.2.2.3 instead of 1.2-rc3 (release candidate)
- 1.2.3.0 instead of 1.2-r (commercial distribution)
- 1.2.3.5 instead of 1.2-r5 (commercial distribution with many bug fixes)
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.