bpyth
Some boring Python Tools, see jupyter directory.
Try out
The directory jupyter contains many notebooks with examples. They are very easy to try out interactively online, with Google Colab. Just click the link at the top of the page and then select Runtime/Run all from the menu in Colab.
Install
pip install bpyth
Files Tools
dump_pickle: open, dump, closeload_pickle: open, load, closeStreamFiles: Iterable, returns all filenames of a parent directoryStreamLines: Iterable, returns all lines of a text file
Human Tools
human_readable_number: Rounds a number to a fixed number of significant digits.human_readable_seconds: Converts seconds to human readable timehuman_readable_bytes: Converts Bytes to human readable size
Iterable Tools
minivenn: Compare two setsflatten: Yield all items from any nested iterableremove_dups: Remove dups from a list whilst-preserving-ordersort_by_priority_list: Sort a list by a list or tuple of prioritized objectscut_counter: Truncates rare values of a counterranking_from_counter: Converts a counter into a ranking
Object Analysis Tools
rtype: Recursive type. Parses an n-dimensional object and returns a tuple of stype for the scalar in the top left corner.shape: Recursive len. Parses an n-dimensional object and returns a tuple of sizes.has_shape: Does an object have additional dimensions? (Skalars: No, Strings: No, Empty Iterables: No, Other Iterables: Yes)memory_consumption: Returns the memory consumption of Python objects.
String Tools
superstrip: Removes Unicode whitespacesremove_words: Removes stopwordsremove_dupwords: Removes dup words from a string whilst-preserving-orderlongest_substr: Finds the longest common substring in a list of stringsrandom_str: Returns a random string
Release files for bpyth 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bpyth-0.2.2.tar.gz | 18.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bpyth-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.8 kB
Release files / bpyth-0.2.2.tar.gz
| Download URL | bpyth-0.2.2.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96ed16ddc534906dbef9ad0eb5c3ce92d41026ed4526acf451d06a89dacd4037
|
|
BLAKE2b-256 checksum How to use checksums |
594f98babb43a78cc3bf6aa487a6fcb47d7fdedff59d3332fcb41ce02229a86a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-55-generic
|
Release files / bpyth-0.2.2-py3-none-any.whl
| Download URL | bpyth-0.2.2-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bdbf427130ddd7d3f7d63173449fe333612d7b7147da599416e83a9961edf73
|
|
BLAKE2b-256 checksum How to use checksums |
1ecd90e9067233be52e2f9bcb0335cc03365542bee0b0f33b320148f59e01dd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-55-generic
|