semvec/pypi-packages huggingface dataset:
airdroptest 0.9.3
Telnet command test dubbo
License: MIT
Requires Python: >=3.7.0

### 一、安装（python版本建议3.7以上）

```bash
pip install dubborequests
```
### 二、升级包
```bash
pip install --upgrade dubborequests
```
### 三、示例

#### 获取dubbo服务详情

```python
# 导入
import dubborequests
# 获取dubbo服务详情
data = dubborequests.search('cn.com.xxx.sso.ehr.api.dubbo.SsoEmpInfoService')
```

#### 获取服务下的所有方法

```python
# 导入
import dubborequests
# 获取dubbo服务下的所有方法
data = dubborequests.list('cn.com.xxx.sso.ehr.api.dubbo.SsoEmpInfoService')
# 获取dubbo服务指定的方法
data = dubborequests.list('cn.com.xxx.sso.ehr.api.dubbo.SsoEmpInfoService', 'login')
```

#### 通过zookeeper获取服务的ip和端口, Telnet命令测试dubbo接口

```python
import dubborequests
from dubborequests import Config
# 先配置zookeeper中心地址
Config.zookeeper_url_list = ['192.168.240.15:2181', '192.168.240.15:2182', '192.168.240.15:2183']
invoke_data = {
    "service_name": "cn.com.xxxxx.sso.ehr.api.dubbo.SsoEmpInfoService",
    "method_name": "login",
    "data": {
        "account": "xxxx",
        "password": "xxxx"
    }
}
# 通过zookeeper获取服务的ip和端口, Telnet命令测试dubbo接口
data = dubborequests.zk_invoke(*invoke_data)
```

#### Telnet命令测试dubbo接口

```python
import dubborequests
invoke_data = {
    "ip": 'xxxx',
    "port": 7777,
    "service_name": "cn.com.xxxxx.sso.ehr.api.dubbo.SsoEmpInfoService",
    "method_name": "login",
    "data": {
        "account": "xxxx",
        "password": "xxxx"
    }
}
 # Telnet命令测试dubbo接口
data = dubborequests.telnet_invoke(*invoke_data)
```
genranddata 0.10
a function to create random usernames
License: MIT
Keywords: random,data


# a function to create random usernames

## Tested against Windows / Python 3.11 / Anaconda

## pip install genranddata



```python
Generate random data using a given function and input data, while ensuring uniqueness and handling exceptions.

Parameters:
	fu (callable): The function used to generate new data.
	data (Union[list, tuple]): The input data to be used in the generation process.
	created_already (list): A list of data that has already been created.
	limit (int): The maximum number of new data to be generated.
	**kwargs: Additional keyword arguments to be passed to the function.

Returns:
	list: A list of randomly generated data, with a length not exceeding the specified limit.
```
	


```python

from genranddata import create_random_data, load_data, save_data, genfunction

u = [
    "Agent",
    "Alex",
    "Alonzo",
    "Amon",
    "Angel",
    "Annie",
    "Anton",
    "August",
    "Bane",
    "Buddy",
    "Calvin",
    "Candyman",
    "Captain",
    "Catherine",
    "Chucky",
    "Colin",
    "Commodus",
    "Count",
    "Cruella",
    "Darth",
    "Davy",
    "Deadly",
    "Death",
    "Dolores",
    "Dr",
    "Elijah",
    "Erik",
    "Ernst",
    "Esther",
    "Frank",
    "Freddy",
    "Ghostface",
    "Godzilla",
    "Gollum",
    "Gordon",
    "Gozer",
    "Green",
    "HAL",
    "Harry",
    "Howard",
    "Immortan",
    "Ivan",
    "Jack",
    "Jason",
    "Jigsaw",
    "John",
    "Joker",
    "Judge",
    "Khan",
    "Koba",
    "Lee",
    "Lex",
    "Lil",
    "Lord",
    "Lots",
    "Maleficent",
    "Margaret",
    "Max",
    "Michael",
    "Miranda",
    "Miss",
    "Mrs",
    "Norman",
    "Nurse",
    "Palpatine",
    "Pazuzu",
    "Pennywise",
    "Predator",
    "Queen",
    "Raoul",
    "Regina",
    "Roger",
    "Roy",
    "Sauron",
    "Scar",
    "Shere",
    "Shooter",
    "T",
    "Terence",
    "Thanos",
    "The",
    "Ursula",
    "Vice",
    "William",
    "Xenomorphs",
]
empty = []
save_data(empty, "c:\\testusername.pkl")
already_created = load_data("c:\\testusername.pkl")
gendata = create_random_data(
    fu=lambda x, **kwargs: genfunction(x, **kwargs),
    data=u,
    created_already=already_created,
    limit=10,
    min_=2,
    max_=4,
    camel_case_percentage=20,
    uppercase_percentage=30,
    lowercase_percentage=30,
    join_values=("x", "_", ""),
    random_number_percentage=30,
    random_number_range=(0, 100),
)
print(gendata)
# ['maleficent_xenomorphs_alex_max', 'queenlexantonnorman', 'DarthxJack', 'WilliamMaxRaoulAlonzo', 'MissxIvanxCaptainxMax', 'SAURONFREDDYAGENTDR', 'CAPTAIN_JOHN_ROGER_GREEN', 'JOKERERIKFREDDYESTHER71', 'scar_roger_1', 'T_GHOSTFACE_ANGEL_4']



```