baseblock


Namebaseblock JSON
Version 0.2.24 PyPI version JSON
download
home_pagehttps://github.com/craigtrim/climate-bot
SummaryBase Block of Common Enterprise Python Utilities
upload_time2023-07-15 16:49:12
maintainerCraig Trim
docs_urlNone
authorCraig Trim
requires_python>=3.8.5,<4.0.0
licenseMIT
keywords utility helper text matching
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Base Block (baseblock)

Base Block of Common Enterprise Python Utilities


## Crypto Base
Usage
```python
from baseblock import CryptoBase

key = CryptoBase.generate_private_key()
```

The `key` is used to both encrypt and decrypt text, like this:
```python
input_text = "Hello, World!"

crypt = CryptoBase(key)

x = crypt.encrypt_str(input_text)
y = crypt.decrypt_str(x)

assert input_text == y
```

The key can also be stored in the environment under **BASEBLOCK_CRYPTO_KEY**.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/craigtrim/climate-bot",
    "name": "baseblock",
    "maintainer": "Craig Trim",
    "docs_url": null,
    "requires_python": ">=3.8.5,<4.0.0",
    "maintainer_email": "craigtrim@gmail.com",
    "keywords": "utility,helper,text,matching",
    "author": "Craig Trim",
    "author_email": "craigtrim@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a0/e1/83505102380917f79cff8f5ccd825d9cb399e01856575fabd279fd8db3d0/baseblock-0.2.24.tar.gz",
    "platform": null,
    "description": "# Base Block (baseblock)\n\nBase Block of Common Enterprise Python Utilities\n\n\n## Crypto Base\nUsage\n```python\nfrom baseblock import CryptoBase\n\nkey = CryptoBase.generate_private_key()\n```\n\nThe `key` is used to both encrypt and decrypt text, like this:\n```python\ninput_text = \"Hello, World!\"\n\ncrypt = CryptoBase(key)\n\nx = crypt.encrypt_str(input_text)\ny = crypt.decrypt_str(x)\n\nassert input_text == y\n```\n\nThe key can also be stored in the environment under **BASEBLOCK_CRYPTO_KEY**.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Base Block of Common Enterprise Python Utilities",
    "version": "0.2.24",
    "project_urls": {
        "Homepage": "https://github.com/craigtrim/climate-bot",
        "Repository": "https://github.com/craigtrim/climate-bot"
    },
    "split_keywords": [
        "utility",
        "helper",
        "text",
        "matching"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6839eb9bbbfac9070e57828cf3cd1cd9141a199e8b1db3b3e211caa4d2516ca1",
                "md5": "2ecd9e56a82b931ba3e11d47c67092fd",
                "sha256": "a6b579a73880d9c309405c356859f0f53138509feffec2b50663f32e22c199c8"
            },
            "downloads": -1,
            "filename": "baseblock-0.2.24-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2ecd9e56a82b931ba3e11d47c67092fd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.5,<4.0.0",
            "size": 23533,
            "upload_time": "2023-07-15T16:49:10",
            "upload_time_iso_8601": "2023-07-15T16:49:10.523083Z",
            "url": "https://files.pythonhosted.org/packages/68/39/eb9bbbfac9070e57828cf3cd1cd9141a199e8b1db3b3e211caa4d2516ca1/baseblock-0.2.24-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a0e183505102380917f79cff8f5ccd825d9cb399e01856575fabd279fd8db3d0",
                "md5": "a0197ead815146e1908042ec27374ae7",
                "sha256": "3249bd4e3c3afc5b78db9eba214cb8004fb438ad3f0201d3066af5b89d8876cf"
            },
            "downloads": -1,
            "filename": "baseblock-0.2.24.tar.gz",
            "has_sig": false,
            "md5_digest": "a0197ead815146e1908042ec27374ae7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.5,<4.0.0",
            "size": 20383,
            "upload_time": "2023-07-15T16:49:12",
            "upload_time_iso_8601": "2023-07-15T16:49:12.180789Z",
            "url": "https://files.pythonhosted.org/packages/a0/e1/83505102380917f79cff8f5ccd825d9cb399e01856575fabd279fd8db3d0/baseblock-0.2.24.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-15 16:49:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "craigtrim",
    "github_project": "climate-bot",
    "github_not_found": true,
    "lcname": "baseblock"
}
        
Elapsed time: 0.36617s