semvec/pypi-packages huggingface dataset:
advice 0.1.0
Aspect-oriented programming
Keywords: aspect oriented programming advice joinpoint patching import decorators logging testing extension

# Advice

[Aspect-oriented programming](https://en.wikipedia.org/wiki/Aspect-oriented_programming)

## Usage

```python
import advice


def multiply(context):
    print(context.args)
    print(context.kwargs)
    yield
    context.result *= 100


advice.register(
    handler=multiply,
    modules=advice.match(equals='math'),
    targets=advice.match(regexp='(sin|cos)')
)
```

Ok, let's check:

```python
In [2]: import math

In [3]: math.cos(0)
(0,)
{}
Out[3]: 100.0
```
get-input 0.0.1
This package allows program to get data iput of a specific type without giving errors

https://github.com/yoptgyo/get_input
Author: Prashant Sengar
Author email: prashantsengar5@hotmail.com

# get_input
Python module to take input of a defined data type from user


# How to use


```python

import get_input

return_value = get_input.input(prompt, data_type)
```




## Data types which can be used:

  -'int' for integer
  -'str' for string

  -'float' for float values




# Example code

`integer_value = get_input.input("Please enter a number: ", 'int')`



```python

>>> Please enter a number: hello

>>> Please enter an integer value.

>>> Please enter a number: 5.0

>>> Please enter an integer value.

>>> Please enter a number: 5

>>>

```



--It will ask the user to enter an integer value and will wait till an integer value is returned--