Quick methods for every day 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) downloads a file and saves it on the disk
- decorators @ensure_unicode and @ensure_ascii for Python 2 developers who struggle with unicode/string distinction (i.e. all of us)
The library mostly provides functionality for my other libraries.
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) downloads a file and saves it on the disk
- decorators @ensure_unicode and @ensure_ascii for Python 2 developers who struggle with unicode/string distinction (i.e. all of us)
The library mostly provides functionality for my other libraries.
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-0.0.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for mikatools-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c3b0a79a3601a0c7d860b41c0da4b54fe2eecc5b7a166d9c3237b3912383ef3 |
|
MD5 | 8ef8db812f3f5b843b5f0ea1d5807a89 |
|
BLAKE2b-256 | 4ef061deb7d099367a8e4f6617818ea59574d705ba25a509a5800aecdf916af8 |