semvec/pypi-packages huggingface dataset:
be-holder 1.2
A python module for type checking function parameters and returns
License: MIT

# Description:
A python dectorater to enforce type checks on your python functions for your stupid colleagues who pass int type when you clearly told them to pass string.
ヽ(ಠ_ಠ)ノ

You can define parameter and return types for your python functions using type hints (check them out here : https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html) and the watcher decorator over them to handle the dirty work.

Currently we only support positional arguments only and single return types but will add support for keyword arguments and mutiple return types.

Raise and issue in the gitrepo if you find any bugs or need a feature.


## Types Checking Supported for
> Positional Parameters

> Single return types

> User defined data types

# Example

```python

from be_holder import watcher


@watcher
def f():  # Will work as normal
    return "pass"

@watcher
def f1(a:str,b): #Will be typed checked and will raise TypeError if types do not match
    return "pass"
@watcher
def f2(a:str,b:int):
    return "pass":

@watcher
def f3()>str: #Will raise a type error due to return type not matching function definition
    return 1

@watcher    
def f4(a:str)->str:
    return "pass"

if __name__ == "__main__":
    f4(1)
    f2("s",1)
    f2(1,1)
  
```
aiotraceroute 1.0.0
Asynchronous traceroute in python
License: MIT
Keywords: traceroute,async,asyncio

# Simple asynchronous traceroute

Dead simple module which provides asynchronous traceroute with asynchronous dns resolution.

Needs root privileges to be executed (for raw socket)

## Installation
`pip install aiotraceroute`


## Example

```python
import asyncio
from aiotraceroute import aiotraceroute

async def main(dest):
    # print hop by hop
    async for n, addr, host in aiotraceroute(dest):
        print(n, addr, host)

    # Or run it without iterating
    tr = aiotraceroute(dest)
    result = await tr.run()
    print(result)

asyncio.get_event_loop().run_until_complete(main("google.com"))
```
## API
The `aiotraceroute` function takes the following arguments:
  * `dest`: Traceroute destination, can either be a hostname or an IP address.
  * `port`: Destination port (optionnal, default: 33434)
  * `max_hops`: Maximum number of hops before reaching final destination (optionnal, default: 30)
  * `timeout`: Timeout between each hop (optionnal: default: 1s)
  * `packet_size`: Pakcte size in bytes to send each time (optionnal: default: 60)

The `run()` method runs the traceroute and returns a list of tuples containing hop_number, address or None, hostname or None
## Python versions
Python >= 3.6 are supported

## Tests

This project uses `unittest`.
Run `make init` then `sudo make test`