libit


Namelibit JSON
Version 1.6.9 PyPI version JSON
download
home_pagehttps://github.com/pylibit
SummaryLibrary Bitcoin package for python convert and generate wallet
upload_time2024-02-24 18:38:06
maintainer
docs_urlNone
authorMmdrza
requires_python
licensehttp://opensource.org/licenses/MIT
keywords bitcoin cryptography python library crypto libit ethereum tron
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Libit

---

Fast and easy converted and generated utils for bitcoin , ethereum and tron wallet in python

---

## install & use

### windows
```batch
pip install libit
```
### linux & mac
```shell
pip3 install libit
```

generated and convert base utils key for wallet information and public , private data

## how to 

### bytes to wif

```python
from libit import bytes_wif
seed_bytes = b"Bytes data (32 bytes)"
# wif compressed
wif_compress = bytes_wif(seed_bytes, True)
wif_decompress = bytes_wif(seed_bytes)
```
### bytes to address

```python
from libit import bytes_addr
seed_bytes = b"Bytes data (32 bytes)"
# compressed
caddr = bytes_addr(seed_bytes, True)
# uncompressed
uaddr = bytes_addr(seed_bytes)
```

### bytes to ethereum address

```python
from libit import bytes_eth
seed_bytes = b"Bytes data (32 bytes)"
eth_addr = bytes_eth(seed_bytes)
```

---
### wif to address:

convert wif key to compressed and uncompressed address wallet

```python
import libit

wif_str = "Wif Data String"
# compressed
caddr = libit.wif_addr(wif, True)
# uncompressed
uaddr = libit.wif_addr(wif)
```
### private key to wif

convert private key (hex) to wif compressed and uncompressed

```python
import libit

pvk_hex = "hex private key"
# compressed
wif_compress = libit.pvk_to_wif(pvk_hex, True)
# uncompressed
wif_decompress = libit.pvk_to_wif(pvk_hex)
```

---

### private key to decimal

```python
import libit
pvk = "hex private key"
decimal = libit.pvk_to_decimal(pvk)
```
### private key to address

```python
import libit
pvk = "hex private key"
compress_addr = libit.privatekey_addr(pvk, True)
uncompress_addr = libit.privatekey_addr(pvk)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pylibit",
    "name": "libit",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "bitcoin,cryptography,python,library,crypto,libit,ethereum,tron",
    "author": "Mmdrza",
    "author_email": "Pymmdrza@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5c/80/01837821b629f82babf0168ee570619ed3e0c8668a12b7f5bc031e3bc4e9/libit-1.6.9.tar.gz",
    "platform": null,
    "description": "\n# Libit\n\n---\n\nFast and easy converted and generated utils for bitcoin , ethereum and tron wallet in python\n\n---\n\n## install & use\n\n### windows\n```batch\npip install libit\n```\n### linux & mac\n```shell\npip3 install libit\n```\n\ngenerated and convert base utils key for wallet information and public , private data\n\n## how to \n\n### bytes to wif\n\n```python\nfrom libit import bytes_wif\nseed_bytes = b\"Bytes data (32 bytes)\"\n# wif compressed\nwif_compress = bytes_wif(seed_bytes, True)\nwif_decompress = bytes_wif(seed_bytes)\n```\n### bytes to address\n\n```python\nfrom libit import bytes_addr\nseed_bytes = b\"Bytes data (32 bytes)\"\n# compressed\ncaddr = bytes_addr(seed_bytes, True)\n# uncompressed\nuaddr = bytes_addr(seed_bytes)\n```\n\n### bytes to ethereum address\n\n```python\nfrom libit import bytes_eth\nseed_bytes = b\"Bytes data (32 bytes)\"\neth_addr = bytes_eth(seed_bytes)\n```\n\n---\n### wif to address:\n\nconvert wif key to compressed and uncompressed address wallet\n\n```python\nimport libit\n\nwif_str = \"Wif Data String\"\n# compressed\ncaddr = libit.wif_addr(wif, True)\n# uncompressed\nuaddr = libit.wif_addr(wif)\n```\n### private key to wif\n\nconvert private key (hex) to wif compressed and uncompressed\n\n```python\nimport libit\n\npvk_hex = \"hex private key\"\n# compressed\nwif_compress = libit.pvk_to_wif(pvk_hex, True)\n# uncompressed\nwif_decompress = libit.pvk_to_wif(pvk_hex)\n```\n\n---\n\n### private key to decimal\n\n```python\nimport libit\npvk = \"hex private key\"\ndecimal = libit.pvk_to_decimal(pvk)\n```\n### private key to address\n\n```python\nimport libit\npvk = \"hex private key\"\ncompress_addr = libit.privatekey_addr(pvk, True)\nuncompress_addr = libit.privatekey_addr(pvk)\n```\n",
    "bugtrack_url": null,
    "license": "http://opensource.org/licenses/MIT",
    "summary": "Library Bitcoin package for python convert and generate wallet",
    "version": "1.6.9",
    "project_urls": {
        "Bug Tracker": "https://github.com/pylibit/issues",
        "Documentation": "https://pylibit.github.io/libit/",
        "Homepage": "https://github.com/pylibit",
        "Medium": "https://mdrza.medium.com",
        "Source Code": "https://github.com/pylibit/libit",
        "Website": "https://mmdrza.com"
    },
    "split_keywords": [
        "bitcoin",
        "cryptography",
        "python",
        "library",
        "crypto",
        "libit",
        "ethereum",
        "tron"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a7113bb2ca7a1d2cca4932cbfb16566679c81e5d2ffbad469070e383644f232c",
                "md5": "9b4caa0fcf82fb43dd301c493a212bda",
                "sha256": "66fd6b3a4e3828c9a9369a9ce0df345ef2843a0e94e39bdf5ce72f901f9cb5b9"
            },
            "downloads": -1,
            "filename": "libit-1.6.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9b4caa0fcf82fb43dd301c493a212bda",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 15111,
            "upload_time": "2024-02-24T18:38:04",
            "upload_time_iso_8601": "2024-02-24T18:38:04.974853Z",
            "url": "https://files.pythonhosted.org/packages/a7/11/3bb2ca7a1d2cca4932cbfb16566679c81e5d2ffbad469070e383644f232c/libit-1.6.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5c8001837821b629f82babf0168ee570619ed3e0c8668a12b7f5bc031e3bc4e9",
                "md5": "cdbb78587935c00124cd870b23dcfaa9",
                "sha256": "d94721ec7641c8cd8ea97256a7351c7d30160d751f673312b566c592b169a37e"
            },
            "downloads": -1,
            "filename": "libit-1.6.9.tar.gz",
            "has_sig": false,
            "md5_digest": "cdbb78587935c00124cd870b23dcfaa9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 15581,
            "upload_time": "2024-02-24T18:38:06",
            "upload_time_iso_8601": "2024-02-24T18:38:06.812372Z",
            "url": "https://files.pythonhosted.org/packages/5c/80/01837821b629f82babf0168ee570619ed3e0c8668a12b7f5bc031e3bc4e9/libit-1.6.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-24 18:38:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pylibit",
    "github_project": "issues",
    "github_not_found": true,
    "lcname": "libit"
}
        
Elapsed time: 1.97793s