hash-controller


Namehash-controller JSON
Version 1.1.7 PyPI version JSON
download
home_pagehttps://github.com/edmachina/hash_controller
SummaryFile controller via hash
upload_time2023-11-29 20:10:50
maintainer
docs_urlNone
authorEzequiel Marcel
requires_python>=3.9
license
keywords pip hash controller
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Hash controller

Package for file controller via hash creation and storage in a Database.
Actual integration with PostgreSQL, MongoDB and DynamoDB

## Install and Import

Install with pip

    pip install hash_controller

import as:

    from hash_controller.main import HashClient

## Use

The parameters for the functions are:

    customer_uuid: str
    type: str
    obj: dict
    objs: list[dict]

None of them should be empty

To check if an item exist in the database use:

    HashClient.exist(customer_uuid, type, obj)

In order to create a new registry user:

    HashClient.create(customer_uuid, type, obj)

If you want to do the same but as a batch you can use the many functions, using a list of obj

    HashClient.create_many(customer_uuid, type, objs)
    HashClient.exist_many(customer_uuid, type, objs)

Also if you want to get the full items use:

    HashClient.get_many(filter)

with filter as a dict of the data filtered. Example:

    filter = {"customer_uuid": "123"}
    filter = {"created_at": 123456789}
    filter = {"customer_uuid": "123", "type": "user"}

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/edmachina/hash_controller",
    "name": "hash-controller",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "pip,hash,controller",
    "author": "Ezequiel Marcel",
    "author_email": "ezequiel.marcel@edmachina.com",
    "download_url": "https://files.pythonhosted.org/packages/af/ed/efc7194c5ce270b3422de65884b4acbd55ec77af3271933b14169b4d26d0/hash_controller-1.1.7.tar.gz",
    "platform": null,
    "description": "# Hash controller\r\n\r\nPackage for file controller via hash creation and storage in a Database.\r\nActual integration with PostgreSQL, MongoDB and DynamoDB\r\n\r\n## Install and Import\r\n\r\nInstall with pip\r\n\r\n    pip install hash_controller\r\n\r\nimport as:\r\n\r\n    from hash_controller.main import HashClient\r\n\r\n## Use\r\n\r\nThe parameters for the functions are:\r\n\r\n    customer_uuid: str\r\n    type: str\r\n    obj: dict\r\n    objs: list[dict]\r\n\r\nNone of them should be empty\r\n\r\nTo check if an item exist in the database use:\r\n\r\n    HashClient.exist(customer_uuid, type, obj)\r\n\r\nIn order to create a new registry user:\r\n\r\n    HashClient.create(customer_uuid, type, obj)\r\n\r\nIf you want to do the same but as a batch you can use the many functions, using a list of obj\r\n\r\n    HashClient.create_many(customer_uuid, type, objs)\r\n    HashClient.exist_many(customer_uuid, type, objs)\r\n\r\nAlso if you want to get the full items use:\r\n\r\n    HashClient.get_many(filter)\r\n\r\nwith filter as a dict of the data filtered. Example:\r\n\r\n    filter = {\"customer_uuid\": \"123\"}\r\n    filter = {\"created_at\": 123456789}\r\n    filter = {\"customer_uuid\": \"123\", \"type\": \"user\"}\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "File controller via hash",
    "version": "1.1.7",
    "project_urls": {
        "Homepage": "https://github.com/edmachina/hash_controller"
    },
    "split_keywords": [
        "pip",
        "hash",
        "controller"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3bf22fe8e9b4cb2f9dbd555f8dc5740081e22060f9c3277605d82b0d55192035",
                "md5": "6cee35cded40118e2d9a532e2bdb142e",
                "sha256": "79de124bfb682aaa476cd024d7f6f19820f44fa5621871af35f1cd651f943313"
            },
            "downloads": -1,
            "filename": "hash_controller-1.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6cee35cded40118e2d9a532e2bdb142e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9279,
            "upload_time": "2023-11-29T20:10:49",
            "upload_time_iso_8601": "2023-11-29T20:10:49.039277Z",
            "url": "https://files.pythonhosted.org/packages/3b/f2/2fe8e9b4cb2f9dbd555f8dc5740081e22060f9c3277605d82b0d55192035/hash_controller-1.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "afedefc7194c5ce270b3422de65884b4acbd55ec77af3271933b14169b4d26d0",
                "md5": "a1a7893068c50a29fd98eec80e48c48e",
                "sha256": "eeec5ce2214945f07234e2ccf9a6b5914fb1a0f405485237ede24cc3438b064f"
            },
            "downloads": -1,
            "filename": "hash_controller-1.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "a1a7893068c50a29fd98eec80e48c48e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6976,
            "upload_time": "2023-11-29T20:10:50",
            "upload_time_iso_8601": "2023-11-29T20:10:50.676484Z",
            "url": "https://files.pythonhosted.org/packages/af/ed/efc7194c5ce270b3422de65884b4acbd55ec77af3271933b14169b4d26d0/hash_controller-1.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-29 20:10:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "edmachina",
    "github_project": "hash_controller",
    "github_not_found": true,
    "lcname": "hash-controller"
}
        
Elapsed time: 0.17494s