Saravanan666/pypi-org huggingface dataset:
Package: chimprewriter
Chimp Rewriteris an online
service for spinning text (synonym substitution) that creates unique version(s)
of existing text. This package provides a way to easily interact withChimpRewriter API.
Usage requires an API subscription,get it here.Source code @ GitHubInstall within virtualenv$virtualenvfoo$cdfoo$gitclonehttps://github.com/niteoweb/chimprewriter$bin/pipinstallchimprewriter/# running tests:$bin/pipinstallunittest2mock$bin/python-munittestdiscover-schimprewriter/src/chimprewriter/testsBuildout$gitclonehttps://github.com/niteoweb/chimprewriter$cdchimprewriter$pythonbootstrap.py$bin/buildout# running tests:$bin/py-munittestdiscover-ssrc/chimprewriter/tests# check code for imperfections$bin/vvvsrc/chimprewriterUsage>>>importchimprewriter>>>cr=chimprewriter.ChimpRewriter("<youremail>","<yourapikey>","<yourappname>")>>>cr.text_with_spintax(text="My name is Ovca!")"{I am|I'm|My friends call me|Throughout southern california|Im} Ovca!">>>cr.unique_variation(text="My name is Ovca!")"Im Ovca!"Changelog0.1 (2013-04-05)ChimpRewriter class.
[Matej Cotman]Tests and documentation.
[Matej Cotman]License (3-clause BSD)Copyright (c) 2012, NiteoWeb Ltd.
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.Neither the name of NiteoWeb Ltd. nor the names of its contributors may
be used to endorse or promote products derived from this software
without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL NITEOWEB LTD. BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: china
:rocket: Yuan :facepunch:数据不是创造规律,而是展示那些原本的规律https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/82055#479196CompetitionsInstallpip install YuanUsagefrom yuan.pipe import *@Xdefxfunc1(x):_=x.split()print(_)return_@Xdefxfunc2(x):_='>>'.join(x)print(_)return_'I am very like a linux pipe'|xfunc1|xfunc2xtqdmxfilter / xmap / xsort / xreduceiterable|xfilter(lambdax:len(x)>1)|xmap(str.upper)|xsort|xreduce(lambdax,y:x+'-'+y)'AM-LIKE-LINUX-PIPE-VERY'xsummaryiterable|xsummarycounts7uniques7missing0missing_perc0%typesuniqueName:iterable,dtype:object...
Package: chinaAQI
#coding:utf8Description:The chinaAQI means china city Air Quality Index which is announced by china governmenteverday since 1st.Jan.2014.Each row contains six elements:(1.number 2.city name 3.date       4.air quality index 5.air quality degree 6.primary pollutan)'1',       '������',  '2015-12-28', '149',                 '�����Ⱦ',          'PM2.5'How to use:Python version: 3.0 or abovepip install chinaAQIimport datetimeimport chinaAQIcity = '������'start = datetime.date(2015,1,1)end = datetime.date(2016,1,1)crawler = chinaAQI.Crawler(city, start, end)crawler.scrapy()print(crawler.data)Conntact me:ludlows@foxmail.comhttps://github.com/ludlows/chinaAQI
Package: chinaarea
说明一个省 -> 多个市，一个市 -> 多个县一个县 -> 多个市， 一个市 -> 多个省备注：县级名称单位可能会重复， 返回所有查到的市级单位来源：国家统计局 2017年统计用区划代码和城乡划分代码(截止2017年10月31日)地址：http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2017/index.html范围：省 - 市 - 县/区快速开始pip install chinaareapypi地址https://pypi.org/project/chinaarea/项目结构chinaarea/
    │  chinaarea.py              # 项目主文件
    │  README.md                 # 说明文件
    │  scrapy.cfg                # scrapy配置文件
    │  __init__.py
    │
    └─stats_spider/             # 抓取数据的scrapy爬虫文件
        │  china_area.sqlite    # 数据保存的sqlite数据库文件
        │  items.py
        │  middlewares.py
        │  models.py
        │  pipelines.py
        │  settings.py
        │  __init__.py
        │
        ├─spiders/             # 抓取数据的爬虫
               area_spider.py
               __init__.py代码示例>>>fromchinaareaimportChinaArea>>>ca=ChinaArea()# 获取所有省份>>>ca.get_provinces()['北京市','天津市','河北省','山西省','内蒙古自治区','辽宁省','吉林省','黑龙江省','上海市','江苏省',,'河南省','湖北省','湖南省','广东省','广西壮族自治区','海南省','重庆市','四川省','贵州省','云南省'夏回族自治区', '新疆维吾尔自治区', '台湾省', '香港特别行政区', '澳门特别行政区']# 查找省份名中含有 “山”>>>ca.get_provinces("山")['山西省','山东省']# 查找城市中含有 “大理”>>>ca.get_cities("大理")['大理白族自治州']# 查找县/区中含有 "洛阳">>>ca.get_counties("洛阳")['洛阳高新技术产业开发区']# 通过省份中含有 “河南” 的城市>>>ca.get_cities_by_province("河南")['郑州市','开封市','洛阳市','平顶山市','安阳市','鹤壁市','新乡市','焦作市','濮阳市','许昌市','漯河'周口市', '驻马店市', '河南省直辖县']# 判断是否是一个省份名称，必须是中国行政区域划分中的名称，每个字都要一样>>>ca.is_province("北京")False>>>ca.is_province("北京市")True# 查找字符串中含有省，市，县/区>>>ca.find_areas("深圳市腾讯计算机系统有限公司"){'provinces':set(),'cities':{'深圳市'},'counties':set()}# 显示所有省份，城市，县/区forprovinceinca.get_provinces():print("###%s###"%province)forcityinca.get_cities(province):print("#%s"%city)forcountyinca.get_counties(city):print("*%s"%county)说明get_*，find_*都是模糊查找is_*都是绝对判断
