semvec/pypi-packages huggingface dataset:
r-useragent 1.1
generate random user-agent
Requires Python: >=3.6

##  random-useragent

This is a package to generate random user-agent. support simulating windows, linux, mac, android and simulating multiple browser clients.

## how to install

```bash
python3 -m pip install r-useragent
```

##  how to use

reference examples folder

```
from random_useragent import UserAgent

u = UserAgent()

# generate android user-agent
print(u.android())  # random
print(u.android(app="app"))
print(u.android(app="webview"))
print(u.android(app="uc"))
print(u.android(app="baidu"))
print(u.android(app="qq"))
print(u.android(app="wechat"))


# generate iphone user-agent
print(u.iphone())
print(u.iphone(app="chrome"))
print(u.iphone(app="safari"))


# generate windows user-agent from chrome,firefox,edge...
print(u.windows())  # random
print(u.windows(app="chrome"))
print(u.windows(app="firefox"))
print(u.windows(app="edge"))

# generate linux user-agent
print(u.linux())
print(u.linux(app="chrome"))
print(u.linux(app="firefox"))


# generate mac user-agent
print(u.mac())
print(u.mac(app="chrome"))
print(u.mac(app="firefox"))
print(u.mac(app="safiri"))

# and if you want, you can just generate random ua
print(u.random())

# or designated platform
print(u.pc())
```
modbus-scanner 1.0.2
Scanner For Modbus RTU and TCP/IP
Requires Python: >=3.8

# **Modbus Scanner**

### For RTU mode, you need to specify the serial port and baud rate.

    modbus_scanner -r 0 -f 3 -i 1 -e 10 -c rtu -h COM9 -b 9600 -s 1 -d 8 -p N -t 10

**OR**

### For TCP mode, you need to specify a host and port.

    modbus_scanner -r 0 -f 3 -i 1 -e 10 -c tcp -h 192.168.1.10 -l 502



- --register or -r : Register number to start scanning from. **Default is 0**.
- --fc or -f : Function code to use. **Default is 3**. 
- --start or -i : Starting address to scan from. **Default is 1**.
- --end or -e : Ending address to scan to. **Default is 254**.
- --conn_type or -c : Connection type to use. **Default is rtu**.
- --device or -h : Device to connect to. **(Required)**.

### Note: For RTU mode, this is the serial port. For TCP mode, this is the IP address.

- --port or -l : Port to connect to. **Default is 502**.
- --baud or -b : Baud rate to use. **Default is 9600**.
- --stop or -s : Stop bits to use. **Default is 1**.
- --data or -d : Data bits to use. **Default is 8**.
- --parity or -p : Parity to use. **Default is N**.
- --timeout or -t : Timeout to use. **Default is 60**.