basewhat


Namebasewhat JSON
Version 1.1 PyPI version JSON
download
home_pagehttps://helixteamhub.cloud/paulbissex/projects/basewhat/activity
SummaryA Python utility for encoding/decoding arbitrary-base numbers.
upload_time2024-05-08 02:48:47
maintainerNone
docs_urlNone
authorPaul Bissex
requires_python<4.0,>=3.6
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            basewhat
========

A Python utility for encoding/decoding arbitrary-base numbers.

**Project home page**: <https://helixteamhub.cloud/paulbissex/projects/basewhat/>

**Author**: Paul Bissex <paul@bissex.net>

## Usage

    >>> b16 = BaseWhat(base=16)
    >>> b16.from_int(65535)
    'FFFF'
    >>> b16.to_int('DECAFBAD')
    3737844653
    >>> b32 = BaseWhat(digits="23456789ABCDEFGHJKLMNPQRSTUVWXYZ")
    >>> b32.from_int(32767)
    'ZZZ'
    >>> b32.from_int(9223372036854775808)
    'A222222222222'
    >>> b32.to_int('1900MIXALOT')
    Traceback (most recent call last):
    ...
    ValueError: Not a valid base 32 number

            

Raw data

            {
    "_id": null,
    "home_page": "https://helixteamhub.cloud/paulbissex/projects/basewhat/activity",
    "name": "basewhat",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Paul Bissex",
    "author_email": "paul@bissex.net",
    "download_url": "https://files.pythonhosted.org/packages/8a/af/cab831962761c4275910723eb84fe865e20be55559a6fdb02bdac8c0a492/basewhat-1.1.tar.gz",
    "platform": null,
    "description": "\ufeffbasewhat\n========\n\nA Python utility for encoding/decoding arbitrary-base numbers.\n\n**Project home page**: <https://helixteamhub.cloud/paulbissex/projects/basewhat/>\n\n**Author**: Paul Bissex <paul@bissex.net>\n\n## Usage\n\n    >>> b16 = BaseWhat(base=16)\n    >>> b16.from_int(65535)\n    'FFFF'\n    >>> b16.to_int('DECAFBAD')\n    3737844653\n    >>> b32 = BaseWhat(digits=\"23456789ABCDEFGHJKLMNPQRSTUVWXYZ\")\n    >>> b32.from_int(32767)\n    'ZZZ'\n    >>> b32.from_int(9223372036854775808)\n    'A222222222222'\n    >>> b32.to_int('1900MIXALOT')\n    Traceback (most recent call last):\n    ...\n    ValueError: Not a valid base 32 number\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python utility for encoding/decoding arbitrary-base numbers.",
    "version": "1.1",
    "project_urls": {
        "Homepage": "https://helixteamhub.cloud/paulbissex/projects/basewhat/activity",
        "Repository": "https://helixteamhub.cloud/paulbissex/projects/basewhat/repositories/basewhat/tree/default"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "59bf51d8b1fed16a246d0dce7bbb3b97fe176c8de889a8c2e42cd8335f50de97",
                "md5": "1498d5a680abe7d0a5159f080cd4c81d",
                "sha256": "213547a1f5e6870d0cc1731f921dd1fb3be853e76c58afd5351d91a09bc8c30d"
            },
            "downloads": -1,
            "filename": "basewhat-1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1498d5a680abe7d0a5159f080cd4c81d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.6",
            "size": 3157,
            "upload_time": "2024-05-08T02:48:46",
            "upload_time_iso_8601": "2024-05-08T02:48:46.112872Z",
            "url": "https://files.pythonhosted.org/packages/59/bf/51d8b1fed16a246d0dce7bbb3b97fe176c8de889a8c2e42cd8335f50de97/basewhat-1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8aafcab831962761c4275910723eb84fe865e20be55559a6fdb02bdac8c0a492",
                "md5": "23a32ab90592b3bde002d95aacdad2bb",
                "sha256": "34a0c8d64f29b15cd5fa3df87e858f5671ffe77ff8b7de3830fc000e94fb3d6e"
            },
            "downloads": -1,
            "filename": "basewhat-1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "23a32ab90592b3bde002d95aacdad2bb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.6",
            "size": 2452,
            "upload_time": "2024-05-08T02:48:47",
            "upload_time_iso_8601": "2024-05-08T02:48:47.704577Z",
            "url": "https://files.pythonhosted.org/packages/8a/af/cab831962761c4275910723eb84fe865e20be55559a6fdb02bdac8c0a492/basewhat-1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-08 02:48:47",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "basewhat"
}
        
Elapsed time: 0.77550s