Package: chinacapi
ChinacApi 星界链API星界链OpenApiPython SDK支持获取云手机列表获取云手机详情重启云手机开启/关闭云手机获取云手机ADB白名单IP列表设置云手机ADB白名单IP获取本机在星界链的公网IP安装pipinstallchinacapi-ihttps://pypi.tuna.tsinghua.edu.cn/simple使用你需要先在星界链控制台申请访问密钥。fromchinacapi.cloud_phone_regionimportCloudPhoneRegionfromchinacapi.entity.cloud_phoneimportCloudPhonefromchinacapi.chinac_apiimportChinacApi# 创建 ChinacApi 实例ca=ChinacApi('your_access_key','your_access_secret')cpa=ca.cloud_phone_api# 云手机API# 列出所有云手机cpl=cpa.list_cloud_phone()forcpincpl:print(cp)# 通过ID构造云手机对象cp=CloudPhone({'id':'cp-xxxxxxxxxxxxxx','region':CloudPhoneRegion.SZ,})# 获取云手机详情print(cpa.describe_cloud_phone(cp.region,cp.id))# 列出云手机ADB白名单ips=cpa.list_cloud_phone_adb_white_ip(CloudPhoneRegion.SZ)print(ips)# 获取本机在星界链的公网IPmy_ip=ChinacApi.get_request_ip()print(my_ip)# 设置云手机ADB白名单print(cpa.set_cloud_phone_adb_white_ip(CloudPhoneRegion.SZ,list(set(ips+my_ip))))ips=cpa.list_cloud_phone_adb_white_ip(CloudPhoneRegion.SZ)print(ips)print(cpa.reboot_cloud_phone(cp))# 重启云手机print(cpa.start_cloud_phone(cp))# 开启云手机print(cpa.stop_cloud_phone(cp))# 关闭云手机更新日志
Package: china-cities
china_citiesIntroductionchina_citiesis a python package to list Chinese cities and provinces. The cities
can be retrieved in English or Chinese language.The data is based onwikipediaas a sourceInstallationInstall with pipRunpip install china-citiesInstall from sourcegit clone https://github.com/boeboe/china-cities.gitRunpython setup.py installRun testsRunmake testsUpdate source when wikipedia changedRunmake generateUsageSome examples on how to use this package.fromchina_citiesimport*forcityincities.get_cities():print("english name:",city.name_en)print("chinese name:",city.name_cn)print("province:    ",city.province)forcity_enincities.get_cities_en():print(city_en)forcity_cnincities.get_cities_cn():print(city_cn)forprovinceincities.get_provinces():print(province)forprovince_cityincities.get_cities_by_province("Anhui"):print(province_city.name_en)
Package: chinacoordtran
chinacoordtranPython 版本百度坐标（BD09）、国测局坐标（火星坐标，GCJ02）和WGS84坐标相互转换运行环境支持Python2.X 和Python3.X安装方式pipinstallchinacoordtran引用方式fromchinacoordtranimportgcj02towgs84fromchinacoordtranimportwgs84togcj02fromchinacoordtranimportgcj02tobd09fromchinacoordtranimportbd09togcj02fromchinacoordtranimportCoordTran目录坐标转换类gcj02towgs84类gcj02towgs84调用示例wgs84togcj02类wgs84togcj02调用示例gcj02tobd09类gcj02tobd09调用示例bd09togcj02类bd09togcj02调用示例坐标转换CoordTran类方法gcj02towgs84方法wgs84togcj02方法gcj02tobd09方法bd09togcj02方法坐标转换类gcj02towgs84类fromchinacoordtranimportgcj02towgs84gcj02towgs84Instance=gcj02towgs84()gcj02towgs84调用示例fromchinacoordtranimportgcj02towgs84gcj02towgs84Instance=gcj02towgs84()result=gcj02towgs84Instance.CoordTran(121.467152,31.235441)wgs84togcj02类fromchinacoordtranimportwgs84togcj02wgs84togcj02Instance=wgs84togcj02()wgs84togcj02调用示例fromchinacoordtranimportwgs84togcj02wgs84togcj02Instance=wgs84togcj02()result=wgs84togcj02Instance.CoordTran(121.467152,31.235441)gcj02tobd09类fromchinacoordtranimportgcj02tobd09gcj02tobd09Instance=gcj02tobd09()gcj02tobd09调用示例fromchinacoordtranimportgcj02tobd09gcj02tobd09Instance=gcj02tobd09()result=gcj02tobd09Instance.CoordTran(121.467152,31.235441)bd09togcj02类fromchinacoordtranimportbd09togcj02bd09togcj02Instance=bd09togcj02()bd09togcj02调用示例fromchinacoordtranimportbd09togcj02bd09togcj02Instance=bd09togcj02()result=bd09togcj02Instance.CoordTran(121.467152,31.235441)坐标转换CoordTran类方法gcj02towgs84方法fromchinacoordtranimportCoordTrancoordTranInstance=CoordTran()coordTranInstance.gcj02towgs84(121.467152,31.235441)wgs84togcj02方法fromchinacoordtranimportCoordTrancoordTranInstance=CoordTran()coordTranInstance.wgs84togcj02(121.467152,31.235441)gcj02tobd09方法fromchinacoordtranimportCoordTrancoordTranInstance=CoordTran()coordTranInstance.gcj02tobd09(121.467152,31.235441)bd09togcj02方法fromchinacoordtranimportCoordTrancoordTranInstance=CoordTran()coordTranInstance.bd09togcj02(121.467152,31.235441)
Package: chinadaily
ChinaDailyProjectDownload China Daily newspaper PDFFree software: GNU General Public License v3Documentation:https://chinadailyproject.readthedocs.io.Installation and UpgradeInstallation:pip install chinadailyUpgrade:pip install –upgrade chinadailyUsageDownload today’s China Daily newspaper:chinadailyDownload specific date’s newspaper (eg 2020-10-10):chinadaily 20201010How to Developmentafter development, do the following steps:run test:python setup.py testinstall a local development version:python setup developrelease a new version:python setup.py sdist uploadFeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-07-05)First release on PyPI.0.1.6 (2020-10-11)Auto-remove temp filesRelease first runnable version0.1.7 (2020-10-13)Support download specified date, default is today0.1.8 (2020-10-14)Support download multi specified date, default is today0.1.9Support download specific month(-m/–month) and year(-y/–year) newspaper
Package: chinadailyproject
ChinaDailyProjectDownload China Daily newspaper PDFFree software: GNU General Public License v3Documentation:https://chinadailyproject.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-07-05)First release on PyPI.
Package: china-datasets
china-dataset有没有找不到中文数据集，有没有找到中文数据集下载缓慢，下载了数据集每次都要根据不同的框架写不同的预处理逻辑的痛苦。
这个包帮你搞定这些！不用等了很久，结果 Timeout不用每次写不同的数据预处理代码快速使用pipinstallchina-datasetsfromchina_datasetsimportload_dataset,list_datasets# 打印支持的数据集print(list_datasets())# 加载数据及并打印并第一个样本hotel_review=load_dataset('hotel-review')print(hotel_review['train'][0])# 处理数据集 - 给每个样本增加一个文本长度的特征hotel_review=hotel_review.map(lambdax:{"length":len(x["text"])})# 结合 transformers 库，快速使用各种模型处理任务fromtransformersimportAutoTokenizertokenizer=AutoTokenizer.from_pretrained('bert-base-cased')tokenized_dataset=hotel_review.map(lambdax:tokenizer(x['text']),batched=True)目前支持数据集数据集介绍hotel-review【英文】酒店评价情感分析imdb【英文】电影评论情感分析new-title-chinese【中文】新闻标题chinese-hotel-review【中文】携程酒店评价情感分析dbms【中文】豆瓣电影评论、打分数据ez-douban【中文】豆瓣电影信息、打分、评论waimai-review-10k【中文】外卖评价数据 10k 条，正负两种情绪weibo-senti-100k【中文】微博情感分析 100k 条，正负两种情绪simplifyweibo-4-moods【中文】微博情感分析，喜悦、愤怒、厌恶、低落四种情绪eshopping-10-cats【中文】电商 10 中商品，正负情感squad【英文】Stanford Question Answering Dataset (SQuAD)如果你有数据集，希望也能快速使用，请联系作者zhagnchunyang_pri@126.com。存储空间有限，先到先得！ROADMAP每个版本详细的变更日志release notes.协议Apache LicenseCopyright on (c) 2022-present CYang
Package: china-district
china_districtchina_district是根据关键词获取行政区域信息的python库。是对高德地图开放平台的行政区域查询接口进行了封装。安装pip install china-district依赖库requests=2.22.0基础使用示例基础使用，默认使用作者自己的高德地图开发者key，每天上限调用30万次。超过这个限制将无法使用。>>> In [1]: from china_district import District
# 初始化District,默认只返回下一级行政区，不返回行政区边界坐标点
>>> In [2]: d=District()

