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 details)
Built Distribution
mikatools-1.0.2-py2.py3-none-any.whl
(281.8 kB
view details)
File details
Details for the file mikatools-1.0.2.tar.gz
.
File metadata
- Download URL: mikatools-1.0.2.tar.gz
- Upload date:
- Size: 274.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 529c25bd835fdcb2f1816865e814d144ba41e6c8e908ba151c96066b67c66a58 |
|
MD5 | acd017049dda5229a3bd48b92b78082a |
|
BLAKE2b-256 | 4125315ed2f5b963edea8b00589df4f9943c84b0f63f7e354640ccc4b44ce797 |
File details
Details for the file mikatools-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: mikatools-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 281.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0dac64f6855433a396aaac511a14d1933dd48f7d2ee4bf386b5b35798354165 |
|
MD5 | 3c0a0558c7f78f5a49710bca1b61b3ea |
|
BLAKE2b-256 | fa4b772607f645a9b87dff18a0c3ed80b9142034b23f726db92fda6efb961a13 |