iso18245


Nameiso18245 JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/jleclanche/python-iso18245
SummaryThe ISO 18245 Merchant Category Codes database
upload_time2023-07-30 00:11:47
maintainer
docs_urlNone
authorJerome Leclanche
requires_python>=3.8,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # python-iso18245

A Python implementation of the ISO 18245 Merchant Category Codes database.

## Installation

- `pip install iso18245`

## Usage

```py

>>> import iso18245
>>> iso18245.get_mcc("5542")
MCC(range=MCCRange(start='5000', end='5599', description='Retail outlets', reserved=False), iso_description='Automated fuel dispensers', usda_description='Automated Fuel Dispensers', stripe_description='Automated Fuel Dispensers', stripe_code='automated_fuel_dispensers')
>>> iso18245.get_mcc("3000")
MCC(range=MCCRange(start='3000', end='3999', description='Reserved for private use', reserved=True), iso_description='', usda_description='UNITED AIRLINES', stripe_description='', stripe_code='')
>>> iso18245.get_mcc("3000").usda_description
'UNITED AIRLINES'
>>> iso18245.get_mcc("3000").range
MCCRange(start='3000', end='3999', description='Reserved for private use', reserved=True)
>>> iso18245.get_mcc("999999")
Traceback (most recent call last):
  …
iso18245.InvalidMCC: 999999
```

## External links

- [Wikipedia: ISO 18245](https://en.wikipedia.org/wiki/ISO_18245)
- [ISO Standard 18245:2003](https://www.iso.org/standard/33365.html)
- [AFNOR: ISO 18245](http://portailgroupe.afnor.fr/public_espacenormalisation/ISOTC68SC7/ISO%2018245.html)
- [Stripe MCC List](https://stripe.com/docs/issuing/categories)
- [USDA MCC List (incl. private MCCs)](https://www.dm.usda.gov/procurement/card/card_x/mcc.pdf)
- [VISA Merchant Data Standards Manual](https://usa.visa.com/content/dam/VCOM/download/merchants/visa-merchant-data-standards-manual.pdf)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jleclanche/python-iso18245",
    "name": "iso18245",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Jerome Leclanche",
    "author_email": "jerome@leclan.ch",
    "download_url": "https://files.pythonhosted.org/packages/3d/3e/d07c1e8ecfd8995ec7ca0b9a3967c09cd3d7486d0529260b2a94738a459b/iso18245-1.3.0.tar.gz",
    "platform": null,
    "description": "# python-iso18245\n\nA Python implementation of the ISO 18245 Merchant Category Codes database.\n\n## Installation\n\n- `pip install iso18245`\n\n## Usage\n\n```py\n\n>>> import iso18245\n>>> iso18245.get_mcc(\"5542\")\nMCC(range=MCCRange(start='5000', end='5599', description='Retail outlets', reserved=False), iso_description='Automated fuel dispensers', usda_description='Automated Fuel Dispensers', stripe_description='Automated Fuel Dispensers', stripe_code='automated_fuel_dispensers')\n>>> iso18245.get_mcc(\"3000\")\nMCC(range=MCCRange(start='3000', end='3999', description='Reserved for private use', reserved=True), iso_description='', usda_description='UNITED AIRLINES', stripe_description='', stripe_code='')\n>>> iso18245.get_mcc(\"3000\").usda_description\n'UNITED AIRLINES'\n>>> iso18245.get_mcc(\"3000\").range\nMCCRange(start='3000', end='3999', description='Reserved for private use', reserved=True)\n>>> iso18245.get_mcc(\"999999\")\nTraceback (most recent call last):\n  \u2026\niso18245.InvalidMCC: 999999\n```\n\n## External links\n\n- [Wikipedia: ISO 18245](https://en.wikipedia.org/wiki/ISO_18245)\n- [ISO Standard 18245:2003](https://www.iso.org/standard/33365.html)\n- [AFNOR: ISO 18245](http://portailgroupe.afnor.fr/public_espacenormalisation/ISOTC68SC7/ISO%2018245.html)\n- [Stripe MCC List](https://stripe.com/docs/issuing/categories)\n- [USDA MCC List (incl. private MCCs)](https://www.dm.usda.gov/procurement/card/card_x/mcc.pdf)\n- [VISA Merchant Data Standards Manual](https://usa.visa.com/content/dam/VCOM/download/merchants/visa-merchant-data-standards-manual.pdf)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "The ISO 18245 Merchant Category Codes database",
    "version": "1.3.0",
    "project_urls": {
        "Homepage": "https://github.com/jleclanche/python-iso18245",
        "Repository": "https://github.com/jleclanche/python-iso18245"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8c30230be9ea909a6ef1bbcc051bc580d386b791d68d60b283f50837d010b941",
                "md5": "9414243b797083278f08a99bfc0d76ff",
                "sha256": "cf3ded01dd01383b26ff4b0af37179090cdf261efea2cbf86c9e8f12502e82bd"
            },
            "downloads": -1,
            "filename": "iso18245-1.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9414243b797083278f08a99bfc0d76ff",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 42827,
            "upload_time": "2023-07-30T00:11:45",
            "upload_time_iso_8601": "2023-07-30T00:11:45.510946Z",
            "url": "https://files.pythonhosted.org/packages/8c/30/230be9ea909a6ef1bbcc051bc580d386b791d68d60b283f50837d010b941/iso18245-1.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3d3ed07c1e8ecfd8995ec7ca0b9a3967c09cd3d7486d0529260b2a94738a459b",
                "md5": "50faf22e8237e9ede82ffc9c4bbd6b87",
                "sha256": "bb6aa03c2fc1bd75a4743574761b2c0badb1388257b50597c01895f66b31d00f"
            },
            "downloads": -1,
            "filename": "iso18245-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "50faf22e8237e9ede82ffc9c4bbd6b87",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 29340,
            "upload_time": "2023-07-30T00:11:47",
            "upload_time_iso_8601": "2023-07-30T00:11:47.171896Z",
            "url": "https://files.pythonhosted.org/packages/3d/3e/d07c1e8ecfd8995ec7ca0b9a3967c09cd3d7486d0529260b2a94738a459b/iso18245-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-30 00:11:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jleclanche",
    "github_project": "python-iso18245",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "iso18245"
}
        
Elapsed time: 4.71503s