semvec/pypi-packages huggingface dataset:
cardutil 0.7.3
Python package for working with payment card systems
Requires Python: >=3.9

========
cardutil
========
Cardutil is a python package for working with payment card systems including
command line tools for working with Mastercard IPM files.

.. image:: https://img.shields.io/pypi/l/cardutil.svg
        :target: https://pypi.org/project/cardutil
        :alt: License

.. image:: https://img.shields.io/pypi/v/cardutil.svg
        :target: https://pypi.org/project/cardutil
        :alt: Version

.. image:: https://img.shields.io/pypi/wheel/cardutil.svg
        :target: https://pypi.org/project/cardutil
        :alt: Wheel

.. image:: https://img.shields.io/pypi/implementation/cardutil.svg
        :target: https://pypi.org/project/cardutil
        :alt: Implementation

.. image:: https://img.shields.io/github/issues/adelosa/cardutil
        :target: https://github.com/adelosa/cardutil/issues
        :alt: Status

.. image:: https://img.shields.io/pypi/dm/cardutil.svg
        :target: https://pypi.org/project/cardutil
        :alt: Downloads per month

.. image:: https://img.shields.io/pypi/pyversions/cardutil.svg
        :target: https://pypi.org/project/cardutil
        :alt: Python versions

.. image:: https://img.shields.io/github/actions/workflow/status/adelosa/cardutil/docs.yml?event=push&label=doc%20build
        :target: https://adelosa.github.io/cardutil
        :alt: doc build

.. image:: https://snyk.io/advisor/python/cardutil/badge.svg
        :target: https://snyk.io/advisor/python/cardutil
        :alt: snyk package health


Features
========
* ISO8583 message parsing
* Mastercard IPM file reader/writer/encoder
* Check digit calculator
* Encrypted pin block generator
* Visa PVV calculator
* Permissive license (MIT)

Installing
==========
Install and update using pip::

    pip install -U cardutil


Information
===========
* Works with all supported Python versions.
* Pythonic programmer interfaces
* Core library has **zero** package dependencies.
* Low memory usage
* Download from `pypi <https://pypi.org/project/cardutil/>`_
* Documentation available at `Read The Docs <https://cardutil.readthedocs.io/en/latest/>`_ and `GitHub Pages <https://adelosa.github.io/cardutil>`_
* Source hosted at `GitHub <https://github.com/adelosa/cardutil>`_

Acknowledgements
================
The python `hexdump` library is embedded in this package. Many thank to Anatoly Techtonik <techtonik@gmail.com>
This library is a life saver for debugging issues with binary data.
Available at `Pypi:hexdump <https://pypi.org/project/hexdump/>`_.

The iso8583 module in cardutil was inspired by the work of Igor V. Custodio from his
original ISO8583 parser. Available at `Pypi:ISO8583-Module <https://pypi.org/project/ISO8583-Module/>`_.

Mastercard is a registered trademark of Mastercard International Incorporated.
described-enum 0.0.1
Python Enums with description property
Requires Python: >=3.11
Keywords: enum, enums, described enum, enum with description

# described-enum

Python Enums with description property


## Install

With pip:

```bash
pip install described-enum
```

With uv:

```bash
uv add described-enum
```

With poetry:

```bash
poetry add described-enum
```


## Classes

* `DescribedEnum` – child class of `enum.Enum`
* `DescribedIntEnum` – child class of `enum.IntEnum`
* `DescribedStrEnum` – child class of `enum.StrEnum`


## Usage examples

```python
from described_enum import DescribedIntEnum, DescribedStrEnum


class TaskStatus(DescribedIntEnum):
    PENDING = 1, 'Task was created / enqueued'
    RUNNING = 2, 'Working on the task'
    DONE = 3, 'Success'
    FAILED = 4, 'Task failed'


print(TaskStatus.RUNNING.name)  # will print str 'RUNNING'
print(TaskStatus.RUNNING.value)  # will print int 2
print(TaskStatus.RUNNING.description)  # will print str 'Working on the task'


class Format(DescribedStrEnum):
    XML = 'xml', 'Extensible Markup Language'
    JSON = 'json', 'JavaScript Object Notation'
    TOML = 'toml', "Tom's Obvious, Minimal Language"
    YAML = 'yml', "YAML Ain't Markup Language"


print(Format.YAML.name)  # will print str 'YAML'
print(Format.YAML.value)  # will print str 'yml'
print(Format.YAML.description)  # will print str "YAML Ain't Markup Language"
```