Skip to main content

general-purpose library for Python that contains various commonly used functional modules

Project description

wozoxutils PyPI PyPI - Format PyPI - Python Version

general-purpose library for Python that contains various commonly used functional modules.

Installation

pip install wozoxutils

Usage

from wozoxutils import load_json, save_json, load_yaml, save_yaml, calculate_md5_for_file, calculate_md5_for_files

# json
json_obj = {
    'foo': 'bar',
    'int': 1
}
save_json('tests/foo.json', json_obj)
json_obj = load_json('tests/foo.json')
print(json_obj['foo']) # bar
print(json_obj['int']) # 1

# yaml
yaml_obj = {
    'foo': 'bar',
    'int': 1
}
save_yaml('tests/foo.yaml', yaml_obj)
yaml_obj = load_yaml('tests/foo.yaml')
print(yaml_obj['foo']) # bar
print(yaml_obj['int']) # 1

# md5
calculate_md5_for_file('tests/foo.json') # eb7a203770342c5d4336d41cf1d7c05b
calculate_md5_for_files(['tests/foo.yaml', 'tests/foo.json']) # 1e073343d8616c486391901bdd41a7af

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

wozoxutils-0.2.6.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wozoxutils-0.2.6-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file wozoxutils-0.2.6.tar.gz.

File metadata

  • Download URL: wozoxutils-0.2.6.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for wozoxutils-0.2.6.tar.gz
Algorithm Hash digest
SHA256 e7894fdbd8d01cee81c1b676b4d2936060c448251a4fb8beb926f6d159686ea4
MD5 7c99b710cc0e7a08b2510a61ef1fa856
BLAKE2b-256 2d80045056535ba91155bb43d8c223dffa99d30936bd2f75e9c216a7cb161fe8

See more details on using hashes here.

File details

Details for the file wozoxutils-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: wozoxutils-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for wozoxutils-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d77fcfd97a2f5ccf8713e121efb03d8eb715717055e57d8c21ae21a9589d3dce
MD5 8c8fb71bec514252a546d3afbe6b31e9
BLAKE2b-256 ffd48642b7113b14370bf8df52abcdebe47bc2d01f773ee5b0217ecd48a36539

See more details on using hashes here.

Supported by

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