mpyez
Common use utilities for python done easy.
What is mpyez
mpyez is a library made specifically to make the daily mundane tasks as easily doable as possible.
- Want to get a list of all python files in your folder? Use
ListOfFilesFromExtensionsclass. - Want to convert a nested list to a 1D list? Use
nested_list_to_list(). - Want to convert a simple list to nested list? Use
list_to_nested_list().
This library is intended to lower complexity of daily recurring tasks.
How to install
Use pip: pip install mpyez
Examples
Let's say, you want to convert a nested list
>>> my_nested_list = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10]]
to a 1D list, with mpyez you can do it using nested_list_to_list function in ez_list module (see, Current
implementations for details).
>>> nested_list_to_list(my_nested_list)
>>> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Modules
Current Implementations
-
os_ListOfFilesFromExtensions: To pick files of specific extensions.ListOfFilesFromNames: To pick files matching a specific name pattern.move_directory_contents: To move directory contents to a new location.
-
list_difference_between_lists: To get the difference between two lists.equal_lists: To check if two lists are equal.get_object_count: To get an object count from the list.index: To get the index of an element in the list.is_contained: To check if a list is contained within another list.join_lists: To join multiple lists into a single one.list_to_nested_list: To convert a list to a nested list.move_element_in_list: To move a list element to a new position.nested_list_to_list: To convert a nested list to a flat list.remove_: To remove a value from a list.replace_at_index: To replace values at a specific index in the list.replace_with_value: To replace values with a given value in the list.sort_: To sort a list.string_list_to_numeric: To convert string values in a list to numeric.
-
read_filesread_txt_file: To read an entire text file.get_lines_from_txt_file: To read specific lines from a text file.
-
dict_get_key_index: To get the index of a key in a dictionary.merge_dictionaries: To merge dictionaries.pretty_print: To print a dictionary in a readable format.sort_dictionary: To sort a dictionary.
-
array_moving_average: To calculate the moving average for an array.reshape_with_padding: To reshape an array with padding.transpose1d: To transpose a 1D array.
-
plotting_plot_two_column_file: To plot data from a two-column file.plot_xy: To plot x vs. y data.plot_with_dual_axes: To plot with dual axes for two datasets.
Future Implementations
-
read_files- Implementation of reading other file formats, especially
.csv. - Whole file reading using generators to reduce memory issues.
- Implementation of reading other file formats, especially
-
dict_- Additional dictionary manipulation methods such as updating, retrieval, and comparisons.
Metadata
Release files for mpyez 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mpyez-0.1.0.tar.gz | 27.8 kB | Without provenance | Details for mpyez-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mpyez-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mpyez-0.1.0-py3-none-any.whl |
Total release size: 59.5 kB
Release files / mpyez-0.1.0.tar.gz
| Download URL | mpyez-0.1.0.tar.gz |
|---|---|
| Size | 27.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b5c4ef733a1bfa6221e79b047e43ced154e48ad96268cfc19c75a6f58380893
|
|
BLAKE2b-256 checksum How to use checksums |
8f262ec3cbc543ab682c8acf874fd556587b43ea8ea72f96c52def1b25c3f04a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Release files / mpyez-0.1.0-py3-none-any.whl
| Download URL | mpyez-0.1.0-py3-none-any.whl |
|---|---|
| Size | 31.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46199d1443f007dc4a65aa3cbfbd132e246cc5b17ef0d3c0f90a0f3ae3cdeaa0
|
|
BLAKE2b-256 checksum How to use checksums |
1c1771ea5e4420ccdbac1879c693021826e1348451b9e56e6ecd00eb413792bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Security for mpyez 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.