Quick methods for everyday Python programming
Project description
Mikatools
Mikatools provides fast and easy methods for common Python coding tasks. Some functionality:
- script_path() gives the location of the current Python script
- json_dump(data, file_path) saves a dictionary in UTF-8 in a pretty format with indentation, real unicode characters (no unreadable escaped letters) and sorts the keys.
- json_load(file_path) loads json with UTF-8 encoding
- download_file(url, path, show_progress=False) downloads a file and saves it on the disk
- open_read(file, password=None, salt=""") opens a UTF-8 file for reading and optionally decrypts it
- open_write(file, password=None, salt="") opens a UTF-8 file for writing and optionally encrypts it
- Super easy multitasking!
The library mostly provides functionality for my other libraries.
Cite:
@software{mika_hamalainen_2020_3977549,
author = {Mika Hämäläinen},
title = {mikahama/mikatools 1.0.0},
month = aug,
year = 2020,
publisher = {Zenodo},
version = {1.0.0},
doi = {10.5281/zenodo.3977549},
url = {https://doi.org/10.5281/zenodo.3977549}
}
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
mikatools-1.0.2.tar.gz
(274.9 kB
view hashes)
Built Distribution
mikatools-1.0.2-py2.py3-none-any.whl
(281.8 kB
view hashes)
Close
Hashes for mikatools-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0dac64f6855433a396aaac511a14d1933dd48f7d2ee4bf386b5b35798354165 |
|
MD5 | 3c0a0558c7f78f5a49710bca1b61b3ea |
|
BLAKE2b-256 | fa4b772607f645a9b87dff18a0c3ed80b9142034b23f726db92fda6efb961a13 |