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}
}
Need for NLP solutions for your business?
My company, Rootroo offers consulting related to multilingual NLP tasks. We have a strong academic background in the state-of-the-art AI solutions for every NLP need. Just contact us, we won't bite.
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.1.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for mikatools-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e633f88081adb8d25daaa9e969769bccb212080ae863f298bf3591ebce319a47 |
|
MD5 | 0351b3cc57925e07a683fb614df15b3d |
|
BLAKE2b-256 | 906b477cb247cdd0ed933046b58e94dd4242202c6a6bcec4a0756f5197c1ad2e |