Saravanan666/pypi-org huggingface dataset:
Package: zho-tts
zho-ttsCommand-line interface and Python library for synthesizing Chinese texts into speech.Installationpipinstallzho-tts--userExample synthesiszho-ttssynthesize"长江 航务 管理局 和 长江 轮船 总公司 最近 决定 安排 一百三十三 艘 客轮 迎接 长江 干线 春运。"The output can be listenedhere.# Same example using IPA inputzho-ttssynthesize-ipa"ʈʂː|a˧˩˧˘|ŋ|tɕ˘|j|a˥˘|ŋ˘|SIL0|x|a˧˥˘|ŋ|u˥˩|SIL0|k|w|a˧˩˧|n|l˘|i˧˩˧|tɕː|y˧˥ˑ|SIL0|x|ɤ˧˥|SIL0|ʈʂː|a˧˩˧˘|ŋ|tɕ˘|j|a˥˘|ŋ|SIL0|l|w|ə˧˥|n|ʈʂʰ˘|w|a˧˥|n|SIL0|ts˘|ʊ˧˩˧|ŋ˘|kː|ʊ˥|ŋ|s|ɹ̩˥ˑ|SIL0|ts|w˘|ei̯˥˩|tɕ|i˥˩˘|n|SIL0|tɕ|ɥ|e˧˥|t|i˥˩|ŋ|SIL3|a˥|n|pʰ|ai̯˧˥|SIL0|i˥ˑ|p|ai̯˧˩˧|s|a˥˘|n|ʂ˘|ɻ̩˧˥|s|a˥|n|SIL0|s˘|ou̯˥|SIL0|kʰˑ|ɤ˥˩|lː|wˑ|ə˧˥ˑ|n|SIL0|i˧˥ː|ŋ|tɕ˘|j˘|e˥|SIL0|ʈʂː|a˧˩˧|ŋ|tɕ˘|j|a˥˘|ŋ|SIL0|k˘|a˥˩|n|ɕ|j˘|ɛ˥˩|n˘|SIL0|ʈʂʰˑ|w˘|ə˥˘|nː|y˥˩ˑ|nː|。"The output can be listenedhere.Usage as libraryfrompathlibimportPathfromtempfileimportgettempdirfromzho_ttsimportSynthesizer,Transcriber,normalize_audio,save_audiotext="长江 航务 管理局 和 长江 轮船 总公司 最近 决定 安排 一百三十三 艘 客轮 迎接 长江 干线 春运。"transcriber=Transcriber()synthesizer=Synthesizer()text_ipa=transcriber.transcribe_to_ipa(text)audio=synthesizer.synthesize(text_ipa)tmp_dir=Path(gettempdir())save_audio(audio,tmp_dir/"output.wav")# Optional: normalize outputnormalize_audio(tmp_dir/"output.wav",tmp_dir/"output_norm.wav")Model infoThe used TTS model is publishedhere.Phoneme setVowels: a ɛ e ə ɚ ɤ i o u ʊ yDiphthongs: ai̯ au̯ ei̯ ou̯Consonants: f j k kʰ l m n p pʰ ɹ̩¹ ɻ¹ ɻ̩¹ s t ts tsʰ tɕ tɕʰ tʰ w x ŋ ɕ ɥ ʂ ʈʂ ʈʂʰBreaks:SIL0 (no break)SIL1 (short break)SIL2 (break)SIL3 (long break)special characters: 。 ?Vowels and diphthongs contain one of these tones:˥ (first tone)˧˥ (second tone)˧˩˧ (third tone)˥˩ (fourth tone)(none)¹ These consonants contain also tones.Vowels, diphthongs and consonants contain one of these duration markers:˘ -> very short, e.g., ou̯˘nothing -> normal, e.g., ou̯ˑ -> half long, e.g., ou̯ˑː -> long, e.g., ou̯ːTones and duration markers can be combined, e.g., ə˧˥ːSpeakersCitationIf you want to cite this repo, you can use the BibTeX-entry generated by GitHub (seeAbout => Cite this repository).Taubert, S. (2024). zho-tts (Version 0.0.1) [Computer software]. https://doi.org/10.5281/zenodo.10512789AcknowledgmentsFunded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project-ID 416228727 – CRC 1410The authors gratefully acknowledge the GWK support for funding this project by providing computing time through the Center for Information Services and HPC (ZIH) at TU Dresden.The authors are grateful to the Center for Information Services and High Performance Computing [Zentrum fur Informationsdienste und Hochleistungsrechnen (ZIH)] at TU Dresden for providing its facilities for high throughput calculations.
Package: zhousf-lib
ZhousfLibpython常用工具库：coco数据集、labelme数据集、segmentation数据集、classification数据集制作和转换脚本；文件操作、表格操作、数据结构、web服务封装等工具集数据集制作datasets/classification：数据集制作datasets/coco：数据集制作、格式转换、可视化、统计、数据更新/合并/提取datasets/labelme：数据集制作、格式转换、可视化、统计、数据更新/合并/提取datasets/segmentation：数据集制作ANN转换ann/onnx/onnx_to_trt：onnx转tensorRTann/torch/torch_to_onnx：torch转onnx/加载onnxann/torch/torch_to_script：torch转script/加载scriptann/transformers：加载tokenizerann/tensorrt/tensorrt_infer：tensorRT推理MLml/feature_vector：特征向量表示器ml/model_cluster：kmeans聚类ml/model_lr：线性回归ml/model_gbdt：GBDT模型推理框架infer_framework/fast_infer/fast_infer：快速推理器infer_framework/triton/client_http：triton数据库db/lmdb：内存映射数据库装饰器decorator：异常捕获，AOP文件操作download：文件批量异步下载delete_file：文件删除字体font：宋体、特殊符号字体并发压测工具locust：demo表格文件工具pandas：excel/csv操作、大文件读取pdf文件工具pdf：pdf导出图片、pdf文本和表格提取so加密工具so：python工程加密成so，防逆向web相关web：flask日志工具、响应体、配置通用工具包util[util/cv_util]：opencv读写中文路径图片，图像相关处理[util/char_util]：字符相关处理，全角、半角[util/encrypt_util]：AES加密[util/iou_util]：IoU计算[util/json_util]：json读写[util/poly_util]：按照宽高对图片进行网格划分/切图[util/re_util]：re提取数字、字母、中文[util/singleton]：单例[util/string_util]：非空、包含、补齐[util/time_util]：日期、毫秒级时间戳、微秒级时间戳、日期比较
Package: zhouyuanzhen
# py-zhouyuanzhen[<img src=”https://avatars2.githubusercontent.com/u/54104471” align=”right” width=”200”>](https://github.com/zhouyuanzhen)PyPI for zhouyuanzhen## QuickStart### Install Packagepip install zhouyuanzhen### Play with itimport zyzzyz.sayhi()Enjoy it!
Package: zhpr
中文標點符號標注訓練資料集:p208p2002/ZH-Wiki-Punctuation-Restore-Dataset共計支援6種標點符號: ， 、 。 ？ ！ ；安裝# pip install torch pytorch-lightningpipinstallzhpr使用fromzhpr.predictimportDocumentDataset,merge_stride,decode_predfromtransformersimportAutoModelForTokenClassification,AutoTokenizerfromtorch.utils.dataimportDataLoaderdefpredict_step(batch,model,tokenizer):batch_out=[]batch_input_ids=batchencodings={'input_ids':batch_input_ids}output=model(**encodings)predicted_token_class_id_batch=output['logits'].argmax(-1)forpredicted_token_class_ids,input_idsinzip(predicted_token_class_id_batch,batch_input_ids):out=[]tokens=tokenizer.convert_ids_to_tokens(input_ids)# compute the pad start in input_ids# and also truncate the predict# print(tokenizer.decode(batch_input_ids))input_ids=input_ids.tolist()try:input_id_pad_start=input_ids.index(tokenizer.pad_token_id)except:input_id_pad_start=len(input_ids)input_ids=input_ids[:input_id_pad_start]tokens=tokens[:input_id_pad_start]# predicted_token_class_idspredicted_tokens_classes=[model.config.id2label[t.item()]fortinpredicted_token_class_ids]predicted_tokens_classes=predicted_tokens_classes[:input_id_pad_start]fortoken,nerinzip(tokens,predicted_tokens_classes):out.append((token,ner))batch_out.append(out)returnbatch_outif__name__=="__main__":window_size=256step=200text="維基百科是維基媒體基金會運營的一個多語言的百科全書目前是全球網路上最大且最受大眾歡迎的參考工具書名列全球二十大最受歡迎的網站特點是自由內容自由編輯與自由著作權"dataset=DocumentDataset(text,window_size=window_size,step=step)dataloader=DataLoader(dataset=dataset,shuffle=False,batch_size=5)model_name='p208p2002/zh-wiki-punctuation-restore'model=AutoModelForTokenClassification.from_pretrained(model_name)tokenizer=AutoTokenizer.from_pretrained(model_name)model_pred_out=[]forbatchindataloader:batch_out=predict_step(batch,model,tokenizer)foroutinbatch_out:model_pred_out.append(out)merge_pred_result=merge_stride(model_pred_out,step)merge_pred_result_deocde=decode_pred(merge_pred_result)merge_pred_result_deocde=''.join(merge_pred_result_deocde)print(merge_pred_result_deocde)維基百科是維基媒體基金會運營的一個多語言的百科全書，目前是全球網路上最大且最受大眾歡迎的參考工具書，名列全球二十大最受歡迎的網站，特點是自由內容、自由編輯與自由著作權。
Package: zhpy3
ContentsIntroductionInstallWhat is Zhpy3Change LogIntroduction“If it walks like a duck and quacks like a duck, I would call it a duck.”Zhpy3 on python 3 is good for non-native-english beginners to learn python 3 in our native language (Currently support Traditional and Simplified chinese).Zhpy3 acts like python 3 and play like python 3, user
could use it as python 3 to educate yourself the program skills
plus with your native language.Check examples here.http://code.google.com/p/zhpy/source/browse/#hg%2Fzhpy3%2FexamplesInstallIf you’d like to play zhpy3 with full features, you should install zhpy3.You could use easy_install command to install or upgrade zhpy3:$ easy_install -U zhpy3to use easy_install command, you should install distribute module for python 3 first:http://pypi.python.org/pypi/distribute/And check your system path params if it contains python3.x/bin path.ex: edit .bashrc to include “/Library/Frameworks/Python.framework/Versions/3.x/bin” in your PATH parameter.What is Zhpy3Zhpy3 is the successor of zhpy, to provide the python 3 language translator with fully tested chinese keywords, variables, and parameters support. Zhpy is INDEPENDENT on python 3 versions(3.x….).The core of zhpy3 is a lightweight python module and a language
source convertor based on python3, which provides
command line tool to translate zhpy3 code to python 3.Seehttp://www.flickr.com/photos/gasolin/2064120327You could invoke interpreter with ‘twpy’, ‘cnpy’ command instead of “python3” in command line to execute source code wrote in either Traditional/Simplified Chinese or English.The framework is not hard to extend to another languages such as japenese or korean.Change LogYou could view the ChangeLog to see what’s new in these version.http://code.google.com/p/zhpy/source/browse/CHANGELOG.txt
Package: zh_recover
A sample project that exists as an aid to thePython Packaging User Guide’sTutorial on Packaging and Distributing
Projects.This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.This is the README file for the project.The file should use UTF-8 encoding and be written using ReStructured Text. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: zhruby
Zaonhe Ruby (zhruby) 上海話吳語協會式注音Zaonhegho Wunyu–Yahwe-Seh TsyinConverts Traditional Chinese passage to TeX-flavoured ruby and outputs PDF. Requiresxelatexandctex.輸入中文文本文檔，輸出上海話注音的 LaTeX 文檔及 PDF。需要xelatex和ctex。Installationpython3-mpipinstallzhruby==2.0.3Usagepython3-mzhruby[listoftextfiles]Append-sto output simplified documents.
Package: zhtelecode
zhtelecodezhtelecodeis a Python package that converts betweenChinese Telegraph Codesand Unicode Chinese characters (both simplified and traditional).UsageConvert from Unicode to telegraph codes:>>>zhtelecode.to_telecode("中文信息")['0022','2429','0207','1873']>>>zhtelecode.to_telecode("萧爱国")['5618','1947','0948']>>>zhtelecode.to_telecode("蕭愛國")['5618','1947','0948']Convert from telegraph codes back to Unicode:>>>telecode=["0022","2429","0207","1873"]>>>zhtelecode.to_unicode(telecode)'中文信息'>>>telecode=["5618","1947","0948"]>>>zhtelecode.to_unicode(telecode,encoding="mainland")'萧爱国'>>>zhtelecode.to_unicode(telecode,encoding="taiwan")'蕭愛國'DataThe codebooks are derived from the Unicode consortium'sUnihan database(last
updated 2022-08-03 17:20).LicenseMIT License.Also seeUnicode terms of use.
Package: zhtools
ZhtoolsSome simple tool methods like cache, timetools and so on.Modulescache: A simple cache decorator.data_structs: Some data structs implements and tools.security: some simple security methods.api_service: Simple way to define an api client.async_tools: about python async/await.calculation: Math calculation methods.cli: Command-line tools.concurrents: Some tools for concurrent base on multi process/thread/coroutine.config: Global config by this tool.context_manager: Common context manager.decorators: Common decorators.exceptions: Common exceptions by this tool.random: Random methods.signals: simple signal dispatcher.timetools: Some date/time/timezone tools.typing: Common type hints.Update logs1.0.02023-06-17:Refactored code to used more type hint. Now only support python 3.11+.Because of the ChatGPT, remove thecode_generatormodule.Removedata_structs.lazymodule, recommend to uselazy-object-proxyinstead.Removeexportersmodule.Removeio_toolsmodule.Removeredis_helpermodule.Removelogmodule.Moveenumtodata_structs.enum.Movethird_parties.pydantictodata_structs.pydantic.Movetype_hinttotyping.Changerequestsandaiohttprequirement tohttpx.0.3.02022-07-21:Refactored cache.Add signal dispatcher.0.2.32022-04-08:Fix & add cli command.Add log module.0.2.22022-01-08:Add AES encrypt/decrypt method.0.2.12021-12-30:Moveconvertorstodata_structs.convertorsadd some data_structs and methods.0.1.12021-12-8:Optimize timetools. Now can set global timezone.0.0.112021-10-21:Add js-likePromise.0.0.102021-06-25:Add go-like defer.0.0.92021-06-04:Fix setup bug.0.0.82021-06-04:Add concurrents tools.Add orm code generators command-line client.0.0.72021-05-21:Add singleton decorator.Add orm code generators.0.0.62021-04-25:Add enum module.0.0.52021-04-19:Added api service.Optimized the performance of XlsxReader.Added progress bar to XlsxExporter (supported bytqdm).
Package: zhtts
ZhTTS中文A demo of zh/Chinese Text to Speech system run on CPU in real time. (fastspeech2 + mbmelgan)RTF(real time factor): 0.2 with cpu: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz 24khz audio use fastspeech2, RTF1.6 for tacotron2This repo ismainly based onTensorFlowTTSwith little improvement.tflite model come fromcolab, thx to@azraelkuanadd pause at punctuationadd TN (Text Normalization) fromchinese_text_normalizationdemo wavtext = "2020年，这是一个开源的端到端中文语音合成系统"fastspeech2 - demo.wavfastspeech2 - newstacotron2 - newsInstallpip install zhttsor clone this repo, thenpip install .Usageimportzhttstext="2020年，这是一个开源的端到端中文语音合成系统"tts=zhtts.TTS()# use fastspeech2 by defaulttts.text2wav(text,"demo.wav")>>>Savewavtodemo.wavtts.frontend(text)>>>('二零二零年，这是一个开源的端到端中文语音合成系统','sil ^ er4 #0 l ing2 #0 ^ er4 #0 l ing2 #0 n ian2 #0 #3 zh e4 #0 sh iii4 #0 ^ i2 #0 g e4 #0 k ai1 #0 ^ van2 #0 d e5 #0 d uan1 #0 d ao4 #0 d uan1 #0 zh ong1 #0 ^ uen2 #0 ^ v3 #0 ^ in1 #0 h e2 #0 ch eng2 #0 x i4 #0 t ong3 sil')tts.synthesis(text)>>>array([0.,0.,0.,...,0.,0.,0.],dtype=float32)web api democlone this repo,pip install flaskfirst, thenpython app.pyvisithttp://localhost:5000for tts interactiondo HTTP GET athttp://localhost:5000/api/tts?text=your%20sentenceto get WAV audio back:$curl-o"helloworld.wav""http://localhost:5000/api/tts?text=%E4%BD%A0%E5%A5%BD%E4%B8%96%E7%95%8C"%E4%BD%A0%E5%A5%BD%E4%B8%96%E7%95%8Cis url code of"你好，世界！"Use tacotron2 instead of fastspeech2wav generate from tacotron model is better than fast speech, however tacotron is much slower , to use Tacotron, change codeimportzhttstts=zhtts.TTS(text2mel_name="TACOTRON")# tts = zhtts.TTS(text2mel_name="FASTSPEECH2")
Package: zhTW2Num
zhTW2NumSummaryThis tool is for converting the number texts of Traditional Chinese into floatFloat value is supportedHow to use ittext = '金額總共兩千零二十元'
res = zhTW2Num(text)
print(res) # 2020.0
text = '長度二點零五公分
res = zhTW2Num(text)
print(res) # 2.05
Package: zhue
This library eases the interaction with Philips Hue devicesfrom zhue import Bridge

