Saravanan666/pypi-org huggingface dataset:
Package: baidutongji
BaiduTongjiAPI百度统计 API 的 Python 封装支持范围账号类型支持情况百度商业账号❌百度账号✅API支持情况Token 刷新✅站点列表✅网站概况(趋势数据)✅网站概况(地域分布)✅网站概况(来源网站、搜索词、入口页面、受访页面)✅趋势分析✅实时访客✅推广方式❌百度推广趋势❌全部来源✅搜索引擎✅搜索词✅外部链接✅指定广告跟踪❌受访页面✅入口页面✅受访域名✅地域分布✅地域分布(按国家)✅Doc百度统计官方文档：https://tongji.baidu.com/api/manual/https://tongji.baidu.com/api/debug/#具体使用详见源代码，下面是对项目结构：baidutongji
├── __init__.py
├── api.py          # API 定义
├── data.py         # 可选参数数据结构
└── metrics.py      # 各 API 筛选指标数据结构使用样例：查询站点今天的网站概况（趋势数据）报表：importbaidutongjibaidutongji.getTimeTrendRpt('{ACCESS_TOKEN}','{SITE_ID}',datetime.date.today(),datetime.date.today(),TimeTrendRptMetrics(pv_count=True,visitor_count=True,ip_count=True,bounce_ratio=True,avg_visit_time=True))或者可以简化：importbaidutongjibaidutongji.getTimeTrendRpt('{ACCESS_TOKEN}','{SITE_ID}',datetime.date.today(),datetime.date.today(),TimeTrendRptMetrics().setAllTrue())查询2022/01/01 ~ 2022/01/10与2022/04/01 ~ 2022/04/10趋势分析对比报表，指定时间粒度以天为单位，筛选用户为老用户，访问设备为 PC，地区为上海市：importbaidutongjibaidutongji.getTrendTime('{ACCESS_TOKEN}','{SITE_ID}',datetime.date(2022,1,1),datetime.date(2022,1,10),TrendTimeMetrics().setAllTrue(),datetime.date(2022,4,1),datetime.date(2022,4,10),Source.ALL,ClientDevice.PC,VisitorType.RETURN,TimeGran.DAY,Region(RegionType.PROVINCE,'上海'))
Package: baidu-trans
===============================================================
baidu_trans: Free baidu translate API for Python|GitHub license| |travis status| |version|python 3.4+python 2.7+QuickstartYou can install it from PyPI:.. sourcecode:: bash$ pip install baidu_trans..
or manual install:.. sourcecode:: bash$ pip install pytest
$ pip install flake8
$ pip install coverage
$ pip install PyExecJS$ python setup.py test
$ python setup.py install..single sentence translation.. code:: python>>> from baidu_trans import Translator
>>> translator = Translator.translator(src='en', dest='fr')
>>> translator.translate('china')
'Chine'multiple sentence translation.. code:: pythonfrom GoogleFreeTrans import Translator
translator = Translator.translator(src='en', dest='fr')
translator.translate('china. french')
[[['Chine. ', 'china.', None, None, 1],  ['français.', 'french.', None, None, 1]], None, 'en']support language.. code::'afrikaans': 'af',
'arabic': 'ar',
'belarusian': 'be',
'bulgarian': 'bg',
'catalan': 'ca',
'czech': 'cs',
'welsh': 'cy',
'danish': 'da',
'german': 'de',
'greek': 'el',
'english': 'en',
'esperanto': 'eo',
'spanish': 'es',
'estonian': 'et',
'persian': 'fa',
'finnish': 'fi',
'french': 'fr',
'irish': 'ga',
'galician': 'gl',
'hindi': 'hi',
'croatian': 'hr',
'hungarian': 'hu',
'indonesian': 'id',
'icelandic': 'is',
'italian': 'it',
'hebrew': 'iw',
'japanese': 'ja',
'korean': 'ko',
'latin': 'la',
'lithuanian': 'lt',
'latvian': 'lv',
'macedonian': 'mk',
'malay': 'ms',
'maltese': 'mt',
'dutch': 'nl',
'norwegian': 'no',
'polish': 'pl',
'portuguese': 'pt',
'romanian': 'ro',
'russian': 'ru',
'slovak': 'sk',
'slovenian': 'sl',
'albanian': 'sq',
'serbian': 'sr',
'swedish': 'sv',
'swahili': 'sw',
'thai': 'th',
'filipino': 'tl',
'turkish': 'tr',
'ukrainian': 'uk',
'vietnamese': 'vi',
'yiddish': 'yi',
'chinese_simplified': 'zh-CN',
'chinese_traditional': 'zh-TW',
'auto': 'auto'.. |GitHub license| image::https://img.shields.io/github/license/mashape/apistatus.svg:target:http://opensource.org/licenses/MIT.. |travis status| image::https://travis-ci.org/ziliwang/GoogleFreeTrans.svg?branch=master:target:https://travis-ci.org/ziliwang/GoogleFreeTrans.. |version| image::https://img.shields.io/github/release/ziliwang/GoogleFreeTrans.svg:target:https://github.com/ziliwang/GoogleFreeTrans/releases
Package: baidu-trans-cli
this is a python translation package based on baidu translation api.Installationpipinstallbaidu-trans-cliregister a account onhttp://api.fanyi.baidu.com/api/trans/product/index2000,000 characters per month is free.get key and secretID, write into~/.config/app-conf/baidu-trans/main.jsonUsagebaidu-trans-h
Package: baidu-translate-api
baidu-translate一个免费, 高效, 简洁百度翻译接口特点:采用百度翻译公共接口, 无鉴权, 完全免费。支持垂直翻译, 可提高翻译准确度。代码内部自动获取 Token 和 GTK, 无需使用者手动获取。接口简洁, 没有复杂的前置调用。相对于同类开源项目而言, sign 算法采用 Python 重新编写, 无需额外的依赖和调用开销。得益于缓存机制，首次调用可能稍慢，但后续调用相当之快。安装本项目已发布到 PYPI，你可以通过以下方法来安装。$pipinstallbaidu-translate-api注意安装包名为baidu-translate-api，调用包名为baidu_translate也可以用以下方式安装最新版：$pipinstallgit+https://github.com/17097239132/baidu-translate.git例子importbaidu_translateasfanyiresult=fanyi.translate_text('Hello, World!')result_ru=fanyi.translate_text('Hello, World!',to=fanyi.Lang.RU)print(result,result_ru)# 你好，世界！ Здравствуйте, Мир!lang=fanyi.detect_language('Vue rapide')print(lang==fanyi.Lang.FRA)# Trueresult=fanyi.translate_text('我们是中国人，我们爱自己的祖国！')print(result)# We are Chinese, we love our motherland!result_common=fanyi.translate_text('年化收益率')result_domain=fanyi.translate_text('年化收益率',domain=fanyi.Domain.FINANCE)# 金融print(result_common,'&',result_domain)# Annualized rate of return & Annualized yield你也可以使用异步和多线程:importbaidu_translateasfanyiimportasyncio,timefromconcurrent.futuresimportThreadPoolExecutor# Make cachefanyi.translate_text('Hi!')langs=['zh','en','fra','ru','ara','spa']deftest_sync(text):texts=[]forlanginlangs:texts.append(fanyi.translate_text(text,to=lang))return' '.join(texts)asyncdeftest_async(text):tasks=[]forlanginlangs:tasks.append(fanyi.translate_text_async(text,to=lang))texts=awaitasyncio.gather(*tasks)return' '.join(texts)deftest_thread(text):withThreadPoolExecutor()aspool:texts=pool.map(lambdalang:fanyi.translate_text(text,to=lang),langs)return' '.join(texts)start=time.time()result_sync=test_sync('Good morning!')print('Sync Time:',time.time()-start)# 4.8s~start=time.time()result_async=asyncio.run(test_async('Good morning!'))print('Async Time:',time.time()-start)# 2.3s~start=time.time()result_thread=test_thread('Good morning!')print('Thread Time:',time.time()-start)# 0.8s~print(result_sync==result_async==result_thread)# True由于 httpx 请求库的缘故, 多线程模式的速度被显著提升, 而异步模式的效率并不突出。APIbaidu_translate.translate_text(content, /, from_=Lang.AUTO, to=Lang.AUTO, domain=Domain.COMMON)翻译content中的内容, 并返回一个字符串。from_和to分别是翻译的源语言和目标语言。接受一个Lang对象, 也可传入一个字符串, 将自动转化为Lang对象。如果未指定或为Lang.AUTO, 将自动检测源语言或目标语言。domain是垂直翻译领域，请传入一个Domain对象。如果content为空或源语言与目标语言相同将不做更改。baidu_translate.detect_language(content)检测content的语种。返回一个Lang对象。如果检测不出来将返回None。baidu_translate.Lang枚举对象, 包含百度支持的所有语种的 ID, 请注意是全部大写。建议结合 IDE 自动补全使用。classLang(enum.Enum):# will be replace with real languageAUTO='auto'# 自动检测# Common LanguagesZH='zh'# 中文(简体)EN='en'# 英语SPA='spa'# 西班牙语ARA='ara'# 阿拉伯语FRA='fra'# 法语RU='ru'# 俄语# More Languages...baidu_translate.Domain枚举对象, 百度的垂直翻译领域, 请注意是全部大写。建议结合 IDE 自动补全使用。classDomain(enum.Enum):COMMON='common'# 通用领域BM='medicine'# 生物医药ET='electronics'# 电子科技WCM='mechanics'# 水利机械NOVEL='novel'# 网络文学FINANCE='finance'# 金融MILITARY='military'# 军事参考文献hujingshuang 的百度翻译 API(百度翻译接口 破解)百度指数 Cipher-Text、百度翻译 Acs-Token 逆向分析js逆向-最新版百度翻译参数解密python的AES-CBC加密版权 & 免责声明本项目已被放入公有领域，作者放弃所有权利。任何人都可以自由地使用本项目，而无需注明作者。但值得注意的是，本项目违反了百度翻译（PC 版）用户使用协议的第三十一条第一款。百度公司随时可以联系本人删除项目，但由此衍生出的任何法律问题本人概不负责（包括但不限于用户使用不当而对百度公司服务器造成的损失）。特别提醒：本项目仅供学习讨论。建议不要在商业项目中使用，以规避法律风险。且用且珍惜！
Package: baidu-tr-free
baidu-tr-freeBaidu translate for free -- local cache plus throttling. Let's hope it lasts.Broken or not: failing indicatesbroken. In case offailing, try the following workaround: log in tohttps://passport.baidu.comfirst. Then use the Chrome browser to visithttps://fanyi.baidu.com/v2transapi?from=en&to=zh&query=test, press F12 and then ctr-R (or any method) to open devtools' Network tab and reload. Locatehttps://fanyi.baidu.com/v2transapi?from=en&to=zhand obtain the BAIDUID and token strings in the headers. Plug in the BAIDUID and token strings to lines 66-67 in the  filebdtr.py.FixedText longer than 30 characters can be handled now.Auto-fetching BAIDUID and TOKENInstallationpip install -U baidu-tr-freeorinstall (pip or whatever) necessary requirements, e.g.pip install js2py requests_cache jsonpath_rworpip install -r requirements.txtDrop the file bdtr.py in any folder in your PYTHONPATH (check with import sys; print(sys.path)Several valid TOKEN/BAIDUID are included.or clone the repo (e.g.,git clone https://github.com/ffreemt/baidu-tr-free.gitor downloadhttps://github.com/ffreemt/baidu-tr-free/archive/master.zipand unzip) and change to the baidu-tr-free folder and do apython setup.py developUsageLog in tohttps://passport.baidu.comusing Chrome:bdtrneeds the cookies info (BAIDUID) from the Chrome browser on baidu.com.from bdtr import bdtr
print(bdtr('hello world'))  # -> '你好，世界'
print(bdtr('hello world', to_lang='de'))  # ->'Hallo Welt'
print(bdtr('hello world', to_lang='jp'))  # ->'ハローワールド'to_lang='fr'does not seem to work tho.Validation and Pressure Testspip install pytestpytestAverage delay for throttling set to 0.6 s, ajdust as neededAcknowledgmentsThanks to everyone whose code was usedJS_SIGN (javascript code for signing) can be found on the net. It's also not too difficult to obtain some similar code from Chrome's devtools.
Package: baidu-url-submit
baidu-url-submitIntroductionThis tool help you to submit your url to baidu.Only for python3.The code is simple, I also use it to learn how to package python projects.About the detail of submit url to baidu, you can visit:https://ziyuan.baidu.com/Installpipinstallbaidu-url-submitDemoimportbaidu_url_submitsite="blog.wansho.cn"# your sitetoken="xxx"# from https://ziyuan.baidu.com/urls=["http://blog.wansho.cn/opinion/notes.html","http://blog.wansho.cn/reading/movie-top.html",]# urls to submitresult=baidu_url_submit.submit(site,token,urls)# if result == 2, it means two url submit success.# if result < 2, it means some urls submit fail.## The reason why submit fail:# 1. The submitted url is not the url of this site.# 2. invalid urlLICENSEMIT
Package: baidux
Baidux - Python SDK for index and searchhttp://index.baidu.com/http://www.baidu.com/InstallpipinstallbaiduxUsage打开百度首页，登录后，找到www.baidu.com此条 GET 请求，并复制此条请求 request headers 里的 cookies使用样例如下：frombaidux.utilsimporttest_cookiesfrombaiduximportconfigfrombaiduximportBaiduIndex,ExtendedBaiduIndexcookies="""这里放cookie"""# 测试cookies是否配置正确# True为配置成功，False为配置不成功print(test_cookies(cookies))keywords=[['英雄联盟'],['冠军杯','英雄联盟'],['抑郁','自杀','明星']]# 获取城市代码, 将代码传入area可以获取不同城市的指数, 不传则为全国# 媒体指数不能分地区获取print(config.PROVINCE_CODE)print(config.CITY_CODE)# 获取百度搜索指数(地区为山东)baidu_index=BaiduIndex(keywords=keywords,start_date='2018-01-01',end_date='2019-01-01',cookies=cookies,area=901)forindexinbaidu_index.get_index():print(index)# 获取百度媒体指数news_index=ExtendedBaiduIndex(keywords=keywords,start_date='2018-01-01',end_date='2019-01-01',cookies=cookies,kind='news')forindexinnews_index.get_index():print(index)# 获取百度咨询指数feed_index=ExtendedBaiduIndex(keywords=keywords,start_date='2018-01-01',end_date='2019-01-01',cookies=cookies,kind='feed')forindexinfeed_index.get_index():print(index)Result百度搜索指数: {'keyword': ['抑郁', '自杀', '明星'], 'type': 'wise', 'date': '2018-06-10', 'index': '1835'}
百度媒体指数: {'keyword': ['抑郁', '自杀', '明星'], 'date': '2018-12-29', 'index': '0'}
百度咨询指数: {'keyword': ['抑郁', '自杀', '明星'], 'date': '2018-12-29', 'index': '1102911'}Tips不限制传入关键词的数量搜索指数最早的数据日期为2011-01-01开始时间超过最早的数据日期会导致数据不准确初始化类时传入area可以查询指定区域的百度指数, 默认为全国有些代码不是特别严谨, 有需要请自己DIY媒体指数不支持细分地域查询当查询百度指数未收录的关键词时也会出现报错，这个之后会修复Changelog2018/02/10 更新格式化数据的方法format_data2018/12/29 更新查询指定区域百度指数的功能2018/11/07 更新2019/05/31 更新2020/02/14 添加咨询指数和媒体指数的功能2020/04/16 重构项目结构2020/05/08 百度指数修改传递参数2020/07/13 添加组合词查询
Package: bai-file-processor
Python module for parsing and writing Bai files.Built on top of BAI2 Python package with additional Export features addedRequirementsPython 3.3+ are supported.Installationpipinstallbai-file-processorUsageTo use bai file processor in a projectfrombai_file_processorimportbai_parser# parse from a file & export as CSV (summary & Transactions)bai_parser.extract_bai_components('XXXXX.bai',export_csv=True,filepath='output')# parse from a file & extract data as dictionaryheader_dict,grp_header_dict,list_transactions,summary_accounts=bai_parser.extract_bai_components('XXXX.bai')# WIth debugbai_parser.extract_bai_components('XXXX.bai',debug=True)ModelsModels structure:Bai2File
    Bai2FileHeader
    Group
        GroupHeader
        Account
            AccountIdentifier
            TransactionDetail
            AccountTrailer
        GroupTrailer
    Bai2FileTrailer
