semvec/pypi-packages huggingface dataset:
pyguardian 0.0.3
"Runtime type-checking of method parameters."
License: MIT
Requires Python: >=3.6

# pyguardian

## Description
*pyguardian* is a type-checker for method parameters. Methods are type-checked at runtime via the `guard` decorator:
```python
from pyguardian import guard

@guard(int, int)
def add(a, b):
    return a+b

# Successful call
>>> add(1,2)
3

# Unsccessful call ("2" is not an integer!)
>>> add(1,"2")
InvalidArgumentTypeError: 'add' expects value of type 'int' for parameter 'b' but got 'str'
```

## Installation
```bash
pip install pyguardian
```

## Documentation
See [DOCUMENTATION.md](https://github.com/greysonDEV/pyguardian/blob/master/DOCUMENTATION.md)

## License
*pyguardian* is licensed under the [MIT](https://github.com/greysonDEV/pyguardian/blob/master/LICENSE) License.
PyRMVtransport 0.3.3
Python library to make use of transport information from opendata.rmv.de.
License: MIT
Requires Python: >=3.7

# PyRMVtransport :bus:

Python library to make use of transport information from opendata.rmv.de.

[![GitHub Actions](https://github.com/cgtobi/PyRMVtransport/workflows/Python%20package/badge.svg)](https://github.com/cgtobi/PyRMVtransport/actions?workflow=Python+package)
[![PyPi](https://img.shields.io/pypi/v/PyRMVtransport.svg)](https://pypi.python.org/pypi/PyRMVtransport)

<!-- [![PyPi](https://img.shields.io/pypi/pyversions/PyRMVtransport.svg)](https://pypi.python.org/pypi/PyRMVtransport) -->

[![PyPi](https://img.shields.io/pypi/l/PyRMVtransport.svg)](https://github.com/cgtobi/PyRMVtransport/blob/master/LICENSE)
[![codecov](https://codecov.io/gh/cgtobi/PyRMVtransport/branch/master/graph/badge.svg)](https://codecov.io/gh/cgtobi/PyRMVtransport)
[![Maintainability](https://api.codeclimate.com/v1/badges/9eeb0f9a9359b79205ad/maintainability)](https://codeclimate.com/github/cgtobi/PyRMVtransport/maintainability)
[![Downloads](https://pepy.tech/badge/pyrmvtransport)](https://pepy.tech/project/pyrmvtransport)

## Installation

```bash
$ pip install PyRMVtransport
```

## Usage

```python
import asyncio
import aiohttp
from RMVtransport import RMVtransport

async def main():
    """The main part of the example script."""
    async with aiohttp.ClientSession():
        rmv = RMVtransport()

        # Get the data
        try:
            # Departures for station 3006907 (Wiesbaden Hauptbahnhof)
            # max. 5 results
            # only specified products (S-Bahn, U-Bahn, Tram)
            data = await rmv.get_departures(
                station_id="3006907", products=["S", "U-Bahn", "Tram"], max_journeys=5
            )

            # Use the JSON output
            print(data)

            # or pretty print
            rmv.print()
        except TypeError:
            pass

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```