semvec/pypi-packages huggingface dataset:
fire-rpc 0.1.3
turn fire command line to a rpc server
License: MIT
Requires Python: <4.0,>=3.9

# fire-rpc
Turn fire command line into RPC server.


## Installation

```bash
pip install fire-rpc
``` 

## Example
`fire-rpc` provides a built-in echo server to demonstrate how to use it.

To start the echo server, run the following command:

```bash
# Note that the yes command is used to workaround the interactive mode of fire
yes | python -m fire_rpc /echo --port 8000
```

To call the echo server, run the following command:

```bash
url -X POST http://localhost:8000/echo -H "Content-Type: application/json" -d '{"args":["Hello World"]}'
```

The echo server will return the following response:

```json
{"result": {"args": ["Hello World"], "kwargs": {}}}
```
httpx-aiohttptransport 0.2.1
Use `aiohttp` with `httpx` Interface
License: MIT
Requires Python: >=3.9

[![codecov](https://codecov.io/gh/lizeyan/httpx-AIOHttpTransport/graph/badge.svg?token=N0RSAD0V7C)](https://codecov.io/gh/lizeyan/httpx-AIOHttpTransport)
[![PyPI version](https://badge.fury.io/py/httpx-aiohttptransport.svg)](https://badge.fury.io/py/httpx-aiohttptransport)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/httpx-aiohttptransport.svg)](https://pypi.org/project/httpx-aiohttptransport/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/httpx-aiohttptransport.svg)](https://pypi.org/project/httpx-aiohttptransport/)
[![PyPI - License](https://img.shields.io/pypi/l/httpx-aiohttptransport.svg)](https://pypi.org/project/httpx-aiohttptransport/)
[![Code style: black](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)


# Use `aiohttp` with `httpx` Interface

`httpx` has performance issue, especially when working with high concurrency, while `aiohttp` does not.

However, your production code and tests may already heavily rely on `httpx`, making it difficult to migrate to
`aiohttp`.

This repo provides a workaround: take advantage of `httpx`'s custom transport capability to use `aiohttp` for the actual
requests

```shell
pip install httpx-aiohttptransport
```

This package supports:

- transport limits (max connection)
- auth
- proxy
- `respx`. Run `mock_router.set(router.handler)` when you set up the respx mock router (see example). 

Known limitations:

- http2. `aiohttp` does not support http2.
a3py 0.3.0
a3py is a python toolkit.
License: MIT
Requires Python: >=3.10

# a3py

English | [简体中文](README_ZH.md)

`a3py` is a python toolkit.

## 1. Introduction

### Simplified

* Variable naming style conversion
* Date and time conversion
* Environment variables
* Hashlib

### Improved

* Faster json(with ujson)
* Readable

### Practical

* Dynamic
* SingletonMeta
* Signal

## 2. Usage

### Install

```shell script
pip install a3py

```

### Examples

```python
from datetime import date
from a3py.simplified.datetime import date2str
from a3py.improved.json import fast_dumps
from a3py.improved.readable import get_readable_size


if __name__ == "__main__":
    assert date2str(date(2019, 10, 3)) == "2019-10-03"
    assert fast_dumps([1, 2, 3]) == "[1,2,3]"
    assert get_readable_size(1024 * 1024) == "1.0MB"

```
gpiopico 1.2.0
Easy way to connect hardware and use gpio in raspberry pico
License: MIT
Keywords: raspberry-pi pico, rpi-pico

# GPIO CONTROL IN RASPBERRY PI PICO
        ## Hardware control
        
        ### Input Devices
        - Touch Sensor
        - Potenciometer
        - Joystick
        - PIR
        - LM35
        - Nextion Display
        ### Ouput Devices
        - LED
        - Relay
        - Solid state relay
        - Motor DC
        - RGB
        - Servo motor
        ### Descargar paquete
        ```
        pip install gpiopico
        ```
        
        
        ### Blink
        ```python
        from gpiopico import Led
        from utime import sleep
        
        if __name__=='__main__':
            led = Led(pin=0, inverted_logic=True)#common anode
            
            for _ in range(4):
                led.on()
                sleep(1)
                led.off()
                sleep(1)
        
            for pwm in range(256):
              led.pwm_value(pwm)#0-255
              sleep(0.2)
        
        ```
        ### Button
        ```python
        from gpiopico import Led, Button
        from utime import sleep
        
        if __name__=='__main__':
            led = Led(pin=0, inverted_logic=True)#common anode
            button = Button(pin=1)
            
            button.when_pressed = led.on
            button.on_hold = led.off 
            
            while True:
                button.check_state()
        ```