semvec/pypi-packages huggingface dataset:
nevargs 0.0.5
Formats strings of args into dicts
Requires Python: >=3.6

# nevargs

It's a simple package that using shlex formats your cli-like argument strings and format them into a dict

```py
>>> import nevargs
>>> s = "this is -f True fun -c command"
>>> nevargs.dictify(s)
{'args': ['this', 'is', 'fun'], '-f': ['True'], '-c': ['command']}
```
Arguments with no value are returned under `args` and for each flag found, it's arguments are under `{flag}`
apico 1.1.0
Tool for monitoring changes in RESTful APIs quickly and easily
Requires Python: >=3.9
Keywords: api-wrapper,http,request,api,monitor

# apico [![Badge](https://img.shields.io/pypi/v/apico?color=3776AB&logo=python&style=for-the-badge)](https://pypi.org/project/apico/)  [![Badge 2](https://img.shields.io/pypi/dm/apico?color=3776AB&logo=python&style=for-the-badge)](https://pypi.org/project/apico/)
*The easy way to monitor changes in RESTful APIs.*

## Installation
```
$ pip install apico
```
## Example usage 
```py
from apico import Monitor, Response


monitor = Monitor(url='https://api.github.com/users/itsmewulf', rate=10.0, headers={'Authorization': 'GITHUB_TOKEN'})

@monitor.listener()
def on_change(old, new):
    print('Something changed!')
    
@monitor.listener('no_change')
def nothing_changed():
    print('Nothing changed!')
    
@monitor.listener()
def on_request():
    print('This is called before every request.')
```

## Some reference
### Events
The events supported by the `Monitor.listener` decorator are:
- `change`
- `request`
- `no_change`  

As you can see in the example, listeners can be registered by passing the event name straight to the decorator (`monitor.listener('change')`) or inferred from the function name starting with `on_`:
```py
@monitor.listener()
def on_change(...):
```
### Monitor arguments
The monitor accepts a boatload of arguments, mainly ones that are then passed down to [`requests.Session.request()`](https://docs.python-requests.org/en/latest/api/#requests.Session.request), so, for a detailed insight follow the hyperlink or read the docstring.

### Returns
The responses returned by apico are actually instances of [`requests.Response`](https://pypi.org/project/requests/)

### Rate
The rate at which the Monitor sends requests is controlled via the `rate` parameter, which is either an integer, or a float - `33` is a request every 33 seconds, `0.5` is 2 requests every second.

_________________
## Reporting Issues
If you find any error/bug/mistake with the package or in the code feel free to create an issue and report
it [here.](https://github.com/itsmewulf/apico/issues)

## Fix/Edit Content
If you wish to contribute to this package, fork the repository, make your changes and then simply create a Pull Request!
mptimer 0.0.0.0.0.5
Timer is module ported from micropython's machine.Timer and adapted to work with Python
Requires Python: >=3.6

# Timer
Version 1.0
## Description
Timer is module ported from micropython's ```machine.Timer``` and adapted to work with Python

## Timer(tid)
Returns a timer object with the folowing functions
### init(period,mode,interrupt,callback)
Sets the timers data  
#### period (int): 
timer length in milliseconds.  
#### mode (var):
Can be the folowing  
- ```Timer.ONE_SHOT```: A timer that only runs once
- ```Timer.PERIODIC```: A timer that runs forever until deinitalized
#### interrupt (bool)
*Defaults to ```False```*  
Whether to interupt main before executing callback  
#### callback (object)
The function to call when the timer is finished.
### cancel()
Cancels the timer and waits to be re-initalized
### start()
Starts the timer
### pause()
Pauses the timer
### reset()
Restarts the timer from 0
### deinit()
Kills the timer and removes it form memory.
### dump()
Kills the timer while keeping its data in memory.
### setCallback(callback)
Set's the timers callback.
#### callback (object)
The function to call when the timer is finished.
### status()
Returns the timer status
## Constants
- ```Timer.ONE_SHOT```: A timer that only runs once
- ```Timer.PERIODIC```: A timer that runs forever until deinitalized
- ```Timer.NOT_RUNNING```: The timer is not started
- ```Timer.PAUSED```: The timer is paused
- ```Timer.FINISHED```: The timer is finished
- ```Timer.DUMPED```:The timer was dumped