# upnp/nupnp discovery
b = Bridge.discover()

# register a new user on the Hue bridge
b.create_user()

# or use a predefined username
b.username = 'MY_USERNAME'

# query lights
b.lights

# turn light on and off
b.light('outdoor').on()
b.light('outdoor').off()

# query groups
b.groups

# turn all lights belonging to a group on
b.group('living').on()

# query sensors
b.sensors

# get temperature readings
[x.temperature for x in b.temperature_sensors]

# get light level readings
[x.light_level for x in b.light_level_sensors]

# get battery levels
[x.config.battery for x in b.sensors if hasattr(x.config, 'battery')]
Package: zhupengfei.eleme
# Python SDK 接入指南 & CHANGELOG## 接入指南1. Python version >= 3.02. 修改config.py中的app_key和secret配置以及callback_url配置，将开发者中心后台申请的应用沙箱环境的app_key和secret分别填入配置文件，填写callback_url3. 使用sdk提供的接口进行开发调试4. 上线前将config.py中__sandbox值设为True以及填入正式环境的key和secret以及callback_url## 代码示例### 企业应用- 第一步 引入sdk和项目配置mkdir sdk && cd sdk && git clone git@github.com:ahahaber/python-sdk.git```pythonfrom sdk.library.oauth.oauth_client import OAuthClientfrom sdk.library.apis.shop_service import ShopServicefrom sdk.library.protocol.rpc_client import RpcClientfrom sdk.config import Config```- 第二步 实例化一个oauth2.0客户端授权模式的授权对象```pythonoauth_client = OAuthClient(Config.get_app_key(), Config.get_secret(), Config.get_callback_url())```- 第三步 获取生成授权url```pythonauth_url = oauth_client.get_auth_url(state, scope)```- 第四步 在授权url中同意授权后，会跳转到CALLBACK_URL的页面，在通过链接上的参数，获取授权码code- 第五️步 通过code获取token对象,此步获取到的token对象可在有效期内一直使用，不用每次调用前都去获取一次，建议应用授权一次后存放到全局缓存中```pythontoken = oauth_client.get_token_by_code(code)```- 第六步 实例化远程调用的client对象```pythonrpc_client = RpcClient(token, Config.get_app_key(), Config.get_secret(), Config.get_api_server_url())```- 第七步 实例化一个服务对象```pythonshop_service = ShopService(rpc_client)```- 第八步 调用服务方法，获取资源数据```pythonshop = shop_service.get_shop(123456)```- 第九步 如果token过期，通过refresh_token换取新的token```pythonrefresh_token = token["refresh_token"]token = oauth_client.get_token_by_refresh_token(refresh_token, scope)```### 个人应用- 第一步 引入sdk和项目配置mkdir sdk && cd sdk && git clone git@github.com:ahahaber/python-sdk.git```pythonfrom sdk.library.oauth.oauth_client import OAuthClientfrom sdk.library.apis.shop_service import ShopServicefrom sdk.library.protocol.rpc_client import RpcClientfrom sdk.config import Config```- 第二步 实例化一个oauth2.0客户端授权模式的授权对象```pythonoauth_client = OAuthClient(Config.get_app_key(), Config.get_secret(), Config.get_callback_url())```- 第三️步 获取token对象,此步获取到的token对象可在有效期内一直使用，不用每次调用前都去获取一次，建议应用授权一次后存放到全局缓存中```pythontoken = oauth_client.get_token_in_client_credentials()```- 第四步 实例化远程调用的client对象```pythonrpc_client = RpcClient(token, Config.get_app_key(), Config.get_secret(), Config.get_api_server_url())```- 第五步 实例化一个服务对象```pythonshop_service = ShopService(rpc_client)```- 第六步 调用服务方法，获取资源数据```pythonshop = shop_service.get_shop(123456)```## CHANGELOG:### [v1.1.2]Release Date : 2017-02-09- [BugFix] 修复了token获取的问题### [v1.1.1]Release Date : 2017-01-24- [Feature] 重新支持个人应用授权，在oauth_client中添加get_token_in_client_credentials方法### [v1.1.0]Release Date : 2017-01-24- [Feature] 更新了授权模式为企业应用授权，个人应用授权的方法不在支持，对应的工具类由client_credentials更换为oauth_client### [v1.0.4]Release Date : 2017-01-19- [Feature] 新增UserService### [v1.0.3]Release Date : 2017-01-04- [Improvement] token传入的时候由字符串改为对象，并添加了本地校验### [v1.0.2]Release Date : 2016-12-21- [Improvement] updateItem添加了参数categoryId### [v1.0.1]Release Date : 2016-12-02- [Improvement] 升级使用python3### [v1.0.0]Release Date : 2016-11-19- [Feature] sdk完整实现- [Feature] 增加接口调用代码示例 demo/main.py
Package: zhy-tools
zhy_toolsTable of ContentsAbout The ProjectBuilt WithGetting StartedPrerequisitesInstallationUsageRoadmapContributingLicenseContactAcknowledgmentsAbout The ProjectThis project is built for normal work.
It contains timer, tag and so on sub-project for different  kinds of functions which are used for common job.(back to top)Built With(back to top)Getting StartedThis is an example of how you may give instructions on setting up your project locally.
To get a local copy up and running follow these simple example steps.PrerequisitesThis is an example of how to list things you need to use the software and how to install them.pip installpipinstallzhy_toolsUsageUse this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.For more examples, please refer to theDocumentation(back to top)LicenseDistributed under the MIT License. SeeLICENSEfor more information.(back to top)ContactYour Name  -zhaohongyu2401@yeah.net(back to top)AcknowledgmentsUse this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!Choose an Open Source LicenseGitHub Emoji Cheat SheetMalven's Flexbox CheatsheetMalven's Grid CheatsheetImg ShieldsGitHub PagesFont AwesomeReact Icons(back to top)
Package: zia
Zscaler Internet Access CLIThis is a CLI for Zscaler Internet Access.  This cli (or library package) is designed to support the Zscaler Internet Access (ZIA)APIandSD-WAN API(aka "Partner API").  All API referecnes can be found here [LINK].PLEASE READ THE DOCUMENTATION BEFORE CONTACTING ZSCALERThis CLI has been developed mainly using Python 3.8.5 on Ubuntu 20.04 LTS (Focal Fossa).NOTE:This repository will experience frequent updates.  To minimize breakage, public method names will not change.  If you run into any defects, please open issues [HERE.]Quick StartIf you have not verified your credentials, we suggest starting [HERE], unless you are already familar with this API.Set profile$ mkdir ~/.zscaler
$ cat > ~/.zscaler/profile.yaml <<EOF
default:
  url: https://admin.<ZIA-CLOUD>.net
  username: <ZIA-ADMIN-USER-ID>
  password: <ZIA-ADMIN-USER-PASSWORD>
  apikey: <ZIA-API-KEY>
