semvec/pypi-packages huggingface dataset:
citydata 0.0.4
get the Chinese city data
Requires Python: >=3.8

* 包介绍：Python语言的身份证前6位行政区划代码与地区名称对应。通过传入省市县（区）完整名称返回地区代码。

* PIP安装：```pip install citydata```

* 地区信息 json/dict 组成示例：

  ```json
            {
            "id": "110101",
            "name": "东城区",
            "parentId": "110100",
            "shortName": "",
            "letter": "",
            "cityCode": "",
            "pinyin": ""
        }
  ```

* API函数代码

  ```python
    # args 最多接受三个参数，顺序依次为省、市、县（区）
    def get_city_id(self, *args) -> tuple[str, ...]:
        if not args or len(args) > 3:
            raise ValueError("参数错误")
        # 一个参数，省级/市级/县（区）级
        # 因存在重名县（区），不建议直接查询县（区）级
        if len(args) == 1:
            province = args[0]
            for area in self.cityData:
                if area['name'] == province:
                    province_id = area['id']
                    return province_id, 
            raise ValueError("未能找到对应的行政区划代码，请检查参数")
        
        # 两个参数，省市两级或市县（区）级两级
        elif len(args) == 2:
            province, city = args
            province_id = "0"
            for area in self.cityData:
                if area['name'] == province:
                    province_id = area['id']
                    continue
                if area['name'] == city and area['parentId'] == province_id:
                    city_id = area['id']
                    return province_id, city_id
            raise ValueError("未能找到对应的行政区划代码，请检查参数")

        # 三个参数，省市县(区)三级
        else:
            province, city, county = args
            province_id, city_id = "0", "0"
            for area in self.cityData:
                if area['name'] == province:
                    province_id = area['id']
                    continue
                if area['name'] == city and area['parentId'] == province_id:
                    city_id = area['id']
                    continue
                if area['name'] == county and area['parentId'] == city_id:
                    county_id = area['id']
                    return province_id, city_id, county_id
            raise ValueError("未能找到对应的行政区划代码，请检查参数")
  
  ```

  

* 引用举例

  ```python
  from citydata import CityData
  city_data = CityData()
  city_ids = city_data.get_city_id('河北省','石家庄市','裕华区')  # 包含省\市\县（区）字样的完整行政区名，否则找不到结果
  province_id = city_ids[0] # 130000 (str)
  city_id = city_ids[1] # 130100 (str)
  county_id = county_id[2] # 130108 (str)
  ```

  

* TODO
  - 城市简称
  - 邮政编码
  - 城市拼音
monsh 1.0.3
This package contains the client side script for mon.sh which allows you to sync your command output to the cloud.

# Monsh
Monsh is the python client script for [mon.sh](https://www.mon.sh), a service
which allows you to monitor and notify on long running shell commands from the web.

## Setup
To use the script effectively you would need to use an account on mon.sh, refer to the 
[quickstart guide](https://www.mon.sh/help/quickstart) for more information.

To configure the script initially with an API key, use `mon configure`.

## Usage
To use the script, simply pipe the command output of your script to the `mon`
command (or `monsh` if you prefer.)

```
python3 -c "import time; [print(i) or time.sleep(1) for i in range(20)]" |& mon
```

You can use `|` or `|&`, the latter also pipes the stderr output which is 
recommended. Note that the client works on multiple platforms but works best
on *nix type shells. While you can pipe output in powershell, the stderr
pipping does not work as easily.

### Options
* -w allows you to specify the workspace. A workspace is a virtual organization
structure for all jobs. If not specific everything falls into the default 
workspace. All event notification configuration happens at the workspace level.
* -k allows you to specify the API key for usage. If provided this overrides 
the API key in the config file that is setup via `mon configure`
* -l allows you to specify the log levels for the mon script itself. For example
you can use `mon -l DEBUG` to get additional information from the mon script.
WZCMCCAPPLOGGER 0.0.9
LOG


For CMCC  APP记录用的

```angular2
使用说明:

import  WZCMCCAPPLOGGER;

使用方法:
1.安装 python -m pip install WZCMCCAPPLOGGER
2.
#WZCMCCAPPLOGGER.url="192.168.5.103:82" 默认
WZCMCCAPPLOGGER.InsertLog("[APPID]","[loginfo]");

url 可以选参数 可以输入 10.77.18.248:82 OA网段
192.168.5.103:82 内网网段
10.212.194.197:82 DCN网段



```
pyhtmltext 0.1
Usefull tool for extracting text and sentences from html
Requires Python: >=3.6


# pyhtmltext

pyhtmltext is a usefull and flexible tool for extracting text from html.

# Help
See [documentation](docs/USAGE.md) for more details.

# Installation
```
  pip install pyhtmltext
```

# Simple usage
```
  from pyhtmltext import Extractor


  html_string = '''<h2 class="widget-title"><span aria-hidden="true" class="icon-get-started"></span>Getting Started</h2><p>Python can be easy to pick up whether you're a first time programmer or you're experienced with other languages. The following pages are a useful first step to get on your way writing programs with Python!</p>'''

  extractor = Extractor(html=html_string)

  # Extracting whole text from html with separator
  extractor.extract_text()
  #> "Getting Started|separator|Python can be easy to pick up whether you're a first time programmer or you're experienced with other languages. The following pages are a useful first step to get on your way writing programs with Python!"

  # Extracting sentences from html
  extractor.extract_sentences()
  #> ['Getting Started', "Python can be easy to pick up whether you're a first time programmer or you're experienced with other languages.", 'The following pages are a useful first step to get on your way writing programs with Python!']
```