base36py


Namebase36py JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/DanishjeetSingh/base36py
SummaryA lightweight Python library for encoding and decoding numbers between base10 and base36.
upload_time2024-06-23 17:47:09
maintainerNone
docs_urlNone
authorDanishjeet Singh
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # base36py

`base36py` is a lightweight Python library for encoding and decoding numbers between base10 and base36. It provides functions to convert both integer and floating-point numbers to base36 strings and vice versa, supporting precise fractional conversions.

## Features

- Convert integers to base36 strings.
- Convert floating-point numbers to base36 strings with adjustable precision.
- Decode base36 strings back to integers or floating-point numbers.
- Easy to use and integrate into existing projects.

## Installation

You can install `base36py` via pip:

```sh
pip install base36py
```

## Usage

```python
from base36py import encode, decode

encoded = encode(1234.5678, precision=8)
print("Encoded:", encoded)
decoded = decode(encoded, precision=8)
print("Decoded:", decoded)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/DanishjeetSingh/base36py",
    "name": "base36py",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Danishjeet Singh",
    "author_email": "danishjeetsingh@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0e/00/fbd6989ab2f62d0c37fd32efb45c1efd680ba48707c3996a6dd2032a3af6/base36py-0.2.0.tar.gz",
    "platform": null,
    "description": "# base36py\n\n`base36py` is a lightweight Python library for encoding and decoding numbers between base10 and base36. It provides functions to convert both integer and floating-point numbers to base36 strings and vice versa, supporting precise fractional conversions.\n\n## Features\n\n- Convert integers to base36 strings.\n- Convert floating-point numbers to base36 strings with adjustable precision.\n- Decode base36 strings back to integers or floating-point numbers.\n- Easy to use and integrate into existing projects.\n\n## Installation\n\nYou can install `base36py` via pip:\n\n```sh\npip install base36py\n```\n\n## Usage\n\n```python\nfrom base36py import encode, decode\n\nencoded = encode(1234.5678, precision=8)\nprint(\"Encoded:\", encoded)\ndecoded = decode(encoded, precision=8)\nprint(\"Decoded:\", decoded)\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A lightweight Python library for encoding and decoding numbers between base10 and base36.",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/DanishjeetSingh/base36py"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e00fbd6989ab2f62d0c37fd32efb45c1efd680ba48707c3996a6dd2032a3af6",
                "md5": "921d108cf9fcfd494c859025551c22f4",
                "sha256": "28129fc6b886ced5e6b88c634e703238e79d1975baca25b3cd3f4cd238c32c4e"
            },
            "downloads": -1,
            "filename": "base36py-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "921d108cf9fcfd494c859025551c22f4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3148,
            "upload_time": "2024-06-23T17:47:09",
            "upload_time_iso_8601": "2024-06-23T17:47:09.205819Z",
            "url": "https://files.pythonhosted.org/packages/0e/00/fbd6989ab2f62d0c37fd32efb45c1efd680ba48707c3996a6dd2032a3af6/base36py-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-23 17:47:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "DanishjeetSingh",
    "github_project": "base36py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "base36py"
}
        
Elapsed time: 1.45377s