Skip to main content

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.

Project details


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.8.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

mikatools-0.0.8-py2.py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page