wozoxutils


Namewozoxutils JSON
Version 0.2.5 PyPI version JSON
download
home_pagehttps://github.com/wozox/wozoxutils-py
Summarygeneral-purpose library for Python that contains various commonly used functional modules
upload_time2023-05-14 09:17:35
maintainer
docs_urlNone
authorilliten
requires_python
license
keywords wozox utils
VCS
bugtrack_url
requirements pyyaml
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # wozoxutils [![PyPI](https://img.shields.io/pypi/v/wozoxutils.svg)](https://pypi.org/project/wozoxutils/) [![PyPI - Format](https://img.shields.io/pypi/format/wozoxutils.svg)](https://pypi.org/project/wozoxutils/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/wozoxutils.svg)](https://pypi.org/project/wozoxutils/)
general-purpose library for Python that contains various commonly used functional modules.

## Installation

```shell
pip install wozoxutils
```

## Usage


```python
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
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wozox/wozoxutils-py",
    "name": "wozoxutils",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "wozox utils",
    "author": "illiten",
    "author_email": "admin@leelib.com",
    "download_url": "https://files.pythonhosted.org/packages/13/2c/8cea02f6d0eee6589ad104fb9e9e5940dbc3326de734e83f89ca40cdcc86/wozoxutils-0.2.5.tar.gz",
    "platform": null,
    "description": "# wozoxutils [![PyPI](https://img.shields.io/pypi/v/wozoxutils.svg)](https://pypi.org/project/wozoxutils/) [![PyPI - Format](https://img.shields.io/pypi/format/wozoxutils.svg)](https://pypi.org/project/wozoxutils/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/wozoxutils.svg)](https://pypi.org/project/wozoxutils/)\ngeneral-purpose library for Python that contains various commonly used functional modules.\n\n## Installation\n\n```shell\npip install wozoxutils\n```\n\n## Usage\n\n\n```python\nfrom wozoxutils import load_json, save_json, load_yaml, save_yaml, calculate_md5_for_file, calculate_md5_for_files\n\n# json\njson_obj = {\n    'foo': 'bar',\n    'int': 1\n}\nsave_json('tests/foo.json', json_obj)\njson_obj = load_json('tests/foo.json')\nprint(json_obj['foo']) # bar\nprint(json_obj['int']) # 1\n\n# yaml\nyaml_obj = {\n    'foo': 'bar',\n    'int': 1\n}\nsave_yaml('tests/foo.yaml', yaml_obj)\nyaml_obj = load_yaml('tests/foo.yaml')\nprint(yaml_obj['foo']) # bar\nprint(yaml_obj['int']) # 1\n\n# md5\ncalculate_md5_for_file('tests/foo.json') # eb7a203770342c5d4336d41cf1d7c05b\ncalculate_md5_for_files(['tests/foo.yaml', 'tests/foo.json']) # 1e073343d8616c486391901bdd41a7af\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "general-purpose library for Python that contains various commonly used functional modules",
    "version": "0.2.5",
    "project_urls": {
        "Homepage": "https://github.com/wozox/wozoxutils-py"
    },
    "split_keywords": [
        "wozox",
        "utils"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c619dc15484b1ba80561408a8e114b5fdc8bfc4be4750eb20cbe5ea9b6e7157",
                "md5": "636772cb174c281820ab3965bd440c94",
                "sha256": "9c11995f7ec79409516646d8ed3cc7602371678bc36e47c1a9311808a9eaad6b"
            },
            "downloads": -1,
            "filename": "wozoxutils-0.2.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "636772cb174c281820ab3965bd440c94",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5977,
            "upload_time": "2023-05-14T09:17:33",
            "upload_time_iso_8601": "2023-05-14T09:17:33.823918Z",
            "url": "https://files.pythonhosted.org/packages/2c/61/9dc15484b1ba80561408a8e114b5fdc8bfc4be4750eb20cbe5ea9b6e7157/wozoxutils-0.2.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "132c8cea02f6d0eee6589ad104fb9e9e5940dbc3326de734e83f89ca40cdcc86",
                "md5": "e45a2bcb5f27f028fbc6186cd7b856f7",
                "sha256": "fca2446b9be3cc990fdfdb1fb7a15516866c748db228a2ffa394a6df0e3ed9ac"
            },
            "downloads": -1,
            "filename": "wozoxutils-0.2.5.tar.gz",
            "has_sig": false,
            "md5_digest": "e45a2bcb5f27f028fbc6186cd7b856f7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4177,
            "upload_time": "2023-05-14T09:17:35",
            "upload_time_iso_8601": "2023-05-14T09:17:35.360093Z",
            "url": "https://files.pythonhosted.org/packages/13/2c/8cea02f6d0eee6589ad104fb9e9e5940dbc3326de734e83f89ca40cdcc86/wozoxutils-0.2.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-14 09:17:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wozox",
    "github_project": "wozoxutils-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "pyyaml",
            "specs": []
        }
    ],
    "lcname": "wozoxutils"
}
        
Elapsed time: 0.07309s