tlvdict


Nametlvdict JSON
Version 1.2.0 PyPI version JSON
download
home_page
SummaryA Python dict that handles TLV decode/encode, very useful for EMV Data.
upload_time2023-01-02 06:13:12
maintainer
docs_urlNone
authorIan Starnes
requires_python>=3.7,<4.0
licenseMIT
keywords emv tlv tlvdict
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![](https://github.com/311labs/objict/workflows/tests/badge.svg)

## TLV - Type/Tag Length Format

Simple class that supports TLV encoding/decoding.

## Installation

```
pip install tlvdict
```


## Simple to use!

```python
>>> from tlvdict import TLVDict
>>> tlv = TLVDict.FromDict({"5F25": "200531", "9F06": "A0000000041010"})
>>> tlv
TLVDict([('5F25', '200531'), ('9F06', 'A0000000041010')])
>>> tlv.build()
'5F25032005319F0607A0000000041010'

>>> tlv2 = TLVDict.FromHex("5F25032005319F0607A0000000041010")
>>> tlv2
TLVDict([('5f25', '200531'), ('9f06', 'A0000000041010')])

```



            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "tlvdict",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "emv,tlv,tlvdict",
    "author": "Ian Starnes",
    "author_email": "ians@311labs.com",
    "download_url": "https://files.pythonhosted.org/packages/27/48/ade8b911b448d37f7a5c4de48dba6b26422ee69da9df680424281dcfa86c/tlvdict-1.2.0.tar.gz",
    "platform": null,
    "description": "![](https://github.com/311labs/objict/workflows/tests/badge.svg)\n\n## TLV - Type/Tag Length Format\n\nSimple class that supports TLV encoding/decoding.\n\n## Installation\n\n```\npip install tlvdict\n```\n\n\n## Simple to use!\n\n```python\n>>> from tlvdict import TLVDict\n>>> tlv = TLVDict.FromDict({\"5F25\": \"200531\", \"9F06\": \"A0000000041010\"})\n>>> tlv\nTLVDict([('5F25', '200531'), ('9F06', 'A0000000041010')])\n>>> tlv.build()\n'5F25032005319F0607A0000000041010'\n\n>>> tlv2 = TLVDict.FromHex(\"5F25032005319F0607A0000000041010\")\n>>> tlv2\nTLVDict([('5f25', '200531'), ('9f06', 'A0000000041010')])\n\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python dict that handles TLV decode/encode, very useful for EMV Data.",
    "version": "1.2.0",
    "split_keywords": [
        "emv",
        "tlv",
        "tlvdict"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "e2b04888ea6ce926689b530e74892c19",
                "sha256": "52fd338474062941a896e89f190361d7157463ead3b9e7fc811584498096a04e"
            },
            "downloads": -1,
            "filename": "tlvdict-1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e2b04888ea6ce926689b530e74892c19",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 7004,
            "upload_time": "2023-01-02T06:13:10",
            "upload_time_iso_8601": "2023-01-02T06:13:10.100691Z",
            "url": "https://files.pythonhosted.org/packages/a0/40/c035a5b2f978429df0b99eb92fc1b394484ea01c71d0f837ebbf886dd0e7/tlvdict-1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "5c24354758ecfeef93086071dd54d9db",
                "sha256": "2a542745326dbf7128c7988e0447c596e12c439cb06604baf14c14caf5fa5b49"
            },
            "downloads": -1,
            "filename": "tlvdict-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5c24354758ecfeef93086071dd54d9db",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 7151,
            "upload_time": "2023-01-02T06:13:12",
            "upload_time_iso_8601": "2023-01-02T06:13:12.306487Z",
            "url": "https://files.pythonhosted.org/packages/27/48/ade8b911b448d37f7a5c4de48dba6b26422ee69da9df680424281dcfa86c/tlvdict-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-02 06:13:12",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "tlvdict"
}
        
Elapsed time: 0.22723s