>>> In [3]: d.get("武侯区")
{'status': '1',
 'info': 'OK',
 'infocode': '10000',
 'count': '1',
 'suggestion': {'keywords': [], 'cities': []},
 'districts': [{'citycode': '028',
   'adcode': '510107',
   'name': '武侯区',
   'center': '104.05167,30.630862',
   'level': 'district',
   'districts': [{'citycode': '028',
     'adcode': '510107',
     'name': '金花桥街道',
     'center': '103.973,30.6029',
     'level': 'street',
     'districts': []},
……}
# 将当前搜索结果(json对象)写入到当前目录，默认文件名"搜索关键词.json"
>>> d.to_json("武侯区")
	写入本地完成...​高级使用示例>>> In [1]: from china_district import District
# 初始化District,key为高德地图开发者key,subdistrict设置显示下级行政区级数，extensions设置行政区信息中是否返回行政区边界坐标点，”base"不返回，“all"返回

>>> In [5]:d = District(key="182ad5d7061ed1e421091c22089c3677",subdistrict=3,extensions="all")

Out[6]: 
{'status': '1',
 'info': 'OK',
 'infocode': '10000',
 'count': '1',
 'suggestion': {'keywords': [], 'cities': []},
 'districts': [{'citycode': '028',
   'adcode': '510107',
   'name': '武侯区',
   'polyline': '103.949841,30.658586;103.949928,30.658864;103.950137,30.659044;103.950415,30.659121;103.950667,30.6591;103.952425,30.658587;103.952869,30.658525;103.95333,30.658589;103.953
687,30.658726;103.953966,30.658948;103.954261,30.659335;103.954984,30.660906;103.955149,30.661113;103.955472,30.661348;103.95575,30.661423;103.956107,30.661436;103.957439,30.661364;103.957……```}请求参数说明参数名含义规则说明是否必须缺省值key请求服务权限标识用户在高德地图官网申请Web服务API类型KEY可选无keywords查询关键字规则：只支持单个关键词语搜索关键词支持：行政区名称、citycode、adcode例如，在subdistrict=2，搜索省份（例如山东），能够显示市（例如济南），区（例如历下区）adcode信息可参考城市编码表获取可选无subdistrict子级行政区规则：设置显示下级行政区级数（行政区级别包括：国家、省/直辖市、市、区/县、乡镇/街道多级数据）可选值：0、1、2、3等数字，并以此类推0：不返回下级行政区；1：返回下一级行政区；2：返回下两级行政区；3：返回下三级行政区； 需要在此特殊说明，目前部分城市和省直辖县因为没有区县的概念，故在市级下方直接显示街道。例如：广东-东莞、海南-文昌市可选1extensions返回结果控制此项控制行政区信息中返回行政区边界坐标点； 可选值：base、all;base:不返回行政区边界坐标点；all:只返回当前查询district的边界值，不返回子节点的边界值；目前不能返回乡镇/街道级别的边界值可选base了解更多高德地图行政区域查询接口：https://lbs.amap.com/api/webservice/guide/api/districtLicenseLicensed under the MIT License.
Package: chinadns
A DNS forwarder that ignores incorrect(you know it) responses.Installpip install chinadnsoreasy_intall chinadnsUsageRunsudo chinadnson your local machine. ChinaDNS creates a DNS
server at127.0.0.1:53.Set your DNS to 127.0.0.1 and you’re done.$ nslookup www.youtube.com
Server:     127.0.0.1
Address:    127.0.0.1#53

Non-authoritative answer:
www.youtube.com canonical name = youtube-ui.l.google.com.
youtube-ui.l.google.com canonical name = youtube-ui-china.l.google.com.
Name:   youtube-ui-china.l.google.com
Address: 173.194.72.102
Name:   youtube-ui-china.l.google.com
Address: 173.194.72.101
Name:   youtube-ui-china.l.google.com
Address: 173.194.72.113
Name:   youtube-ui-china.l.google.com
Address: 173.194.72.100
Name:   youtube-ui-china.l.google.com
Address: 173.194.72.139
Name:   youtube-ui-china.l.google.com
Address: 173.194.72.138Advanced$ chinadns -h
usage: chinadns [-h] [-b BIND_ADDR] [-s DNS]

Forward DNS requests.

optional arguments:
  -h, --help            show this help message and exit
  -b BIND_ADDR, --local_address BIND_ADDR
                        address that listens, default: 127.0.0.1
  -s DNS, --dns DNS     DNS server to use, default: 8.8.8.8LicenseMITBugs and IssuesPlease visitIssue
TrackerMailing list:http://groups.google.com/group/shadowsocks
Package: china-idiom
成语与成语接龙查询工具（Python 版）用于成语接龙。关于GitHub:https://github.com/sfyc23/China-idiomPyPI:https://pypi.org/project/china-idiom/Python version: >= 3.5License: MIT license特性用于玩转成语接龙的种种方法。安装$ pip install china-idiom升级$ pip install -U china-idiom依赖库pandas>=0.23.4使用示例首先导入库import china_idiom as idiom1. 判断一个词是否是成语。idiom.is_idiom('一心一意')
>>> True2.  搜索成语功能说明：search_idiom(word, position=0, count=1, is_detail=False)
    :param word: str,关键词
    :param position: int, 所在位置，默认为：0
    :param count: int ，返回最大数量 默认为： 1
    :param is_detail: bool,是否返回详细内容（包括：拼音，拼音缩写，解释，来源，造句）
    :return: list实用式例 1：简单查询idiom.search_idiom(word='猪')
>>> ['指猪骂狗']实用式例 2：查询成语第 2 个字是『心』的成语，最大查询数量为 2, 返回详细内容。idiom.search_idiom(word='心', position=2, count=2, is_detail=True)
>>> 
[{'word': '热心快肠',
  'pinyin': 'rè xīn kuài cháng',
  'abbreviation': 'rxkc',
  'explanation': '形容热情直爽。',
  'derivation': '柯岩《奇异的书简·东方的明珠三》也许因为是她热心快肠，群众有事爱找她拿主意，帮个忙。”',
  'example': '无'},
 {'word': '人心大快',
  'pinyin': 'rén xīn dà kuài',
  'abbreviation': 'rxdk',
  'explanation': '快痛快。指坏人坏事受到惩罚或打击，使大家非常痛快。',
  'derivation': '明·沈德符《万历野获编·立枷》东山受恩反噬，其罪盖浮于诸龙光。当时人心大快，佐以此得缙绅闻声，然亦不云立枷。”',
  'example': '无'}]3. 成语接龙功能说明：def next_idioms_solitaire(word, count=1, heteronym=True, smaller=False):
    """
    :param word: str, 成语
    :param count: int, 返回数量
    :param heteronym: bool,是否可以使用同音字
    :param smaller: bool, 是否选择尽可能的少的后续
    :return: list
    """式例代码 1 :idiom.next_idioms_solitaire('一生一世')
>>> ['逝将去汝']式例代码 2 ：idiom.next_idioms_solitaire('一生一世', count=3, heteronym=False)
>>> ['世态炎凉', '世代书香', '世上无难事']代码说明：获取可接『一生一世』的成语。返回最大数量为 3。不能用于同音字。4. 判断两个成语是否能接龙。示例代码：idiom.is_idiom_solitaire('一生一世', '逝将去汝')
>>> True

idiom.is_idiom_solitaire('一生一世', '生生世世')
>>> False5. 自动接龙模式。输入一个汉字或者成语，程序自动输出一组成语接龙的结果。功能说明：def auto_idioms_solitaire(word, max_count=10, heteronym=True):
    """
    自动接龙模式 - 输入一个汉字或者成语，程序自动输出一组成语接龙的结果。
    :param word: str 起始汉字或者成语。
    :param max_count: int, 最大长度。默认最大长度：20。
    :param heteronym: bool, 是否可以用同音字。默认 True。
    :return: list
    """示例代码：idiom.auto_idioms_solitaire('一生一世')
>>>
["一生一世", "适心娱目", "目兔顾犬", "犬马之力", "立时三刻", "刻意经营", "蝇粪点玉", "鬻驽窃价", "驾轻就熟", "熟路轻辙"]资源文件源数据来源：https://github.com/pwxcoo/chinese-xinhua。经过大量较正后，得到下一份数据：idiom.csvLinceseMIT License

Copyright (c) 2019  Thunder Bouble
Package: china-region
中国地区邮编经纬度/工具（Python 版）根据省市区获取中国经纬度和邮编关于GitHub:https://github.com/sfyc23/China-zip-code-latitude-and-longitudeLicense: MIT licensePyPI:https://pypi.org/project/china-region/Python version: >= 3.5特性根据省市区获取经纬度和邮编。安装$ pip install china-region依赖库pandas>=0.23.4升级$ pip install -U china-region使用示例# 获取满足条件的所有地址
    >>> import china_region
    >>> china_region.search_all(county='华安')
    [{'province': '福建省', 'city': '漳州市', 'county': '华安县', 'longitude': 117.53, 'latitude': 25.02, 'zipCode': '363800'}]
    >>> china_region.search_all(province='福建省',city='华安')
    [{'province': '福建省', 'city': '漳州市', 'county': '华安县', 'longitude': 117.53, 'latitude': 25.02, 'zipCode': '363800'}]
    >>> china_region.search_all(province='贵州',city='贵阳',county='白云')
    [{'province': '贵州省', 'city': '贵阳市', 'county': '白云区', 'longitude': 106.65, 'latitude': 26.68, 'zipCode': '550014'}]

    # 获取满足条件的第一个地址
    >>> china_region.search('辽宁 铁岭')
    {'province': '辽宁省', 'city': '铁岭市', 'county': '铁岭市', 'longitude': 123.83, 'latitude': 42.28, 'zipCode': '112000'}

    # 获取一个随机的地址
    >>> china_region.sample()
    {'province': '山西省', 'city': '临汾市', 'county': '洪洞县', 'longitude': 111.67, 'latitude': 36.25, 'zipCode': '041600'}资源文件region.csvregion.txtregion.json北京市	北京市	北京市	116.4	39.9	100000
北京市	北京市	东城区	116.42	39.93	100010
北京市	北京市	西城区	116.37	39.92	100032
北京市	北京市	崇文区	116.43	39.88	100000
北京市	北京市	宣武区	116.35	39.87	100000
北京市	北京市	朝阳区	116.43	39.92	100020
北京市	北京市	丰台区	116.28	39.85	100071相似项目:https://github.com/radiocontroller/china-locationLinceseMIT License

Copyright (c) 2019  Thunder Bouble
Package: china-region-data
中国行政区域数据根据中华人民共和国民政部中的数据处理而成。由于时间跨度过长（从 1980 年至今），故而部分地区的名称或行政级别已经发生改变，本仓库的存储原则为“编码唯一，以新换旧”。即同一个行政编码，认定为同一个地区，地区名称以民政部门最新公开的行政区域划分数据中的名称为准。且，为保持向前兼容，一些过去存在但后来去除的行政区域编码，本仓库仍然保留，以方便一些古旧的数据能正常使用。安装pipinstallchina-region-data样例fromchina_region_dataimportRegion广东=Region("广东省")深圳=Region("广东省深圳市")南山=Region("广东省深圳市南山区")assert广东.name=="广东省"assert广东.level==1for广东城市in广东.subordinate:assert广东城市.level==2assert深圳.superior==广东assert南山.superior.superior==广东assert南山in南山.superiorassert南山in南山.superior.superior北京=Region("110000")assert北京.name==北京.fullname=="北京市"assert北京notin广东
Package: chinaski
chinaskiDetect email addresses in files.
A tribute to the novelPost Officefrom Charles Bukowski.InstallationUse the package managerpipto install chinaski.pipinstallchinaskiUsageAs CLIUsage: python -m chinaski [OPTIONS] PATH_TO_FILE_OR_DIR

  Detect emails addresses in files.

  PATH_TO_FILE_OR_DIR: Path to single file or directory to scan.

Options:
  --help  Show this message and exit.Example:# Detect in only 1 filepython-mchinaski./file.txt# Detect in a directorypython-mchinaskipath/to/dirInside your codefromchinaski.henryimportcoreif__name__=='__main__':core("file.txt")ContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseGPLv3
Package: china-stock
Author:Hao LiuInstall$ pip install china-stockUseImport china-stock module:>>> import chinastock as csGet stock prices information on nearest trading day:>>> cs.get_stock_today(code='000001', exchange='SZ')Get historical stock close prices:>>> cs.get_stock_history(code='000001', exchange='SZ')Get stock’s adjusted close prices, open, high, low, volume, and change:>>> cs.get_stock_history_adj(code='000001', exchange='SZ')Update07/14/2015:Addget_stock_historyandget_stock_history_adjmethodsget_stock_todaymethod return strings, notdatetime
Package: chinatime
Usagepip3 install chinatimeorpip3 install chinatime -ihttp://pypi.douban.com/simple/--trusted-host pypi.douban.com功能说明用于句子中时间词的抽取和转换详情请见test.pyres = tn.parse(target=u'过十分钟') # target为待分析语句，timeBase为基准时间默认是当前时间
print(res)
res = tn.parse(target=u'2013年二月二十八日下午四点三十分二十九秒', timeBase='2013-02-28 16:30:29') # target为待分析语句，timeBase为基准时间默认是当前时间
print(res)
res = tn.parse(target=u'我需要大概33天2分钟四秒', timeBase='2013-02-28 16:30:29') # target为待分析语句，timeBase为基准时间默认是当前时间
print(res)
res = tn.parse(target=u'今年儿童节晚上九点一刻') # target为待分析语句，timeBase为基准时间默认是当前时间
print(res)
res = tn.parse(target=u'2个小时以前') # target为待分析语句，timeBase为基准时间默认是当前时间
print(res)
res = tn.parse(target=u'晚上8点到上午10点之间') # target为待分析语句，timeBase为基准时间默认是当前时间
print(res)返回结果：{"timedelta": "0 days, 0:10:00", "type": "timedelta"}
{"timestamp": "2013-02-28 16:30:29", "type": "timestamp"}
{"type": "timedelta", "timedelta": {"year": 0, "month": 1, "day": 3, "hour": 0, "minute": 2, "second": 4}}
{"timestamp": "2018-06-01 21:15:00", "type": "timestamp"}
{"error": "no time pattern could be extracted."}
{"type": "timespan", "timespan": ["2018-03-16 20:00:00", "2018-03-16 10:00:00"]}
Package: chinaunicom
基础工具包| 适合新手快速部署一些基础工具如何安装python setup.py install此工具依赖的其他包:

-  MySQLdb see https://github.com/farcepest/MySQLdb1
-  DBUtils see https://cito.github.io/DBUtils/


如何使用例1# 申请资源
mysql = Mysql()

#执行语句
sqlAll = "SELECT * FROM BMS_ROLE"

#返回结果
result = mysql.getAll(sqlAll)

#打印
print ("mysql")例2配置说明:

PROJECT_NAME = 项目根目录
LOG_PATH_DIR = 日志位置
LOG_FORMATTER = 日志格式化
LOG_LEVEL = 日志级别
LOG_SPLIT_TIMES = 日志分割：D:按天分割；H:按小时分割；M:按分钟分割
CONFIG 为上述配置的字典形式

     #加载日志

m_logger=MyLogger(CONFIG)

#打印日志
m_logger.ERRORLog("自定义内容")LicenceGPL v3 or any later versionAuthorwangruomeng