prodamuspy


Nameprodamuspy JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/dnagikh/python-prodamus
SummaryProdamus hash verifier
upload_time2023-09-25 13:35:36
maintainerDaniil Nagikh
docs_urlNone
author
requires_python
licenseLICENSE.md
keywords prodamus hash hmac verify sign
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Prodamus hash verifier (HMAC)

Generate and verify Prodamus hash.

https://help.prodamus.ru/payform/integracii/rest-api/instrukcii-dlya-samostoyatelnaya-integracii-servisov#kak-prinyat-uvedomlenie-ob-uspeshnoi-oplate

## Installation
    
    pip install prodamuspy

## Usage

Init object:

    prodamus = prodamuspy.PyProdamus(API_TOKEN)

Parse query string to a dictionary:

    bodyDict = prodamus.parse(body)

Create signature:

    checkSign = prodamus.sign(bodyDict)

Verify signature:

    signIsGood = prodamus.verify(bodyDict, receivedSign)
    if signIsGood:
        print("Signature is awesome")
    else:
        print("Signature is incorrect")

## Copyright

Copyright 2023 [Max Arnold, Daniil Nagikh], all rights reserved.

This software is released under the MIT License.

A huge thank to https://github.com/max-arnold

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dnagikh/python-prodamus",
    "name": "prodamuspy",
    "maintainer": "Daniil Nagikh",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "dnagikh@gmail.com",
    "keywords": "prodamus,hash,hmac,verify,sign",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/56/e8/0f9c90b7ef7b3a8ab00f16dc250db9065a218a289d1a5be08ce8ec391c5e/prodamuspy-1.0.2.tar.gz",
    "platform": null,
    "description": "# Prodamus hash verifier (HMAC)\n\nGenerate and verify Prodamus hash.\n\nhttps://help.prodamus.ru/payform/integracii/rest-api/instrukcii-dlya-samostoyatelnaya-integracii-servisov#kak-prinyat-uvedomlenie-ob-uspeshnoi-oplate\n\n## Installation\n    \n    pip install prodamuspy\n\n## Usage\n\nInit object:\n\n    prodamus = prodamuspy.PyProdamus(API_TOKEN)\n\nParse query string to a dictionary:\n\n    bodyDict = prodamus.parse(body)\n\nCreate signature:\n\n    checkSign = prodamus.sign(bodyDict)\n\nVerify signature:\n\n    signIsGood = prodamus.verify(bodyDict, receivedSign)\n    if signIsGood:\n        print(\"Signature is awesome\")\n    else:\n        print(\"Signature is incorrect\")\n\n## Copyright\n\nCopyright 2023 [Max Arnold, Daniil Nagikh], all rights reserved.\n\nThis software is released under the MIT License.\n\nA huge thank to https://github.com/max-arnold\n",
    "bugtrack_url": null,
    "license": "LICENSE.md",
    "summary": "Prodamus hash verifier",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/dnagikh/python-prodamus"
    },
    "split_keywords": [
        "prodamus",
        "hash",
        "hmac",
        "verify",
        "sign"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "56e80f9c90b7ef7b3a8ab00f16dc250db9065a218a289d1a5be08ce8ec391c5e",
                "md5": "e098589ca50ce9738baef9d644f3f4db",
                "sha256": "3feaa37457cbc2124ca47adc9be51b39eb5dd1d3ebf9dbbae52d4fdd27fdf85a"
            },
            "downloads": -1,
            "filename": "prodamuspy-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "e098589ca50ce9738baef9d644f3f4db",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3691,
            "upload_time": "2023-09-25T13:35:36",
            "upload_time_iso_8601": "2023-09-25T13:35:36.903185Z",
            "url": "https://files.pythonhosted.org/packages/56/e8/0f9c90b7ef7b3a8ab00f16dc250db9065a218a289d1a5be08ce8ec391c5e/prodamuspy-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-25 13:35:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dnagikh",
    "github_project": "python-prodamus",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "prodamuspy"
}
        
Elapsed time: 0.16432s