partner:
  url: https://admin.<ZIA-CLOUD>.net
  username: <ZIA-PARTNER-ADMIN-USER-ID>
  password: <ZIA-PARTNER-ADMIN-USER-PASSWORD>
  apikey: <PARTNER-API-KEY>
EOFInstall package$ pip install ziaCheck out examples$ zia --help
$ zia policies --help
$ zia policies list
[
 {
  "id": 463593,
  "accessControl": "READ_WRITE",
  "name": "URL Filtering Rule-1",
  "order": 8,
  "protocols": [
   "ANY_RULE"
  ],
  "urlCategories": [
   "OTHER_ADULT_MATERIAL",
   "ADULT_THEMES",
   "LINGERIE_BIKINI",
   "NUDITY",
   "PORNOGRAPHY",
   "SEXUALITY",
   "ADULT_SEX_EDUCATION",
   "K_12_SEX_EDUCATION",
   "OTHER_DRUGS",
   "OTHER_ILLEGAL_OR_QUESTIONABLE",
   "COPYRIGHT_INFRINGEMENT",
   "COMPUTER_HACKING",
   "QUESTIONABLE",
   "PROFANITY",
   "MATURE_HUMOR",
   "ANONYMIZER"
  ],
...API SupportSD-WAN (Partner) APIVPN CredentialsLocationsActivateLicensingThis work is released under the MIT license, forked fromeparra's zscaler-python-sdk v0.5. A copy of the license is provided in theLICENSEfile.Reporting IssuesIf you have bugs or other issues specifically pertaining to this library, file themhere.Referenceshttps://help.zscaler.com/zia/apihttps://help.zscaler.com/zia/zscaler-api-developer-guidehttps://help.zscaler.com/zia/sd-wan-api-integration
Package: ziafont
ziafontZiafont reads TrueType/OpenType font files and draws characters and strings as SVG  elements. Unlike the SVG  element, the output of Ziafont's SVG will render identically on any system, independent of whether the original font is available.Ziafont supports fonts with TrueType glyph outlines contained in a "glyf" table in the font (these fonts typically have a .ttf extensions), or fonts with a "CFF " table (typically with a .otf extension). Kerning adjustment and glyph substitution are supported if the font has a "GPOS" table.Documentation is available atreadthedocs. There is also anonline demoof Glyph rendering using Ziafont.
Package: ziamath
ziamathRender MathML or LaTeX Math expressions as SVG using pure Python. Does not require a Latex installation, nor a network connection.Ziamath comes with the STIXTwoMath-Regular font installed for use by default.
Other Math-enabled Open Type fonts (TTF or OTF files) may also be used.Documentation is available atreadthedocs.Also try theonline demobased on Pyscript.
Package: zi-api-auth-client
zi_api_auth_clientThis library supports 2 types of authentication methods. Both the methods return a JWT token which you can use to make
api calls for enterprise-api on production.Username and password authentication:Usage:import zi_api_auth_clientjwt_token = zi_api_auth_client.user_name_pwd_authentication(“your_user_name”, “your_password”)PKI authentication:This type of authentication needs a private key and a client ID to generate the JWT token.Usage:import zi_api_auth_clientPaste your private key:key = ‘’’—–BEGIN PRIVATE KEY—–Your private key goes here—–END PRIVATE KEY—–‘’’jwt_token = zi_api_auth_client.pki_authentication(“your_user_name”, “your_client_id”, key)Note: If you get the error “ValueError: Could not deserialize key data.” when doing PKI authentication, make sure that your private key is properly formatted. Paste the private key as a multi-line string in python.Correct way:The following is the right way to paste your private key.‘’’—–BEGIN PRIVATE KEY—–Your private key goes here—–END PRIVATE KEY—–‘’’Wrong way:Pasting the private key as follows would throw the error “ValueError: Could not deserialize key data.” because there are extra spaces on each line in the key.‘’’—–BEGIN PRIVATE KEY—–Your private key goes here—–END PRIVATE KEY—–‘’’
Package: ziaplot
ziaplotZiaplot is for easy, lightweight, and Pythonic plotting of data in SVG format.In ziaplot, a plot is made from one or more Series added to an Axis.
Below, a Line series is added to an XyPlot axis.import ziaplot as zp
    with zp.XyPlot():
        zp.Line([1, 2, 3], [1, 4, 9])Ziaplot can plot discrete XY data, callable functions, histograms, pie charts, and bar charts.
Data can also be displayed in polar form or on a Smith Chart.