semvec/pypi-packages huggingface dataset:
pyabstractdatatype 0.0.2
Abstract Data Types for Python
Requires Python: >=3.7
Keywords: adt,data structure

# PyAbstractDataType
A simple library that adds [ADTs](https://en.wikipedia.org/wiki/Abstract_data_type) to Python.

[Source Code](https://github.com/angelcaru/pyabstractdatatype/)

## Documentation
Basic usage:
```python
from adt import adt

@adt
class MyADT:
    Variant1: (int, int)
    Variant2: (int)
    Variant3: (str, str, list[float])
```

Supports `match` statement!
```python
obj1 = MyADT.Variant1(2, 2)
obj2 = MyADT.Variant3("hi", "foo", [2.3, 5.6, 3.1415])

objs = obj1, obj2

for obj in objs:
    match obj1:
        case MyADT.Variant1(a, b):
            print(f"Found you! {a}, {b}")
        case MyADT.Variant2(x):
            print(":(")
        case _:
            raise ValueError("wtf")
```

Output:
```python
Found you! 2, 2
Traceback (most recent call last):
...
ValueError: wtf
```

## Examples
See [example.py](https://github.com/angelcaru/pyabstractdatatype/blob/main/example.py).
rtadubai 0.1.5
Unofficial API for RTA Dubai
Requires Python: >=3.8

# rtadubai
Unofficial API for RTA (Dubai)

## Installing

```bash
pip install rtadubai
```
## Installing Development Version

```bash
pip install git+https://github.com/NotNalin/rtadubai
```
## Examples

### Getting Nol Card balance

```python
from rtadubai import Nol

card = Nol.Card("Your nol card number")
balance = card.balance

# --------------------OR----------------------------

details = Nol.details("Your nol card number")
balance = details["balance"]
```

[More examples](https://github.com/NotNalin/rtadubai/tree/main/example)