Package: baijiayun
百家云 Python SDK。【阅读文档】。安装目前 BaiJiaYun 支持的 Python 环境有 2.7, 3.4, 3.5, 3.6, 3.7 和 pypy。为了简化安装过程，推荐使用 pip 进行安装pipinstallbaijiayun升级 baijiayun 到新版本:pip install -U baijiayun如果需要安装 GitHub 上的最新代码:pip install https://github.com/007gzs/baijiayun/archive/master.zip调用示例from baijiayun import BaiJiaYunClient

client = BaiJiaYunClient('<partner_id>', '<secret_key>', '<private_domain>')

rooms = client.room.list()
Package: baiji-serialization
baiji-serialization===================Read and write common file formats to Amazon S3 and local files.Features--------- Reads and writes Pickle, CSV, JSON, and YAML- Works without an S3 connection (with local files)- Supports Python 2.7 and uses boto2- Supports OS X, Linux, and Windows- Tested and production-hardenedExamples--------```pyfrom baiji.serialization import jsonwith open(filename, 'w') as f:json.dump(foo, f)with open(filename, 'r') as f:foo = json.load(f)``````pyfrom baiji.serialization import jsonjson.dump(foo, filename)foo = json.load(filename)``````pyfrom baiji.serialization import csvwith open(filename, 'w') as f:csv.dump(foo, f)with open(filename, 'r') as f:foo = csv.load(f)``````pyfrom baiji.serialization import csvcsv.dump(foo, filename)foo = csv.load(filename)```Development-----------```shpip install -r requirements_dev.txtrake testrake lint```Contribute----------- Issue Tracker: github.com/bodylabs/baiji-serialization/issues- Source Code: github.com/bodylabs/baiji-serializationPull requests welcome!Support-------If you are having issues, please let us know.License-------The project is licensed under the Apache license, version 2.0.
Package: baikal
baikal is a graph-based, functional API for building complex machine learning
pipelines of objects that implement the scikit-learn API. It is mostly inspired
on the excellentKerasAPI for Deep Learning, and borrows
a  few concepts from theTensorFlowframework
and the (perhaps lesser known)graphkitpackage.baikalaims to provide an API that allows to build complex, non-linear
machine learning pipelines that looks like this:with code that looks like this:x1=Input()x2=Input()y_t=Input()y1=ExtraTreesClassifier()(x1,y_t)y2=RandomForestClassifier()(x2,y_t)z=PowerTransformer()(x2)z=PCA()(z)y3=LogisticRegression()(z,y_t)stacked_features=Stack()([y1,y2,y3])y=SVC()(stacked_features,y_t)model=Model([x1,x2],y,y_t)baikalis compatible with Python >=3.5 and is distributed under the
BSD 3-clause license.
Package: baikalai-apis
What is this?baikalai-apisis the generated python classes of GRPC API for baikal.ai.The baikal.ai provides several service for deep learning NLP features.
This api has all of main features, which provides tokenizing, POS tagging for Korean.
It has also customized dictionary service.How to installpip3installbaikalai-apisHow to useYou can create your own baikal language service client.It is used forbaikal-nlpy, the official bailal NLP package for python.fromgoogle.protobuf.json_formatimportMessageToDictimportbaikal.language.language_service_pb2aspbimportbaikal.language.language_service_pb2_grpcaslsMAX_MESSAGE_LENGTH=100*1024*1024classBaikalLanguageServiceClient:stub=Nonedef__init__(self,remote):channel=grpc.insecure_channel(remote,options=[('grpc.max_send_message_length',MAX_MESSAGE_LENGTH),('grpc.max_receive_message_length',MAX_MESSAGE_LENGTH),])self.stub=ls.LanguageServiceStub(channel)defanalyze_syntax(self,document,auto_split=False):req=pb.AnalyzeSyntaxRequest()req.document.content=documentreq.document.language="ko_KR"req.encoding_type=pb.EncodingType.UTF32req.auto_split_sentence=auto_splitres=self.stub.AnalyzeSyntax(req)# print_syntax_as_json(res)returnresdefprint_syntax_as_json(res:pb.AnalyzeSyntaxResponse,logf=sys.stdout):d=MessageToDict(res)importjsonjson_str=json.dumps(d,ensure_ascii=False,indent=2)logf.write(json_str)logf.write('\n')
Package: baikalnlpy
What is this?baikalnlpyis the python 3 library for baikal NLP.Baikal NLP is a Korean NLP,
which provides tokenizing, POS tagging for Korean.How to installpip3installbaikalnlpyHow to get baikal NLPGo tohttps://license.baikal.ai/.With registration, for the first time, you can get a free license for 3 months.If you are a student or a researcher, you can get also a free license for 1 year,
which is able to renew after 1 year.Or use docker image.dockerpullbaikalai/baikal-nlp:v1.7.3How to useimportsysimportgoogle.protobuf.text_formatastffrombaikalnlpyimportTagger# If you have your own localhost baikal NLP.my_tagger=Tagger('localhost')# or if you have your own baikal NLP which is running on 10.8.3.211:15656.my_tagger=Tagger('10.8.3.211',15656)# or with smaller public cloud instance, it may be slow. It is free.tagger=Tagger()# print results.res=tagger.tags(["안녕하세요.","반가워요!"])# get protobuf message.m=res.msg()tf.PrintMessage(m,out=sys.stdout,as_utf8=True)print(tf.MessageToString(m,as_utf8=True))print(f'length of sentences is{len(m.sentences)}')## output : 2print(f'length of tokens in sentences[0] is{len(m.sentences[0].tokens)}')print(f'length of morphemes of first token in sentences[0] is{len(m.sentences[0].tokens[0].morphemes)}')print(f'lemma of first token in sentences[0] is{m.sentences[0].tokens[0].lemma}')print(f'first morph of first token in sentences[0] is{m.sentences[0].tokens[0].morphemes[0]}')print(f'tag of first morph of first token in sentences[0] is{m.sentences[0].tokens[0].morphemes[0].tag}')# print number# get json objectjo=res.as_json()print(jo)# get tuple of pos tagging.pa=res.pos()print(pa)# another methodsma=res.morphs()print(ma)na=res.nouns()print(na)va=res.verbs()print(va)# custom dictionarycust_dic=tagger.custom_dict("my")cust_dic.copy_np_set({'내고유명사','우리집고유명사'})cust_dic.copy_cp_set({'코로나19'})cust_dic.copy_cp_caret_set({'코로나^백신','"독감^백신'})cust_dic.update()# laod prev custom dictcust_dict2=tagger.custom_dict("my")cust_dict2.load()tagger.set_domain('my')tagger.pos('코로나19는 언제 끝날까요?')
Package: baike
[TOC]baike简介baike是一个百度百科search bot。在百度百科上搜索词条并返回匹配条目的简介，图片等。安装#pip install baike简单上手想要直接在百度百科搜索一个词条，可以从以下的方法中二选一：>>>frombaikeimportBaike>>>ret=Baike('你要搜的内容').query()#返回结果保存在ret里>>>frombaikeimportgetBaike>>>ret=getBaike('你要搜的内容')#同上#也可以直接print(getBaike('你要搜的内容'))来显示更多功能通过指定变量no为0，你可以显示多义词的义项列表：>>>print(getBaike('Python',no=0))Python1:计算机程序设计语言2:英文单词这个值默认为1，此时默认显示第一个搜索命中结果的内容简介。指定变量no为非0整数，你可以显示第no个义项的内容简介：>>>print(getBaike('Python',no=2))Python（英文单词）python发音：英[ˈpaɪθən]美[ˈpaɪθɑ:n]中文释义：巨蛇，大蟒复数形式：pythons如果no>义项数，则会显示最后一个义项。
如果no是负数，则会从后往前计数。类似的，如果no<(-义项数)，则会显示第一个义项。在内部实现中，no实际上是一个由两个元素组成的列表。第一个元素为一个整数，即上文中的“义项序号”；第二个元素为一个整数列表或空列表，指出需要显示的义项中的“段落序号”。如：>>>print(getBaike('Python',no=[1,[1]]))Python（计算机程序设计语言）1.Python简介及应用领域Python是一种解释型脚本语言，可以应用于以下领域：“段落序号”可以指定多个，将按顺序显示：>>>print(getBaike('Python',no=[1,[0,1,2]]))Python（计算机程序设计语言）Python是一种跨平台的计算机程序设计语言。是一个高层次的结合了解释性、编译性、互动性和面向对象的脚本语言。最初被设计用于编写自动化脚本(shell)，随着版本的不断更新和语言新功能的添加，越多被用于独立的、大型项目的开发。1.Python简介及应用领域Python是一种解释型脚本语言，可以应用于以下领域：2.下载Python在您开始之前，在你的计算机将需要Python，但您可能不需要下载它。首先检查(在同级目录下在命令行窗口输入python)有没有安装Python。如果你看到了一个Python解释器的响应，那么就能在它的显示窗口中得到一个版本号。通常的版本都可以做到Python的向前兼容。如果您需要安装，您不妨下载最近稳定的版本。就是那个以没有被标记作为alpha或Beta发行的最高的版本。目前最稳定的版本是Python3.0以上如果你使用的操作系统是Windows：当前最稳定的Windows版本下载是"Python 3.8.3 for Windows"如果你使用的是Mac，MacOS10.2(Jaguar),10.3(Panther)and10.4(Tiger)已经集成安装了Python，但是你大概需要安装最近通用的构架(build)。对于RedHat，安装python2和python2-devel包。对于Debian，安装python2.5和python2.5-dev包。请注意，baike不会对“段落序号”做任何检查，这意味着诸如getBaike("Python",no=[1,[0,0,0,3,2,1]])等等重复值和逆序值是完全合法的。0号段落即为该义项的简介段落，[0]也是“段落序号”的默认值：>>>print(getBaike('Python',no=[1,[0]]))Python（计算机程序设计语言）Python是一种跨平台的计算机程序设计语言。是一个高层次的结合了解释性、编译性、互动性和面向对象的脚本语言。最初被设计用于编写自动化脚本(shell)，随着版本的不断更新和语言新功能的添加，越多被用于独立的、大型项目的开发。如果“段落序号”为空列表[]，那么将显示段落目录：>>>print(getBaike('Python',no=[1,[]]))Python（计算机程序设计语言）【目录】0简介1Python简介及应用领域2下载Python3发展历程4风格5与MATLAB的对比6设计定位7执行8基本语法9帮助10CGI11特点12应用13工具功能14标准库15开发环境16解释器17著名应用18库导入19学习网站在“段落序号”内部，一样可以使用负数来索引段落。当“义项序号”为0时，“段落序号”将被忽略，但是仍然需要输入合法的值以避免报错。指定变量timeout为正整数，你可以设定搜索的超时时间，单位为秒：>>>ret=getBaike('Python',timeout=1)当搜索超时时，标准错误输出stderr会显示一条错误信息超时错误:，紧接着是引发超时错误的网页链接。你可以重定向标准错误输出至文件来实现日志功能。该变量默认为5。请注意，每次搜索对应2~3个网页请求，而timeout值是对单个请求的时长所设的限制，因此一次搜索的总时长最长的花费可能会是timeout的2~3倍。如果搜索没有结果，标准错误输出stderr会显示一条错误信息没有匹配的搜索结果:，紧接着是没有搜索结果的关键字。类似的，你可以重定向标准错误输出至文件来实现日志功能。指定变量pic为True，你可以自动下载这个词条的概要图：>>>ret=getBaike('Python',pic=True)如果该词条有概要图，那么就会下载到当前目录下，文件名格式为"<搜索关键词>_<义项序号>_<12位时间戳>.<图片格式>"。默认图片格式是jpg。该变量默认为False。当变量的值有误时，标准错误输出stderr会显示一条错误信息参数不正确:，紧接着是有误的参数名。要想更正，可以通过setting()方法设置正确的参数值，如果设置正确那么setting()将返回0，错误则是非0值。每个Baike搜索对象的设置都是独立的。如果希望将搜索设置设为默认值（如no参数等），可以使用reset()方法。如果使用getBaike()进行搜索，因为每次搜索都是独立的，因此每次搜索都会将从默认值开始。已知问题无法显示部分表格/列表依赖需要requests和lxml。若安装失败可以手动执行：#pip install requests lxml在Python 3.6.9, 3.7.1, 3.9.0 上正常运行。在Windows10 1909 20H4， Ubuntu 18.04 LTS上正常运行。在Termux上安装lxml可能存在问题，请尝试先安装Cython或先安装对应发行版的库文件。baike仍处于pre-Alpha阶段，建议随时使用最新版以减少bug。声明baike只有收录/分类/组织的功能，对显示的信息不负任何法律责任，也不享有著作权，若信息源的信息发生变更，baike没有能力随时更新内容，因此使用者须自行对提供的信息的真实性、进行判断。
Package: bailo
Bailo Python ClientA simple Python API Wrapper for BailoTable of ContentsKey FeaturesInstallingGetting StartedDevelopmentPrecommitsTestingKey FeaturesUploading and downloading model binariesInstallingPython 3.8.1 or higher is requiredpipinstallbailoGetting StartedfrombailoimportClient,Modelclient=Client("http://localhost:8080")# Create a modelyolo=Model.create(client=client,name="YoloV4",description="You only look once!",team_id="Uncategorised")yolo.card_from_schema("minimal-general-v10-beta")# Create a new releasemy_release=yolo.create_release(version="0.1.0",notes="Beta")# Upload a file to the releasewithopen("yolo.onnx")asf:my_release.upload("yolo",f)DocumentationDocumenation is rendered with Sphinx and servedhere.Building locallyFrom the docs directory run eithermake htmlormake.baton Windows. This will build it in the backend directory by
default.DevelopmentInstall and add precommitIf already working on Bailo you may be prompted to overwrite Husky. Follow the instructions given by Git CLI.pipinstallpre-commit
pre-commitinstallInstall the package locallypipinstall-e.TestingThe package uses Pytest to test packages. Tests can be ran accordingly from within this directory. Tests are split into
categories sections for automation purposes.In order to run integration tests make sure Bailo is running onhttps://localhost:8080:pytest-mintegrationRun all other tests:pytest
Package: bai-lockbox
# bai-lockboxA simple parser for files in the BAI lockbox format in order to extract checksfrom them.## InstallationTo install `bai-lockbox`:```$ pip install bai-lockbox```## WarningPlease be aware that this code was written to the spec that our bank uses, andhas been tested with data that has come from them. This means that there may besubtle (and maybe some not-so-subtle) differences between the the data we expectand the data you get. If our parser doesn't read your files, open an issue orsubmit a PR. We'd really appreciate it!## Usage```pythonfrom lockbox.parser import LockboxFilewith open('/path/to/file', 'r') as inf:lockbox_file = LockboxFile.from_file(inf)for check in lockbox_file.checks:print('Received ${} from {} on {}'.format(check.amount, check.sender, check.date))```More information can be found in the docs which can be build from source:```$ cd path/to/bai-lockbox/docs$ make html```Maintained by [Jonathan Friedman @moofive](https://www.github.com/moofive/)
Package: bails-aws-utils
Bails AWS UtilsA set of scripts for maing life easier when working with AWS.Setup:pip install bails-aws-utilsRoute 53dynamc-dns- A script to update a Route 53 record with the current public IP address of the machine it is running on. This is useful for setting up a dynamic DNS service for a home network. It also comes with a command to help configure it as a cron job.