Saravanan666/pypi-org huggingface dataset:
Package: pinyin-to-ipa
pinyin-to-ipaCommand-line interface (CLI) and Python library to transcribe pinyin to IPA.
The tones are attached to the vowel of the syllable.Installationpipinstallpinyin-to-ipa--userUsageusage: pinyin-to-ipa-cli [-h] [-v] [--sep SEP] [--first] PINYIN

Command-line interface (CLI) to transcribe pinyin to IPA.

positional arguments:
  PINYIN         pinyin

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  show program's version number and exit
  --sep SEP      separator between phonemes (default: )
  --first        return only first result (default: False)Example$pinyin-to-ipa-cli"pang1"pʰa˥ŋ
$pinyin-to-ipa-cli"pang2"pʰa˧˥ŋ
$pinyin-to-ipa-cli"pang3"pʰa˧˩˧ŋ
$pinyin-to-ipa-cli"pang4"pʰa˥˩ŋ
$pinyin-to-ipa-cli"pang5"pʰaŋ
$pinyin-to-ipa-cli"pang"pʰaŋ
$pinyin-to-ipa-cli"hàng"xa˥˩ŋ
ha˥˩ŋ
$pinyin-to-ipa-cli"hàng"--first
xa˥˩ŋ
$pinyin-to-ipa-cli"hng"hŋ
$pinyin-to-ipa-cli"test"NoIPAtranscriptionavailable!Usage as library:frompinyin_to_ipaimportpinyin_to_ipaprint(pinyin_to_ipa("hang4"))# OrderedSet([('x', 'a˥˩', 'ŋ'), ('h', 'a˥˩', 'ŋ')])print(pinyin_to_ipa("ng"))# OrderedSet([('ŋ',)])Phoneme SetVowels:a
ɛ
e
ə
ɚ
ɤ
i
o
u
ʊ
yDiphthongs:ai̯
au̯
aɚ̯¹
ei̯
ou̯Consonants:f
h¹
j
k
kʰ
l
m
n
p
pʰ
ɹ̩²
ɻ²
ɻ̩²
s
t
ts
tsʰ
tɕ
tɕʰ
tʰ
w
x
ŋ
ɕ
ɥ
ʂ
ʈʂ
ʈʂʰ
z̩¹²
ʐ¹²
ʐ̩¹²Vowels and diphthongs contain one of these tones:˥ (first tone)
˧˥ (second tone)
˧˩˧ (third tone)
˥˩ (fourth tone)
(none)¹ These phonemes are not included if only the first transcription is used.² These consonants contain also tones.Referenceshttps://en.wikipedia.org/wiki/Help:IPA/Mandarinhttps://en.wikipedia.org/wiki/Standard_Chinese_phonologyhttps://en.wikipedia.org/wiki/Pinyinhttps://de.wikipedia.org/wiki/PinyinDuanmu, San. 2007. The Phonology of Standard Chinese. 2nd ed. Oxford ; New York: Oxford University Press.Lin, Yen-Hwei. 2007. The Sounds of Chinese. Cambridge, UK ; New York: Cambridge University Press.AcknowledgmentspypinyinFunded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project-ID 416228727 – CRC 1410CitationIf you want to cite this repo, you can use this BibTeX-entry generated by GitHub (seeAbout => Cite this repository).Taubert, S. (2024). pinyin-to-ipa (Version 0.0.2) [Computer software]. https://doi.org/10.5281/zenodo.10639971
Package: pinyintokenizer
Pinyin Tokenizerpinyin tokenizer（拼音分词器），将连续的拼音切分为单字拼音列表，开箱即用。python3开发。GuideFeatureInstallUsageContactCitationRelated-ProjectsFeature基于前缀树（PyTrie）高效快速把连续拼音切分为单字拼音列表，便于后续拼音转汉字等处理。InstallRequirements and Installationpip install pinyintokenizerorgit clone https://github.com/shibing624/pinyin-tokenizer.git
cd pinyin-tokenizer
python setup.py installUsage拼音切分（Pinyin Tokenizer）example：examples/pinyin_tokenize_demo.py:importsyssys.path.append('..')frompinyintokenizerimportPinyinTokenizerif__name__=='__main__':m=PinyinTokenizer()print(f"{m.tokenize('wo3')}")print(f"{m.tokenize('nihao')}")print(f"{m.tokenize('lv3you2')}")# 旅游print(f"{m.tokenize('liudehua')}")print(f"{m.tokenize('liu de hua')}")# 刘德华print(f"{m.tokenize('womenzuogelvyougongnue')}")# 我们做个旅游攻略print(f"{m.tokenize('xi anjiaotongdaxue')}")# 西安交通大学# not support englishprint(f"{m.tokenize('good luck')}")output:(['wo'],['3'])(['ni','hao'],[])(['lv','you'],['3','2'])(['liu','de','hua'],[])(['liu','de','hua'],[' ',' '])(['wo','men','zuo','ge','lv','you','gong','nue'],[])(['xi','an','jiao','tong','da','xue'],[' '])(['o','o','lu'],['g','d',' ','c','k'])tokenize方法返回两个结果，第一个为拼音列表，第二个为非法拼音列表。连续拼音转汉字（Pinyin2Hanzi）先使用本库pinyintokenizer把连续拼音切分，再使用Pinyin2Hanzi库把拼音转汉字。example：examples/pinyin2hanzi_demo.py:importsysfromPinyin2HanziimportDefaultDagParamsfromPinyin2Hanziimportdagsys.path.append('..')frompinyintokenizerimportPinyinTokenizerdagparams=DefaultDagParams()defpinyin2hanzi(pinyin_sentence):pinyin_list,_=PinyinTokenizer().tokenize(pinyin_sentence)result=dag(dagparams,pinyin_list,path_num=1)return''.join(result[0].path)if__name__=='__main__':print(f"{pinyin2hanzi('wo3')}")print(f"{pinyin2hanzi('jintianxtianqibucuo')}")print(f"{pinyin2hanzi('liudehua')}")output:我
今天天气不错
刘德华ContactIssue(建议)：邮件我：xuming:xuming624@qq.com微信我：加我微信号：xuming624, 进Python-NLP交流群，备注：姓名-公司名-NLPCitation如果你在研究中使用了pinyin-tokenizer，请按如下格式引用：APA:Xu, M. pinyin-tokenizer: Chinese Pinyin tokenizer toolkit for NLP (Version 0.0.1) [Computer software]. https://github.com/shibing624/pinyin-tokenizerBibTeX:@misc{pinyin-tokenizer,
  title={pinyin-tokenizer: Chinese Pinyin tokenizer toolkit for NLP},
  author={Xu Ming},
  year={2022},
  howpublished={\url{https://github.com/shibing624/pinyin-tokenizer}},}License授权协议为The Apache License 2.0，可免费用做商业用途。请在产品说明中附加pinyin-tokenizer的链接和授权协议。Contribute项目代码还很粗糙，如果大家对代码有所改进，欢迎提交回本项目，在提交之前，注意以下两点：在tests添加相应的单元测试使用python -m pytest来运行所有单元测试，确保所有单测都是通过的之后即可提交PR。Related Projects汉字转拼音：pypinyin拼音转汉字：Pinyin2Hanzi
Package: pinyin-tone-converter
pinyin-tone-converterPython library to convert pinyin with numbers to tone with marks. This library is based onhttps://github.com/chanind/pinyin-tone-converterInstallpipinstallpinyin-tone-converterHow to usefrompinyin_tone_converter.pinyin_tone_converterimportPinyinToneConverterPinyinToneConverter().convert_text("lu4")"lù"Examples can be seen in tests.
Package: pinyin-utils
README.mdUtilities for handling Chinese pinyinThe utilities in this library make it easy to use
Chinese pinyinThe unit tests are directly in the files and therefore
serve as documentation of the utility functions in it.
To execute the unit tests, you can just run:pytest -s pinyin_utils.pyTo get the library into a project:pip install pinyin_utilsSYNOPSIS of pinyin_utils.pycoming soonSYNOPSIS of translate.pyimportos,time,trio,asks,pprintfromtranslateimporttranslate,initDB,setApiKeyasyncdefmain():# --- The database need not exist.#     Furthermore, if you leave out this call,#     the database will be put at ./Translations.db by defaultinitDB('./Translations.db')# --- This env var key is the default if you leave this outsetApiKey(os.environ['GOOGLE_APIKEY'])hWords={'cat':None,'dog':None,}start_time=time.time()asyncwithtrio.open_nursery()asnursery:nursery.start_soon(translate,hWords)total=time.time()-start_timeprint(f"Total time:{total}")pprint.PrettyPrinter(indent=3).pprint(hWords)asks.init('trio')trio.run(main)# SYNOPSIS of tabdb.pycomingsoon# SYNOPSIS of englishWords.pycomingsoon# SYNOPSIS of ChineseDB.pycomingsoon
Package: pio
PIOA simplified, yarn-like alternative to pip.InstallationpipinstallpioUsagepioaddexample# Install example packagepioremoveexample# Remove example packagepioupgradeexample# Upgrade example package (leave blank to upgrade all)pioinstall# Install all packages from pio.jsonMigrate fromrequirements.txtpiomigraterequirements.txtProgrammatic usageimportpio# Import PIO packagepio.add("example")# Install example packagepio.remove("example")# Remove example packagepio.upgrade("example")# Upgrade example package (leave blank to upgrade all)pio.install()# Install all packages from pio.json
Package: piodispatch
PioDispatchDispatch blocking IO calls to threads wrapped in coroutines (technically,asyncio.Futures). It allows easily
integrating older blocking APIs with async/await syntax.InstallationInstall via pip:pip install piodispatchUsageThepiodispatchmodule defines two epicentral functions:dispatchandascoroutine.Usingdispatchworks as follows:frompiodispatchimportdispatchimportrequestsasyncdefmyfun():res=awaitdispatch(requests.get,'https://google.com/')# type(res) is requests.Responsedispatchpasses any*argsand**kwargson to its first parameter, which is assumed to be aCallable.Usingascoroutineworks slightly differently:frompiodispatchimportascoroutineimportrequestsrget=ascoroutine(requests.get)asyncdefmyfun():res=awaitrget('https://google.com/')# type(res) is requests.ResponseUnlikedispatch, which immediately executes the method,ascoroutinewraps the method in a coroutine which internally
simply callsdispatch. While it could technically also be used as adecorator,
this is effectively the same as simply writing anasync def.LicenseMIT LicenseCopyright (c) 2020 KirusePermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: pioled-display-plugin
PiOLED display plugin for the PioreactorDisplay growth rate, normalized OD, and temperature for each Pioreactor using theAdafruit PiOLED displayHardware requiredAdafruit PiOLED display0.1" 2x20-pin Strip Right Angle Female HeaderSoftware installationInstall from the UI, or run:pio install-plugin pioled-display-pluginYou may get a "hardware not installed" error. That's okay, we'll do that next.Hardware installationWith the Pioreactor turned off (you can pull the plug), install the 2x20 right-angle header onto the the 2x20 header on the Pioreactor HAT. Attach the PiOLED display onto the right-hand side of the new header, with the orientation as shown in the image below:Power back on the Pioreactor.
Package: pioneeravclient
===============================Python Pioneer AV Remote Client===============================.. image:: https://badge.fury.io/py/pioneeravclient.png:target: http://badge.fury.io/py/pioneeravclient.. image:: https://travis-ci.org/encinas/pioneeravclient.png?branch=master:target: https://travis-ci.org/encinas/pioneeravclient.. image:: https://pypip.in/d/pioneeravclient/badge.png:target: https://crate.io/packages/pioneeravclient?version=latestPython client to remotely control a Pioneer AV like VSX-528* Free software: BSD license* Documentation: http://pioneeravclient.rtfd.org.Features--------*Example--------Software Disclaimer--------"Python Pioneer AV Remote Client" is a software project wholly unaffiliated with Pioneer Electronics.In no way is "Python Pioneer AV Remote Client" authorized, supported, acknowledged, or endorsed by Pioneer Electronics.FURTHERMORE, you use this software project AT YOUR OWN RISK. The possibility indeed exists that bugs exist in thissoftware which could lead to catastrophic failure of your Pioneer Electronics equipment.In no event shall David Encinas or Pioneer Electronics be held in any way liable for malfunction, damage, ordestruction to your personal property (including but not limited to personal property created and/or manufacturedby Pioneer Electronics) arising from your use of (or failure to use) this project.History-------0.1.0 (2013-17-11)++++++++++++++++++* First release on PyPI.
Package: pioneer-sdk
Geoscanpioneer_sdkGeoscan PioneerSDK is a collection of tools for interfacing with Geoscan Pioneer UAVs.
It provides a succinct and convenient API to drones' functions such as autonomous flight, acquiring frames from a drone's camera, and more.
Please feel free to exloreexamples/directory for stepping stones and inspiration.InstallationUse the package managerpipto install pioneer_sdk.python3-mpipinstallpioneer_sdkor
python3-mpipinstallgit+https://github.com/geoscan/pioneer_sdk.git@masterUsagefrompioneer_sdkimportPioneerpioneer_mini=Pioneer()if__name__=='__main__':...DocumentationYou can read information about package in the documentation pagereadthedocsAdditional informationYou can find the examples and the camera calibration script in the homonymous folders.
Unlike "bare"pioneer_sdk, they require a broader set of dependencies.
To satisfy the requirements, run:pip:python3-mpipinstall-rrequirements.txt
Package: piopiy
PIOPIY Python SDKThe PIOPIY python SDK is used to integrate communications into your python applications using the PIOPIY REST API. Using the PIOPIY python SDK, you will be able to make voice calls and can control your call flows.InstallFollow the below installation instructionsPrerequisitesPrerequisites for javascript web server.python(>= 2.7.16 required)pip(>= 18.1 required)InstallationInstall the SDK using npm$pipinstallpiopiyAuthenticationIn order to authenticate your app, and to make an API request, you should have an app id and secret for authentication. Find your App ID and secret in yourPIOPIY dashboardSpecifiy the authentication credentialsimportpiopiyclient=piopiy.RestClient('your_app_id','your_app_secret')Make a callTo make a call, mention the to_number, piopiy_phone_number andanswer_url.response=client.make('your_to_number','your_piopiy_phone_number','your_answer_url')Hold a callTo hold a call, mention the cmiuuid of the call.response=client.hold('cmiuuid')Unhold a callTo unhold a call, mention the cmiuuid of the call.response=client.unhold('cmiuuid')Toggle a callTo toggle a call, mention the cmiuuid of the call.response=client.toggle('cmiuuid')Hangup a callTo Hangup a call, mention the cmiuuid of the call.response=client.hanup('cmiuuid')More ExamplesRefer to thepiopiy docsfor more examples. Now create thePIOPIY accountand setup the flask server and test out your integration in few minutes.Reporting issuesFor any feedbacks and problems, you can report us byopening an issue on github.
Package: pioreactor
The Pioreactor is an open-source, affordable, and extensible bioreactor platform. The goal is to enable biologists, educators, DIYers, biohackers, and enthusiasts to be able to reliably control and study microorganisms.We hope to empower the next generation of builders, similar to the Raspberry Pi's influence on our imagination (in fact, at the core of our hardwareisa Raspberry Pi). However, the builders in mind are those who are looking to use biology, or computer science, or both, to achieve their goals. For research, the affordable price point enables fleets of Pioreactors to study large experiment spaces. For educators and students, the Pioreactor is a learning tool to study a wide variety of microbiology, electrical engineering, and computer science principles. For enthusiasts, the control and extensibility of the Pioreactor gives them a platform to build their next project on-top of.Where can I get one?Purchaseon our website.DocumentationAll the documentation isavailable on our docs site.
Package: pioreactor-air-bubbler
Pioreactor air bubblerAdd an air-pump / bubbler to yourPioreactor. This pump can run continuously, or if OD reading is running, will stop during a reading.Usagepio run air_bubblerInstallationSoftwareFrom the command line, run:pio install-plugin pioreactor_air_bubbler(Optional) Edit the following to yourconfig.ini[PWM]
<the PWM channel you pick>=air_bubbler


[air_bubbler.config]
duty_cycle=10
hertz=200
pre_delay_duration=1.5
post_delay_duration=0.75
enable_dodging_od=1HardwareConnect the PWM channel to the air pump's power source.Connect a tube between the air pump and a tube in the vial's cap, via luer lock.The connecting tube in the vial cap can be pushed into the liquid for bubbling, or left in the headspace to exchange air.Optional: a 0.22 micron filter can be placed along the air path to filter contaminants.
Package: pioreactor-basic-auth-for-ui
pioreactor-basic-auth-for-uiThis adds basic auth to access your Pioreactor UI.WarningThe web server is still HTTP. Malicious userson your networkcan read any data going back and forth, including an encoded version of the user/name password.InstallationOn your leader Pioreactor, runpio install-plugin pioreactor-basic-auth-for-uiNext, execute:pio run change_ui_credentials <ui_username> <ui_password>Refresh the UI and you should be greeted with a pop up.Add the API key frompio run change_ui_credentialsto your config.iniFinally, you should restart the leader now, or later.
Package: pioreactor-custom-dosing-automation
An example of how to include a custom dosing / LED / temperature automationThis is an example repository for creating a custom automation for thePioreactor. By turning your automation into a repository, it can be installed easier into your Pioreactor cluster, and can be shared with others:If available on PyPI:pio install-plugin <plugin-name>(And alsopiosto install across your entire cluster.)If avaiable on Github:pio install-plugin <plugin-name> --url <git+ url>Components to make your own automation pluginPython logicThis is the core logic that interacts with the pioreactor software. See the classMyCustomDosingAutomationfor details. Note the following:subclasses fromDosingAutomationContrib,LEDAutomationContrib, orTemperatureAutomationContribrequires akeyrequires anexecuteThere are many other examples of automations in our corerepositoryIt's important that the class is in this the main__init__.py, as this is howDosingControllerdiscovers it.setup.pyThis can be copy-pasted into your project, with the fields updated. The most important field isentry_points={'pioreactor.plugins':'pioreactor_custom_dosing_automation = pioreactor_custom_dosing_automation'},This is necessary, and your code should be updated with the correct name of your plugin.Adding specific settings to config.iniUsing the fileadditional_config.ini(must be located in the source code's folder), you can add user-editable settings for your automation. This will be merged into theconfig.ini.Adding your automation to the UIYou can specify the automation in the automation drop-down in the UI, and specify its fields and default values to be shown to the user.Create a folder calleduiin the source code folder. Inside it, create a folder calledcontrib. And inside that, create a folder depending on your automation type:dosing,led, ortemperature. See below for example directory structure.MANIFEST.inIn order for Python to includeuiand/oradditional_config.ini, we need to specify them in aMANIFEST.infile. Copy-paste theMANIFEST.infrom this project, and make the appropriate substitutions in its contents.Example directory structure for your pluginplugin_name/
    __init__.py
    other_python_files.py
    additional_config.ini
    ui/
      contrib/
        automations/
          dosing/
            plugin_name.yaml        OR
          led/
            plugin_name.yaml        OR
          temperature/
            plugin_name.yaml
setup.py
MANIFEST.in
Package: pioreactor-logs2slack
Pioreactor Logs2SlackThis is a Pioreactor plugin to post a bioreactor's logs to a Slack channel.InstallationThis is a two part installation.1. Setting up your Slack workspaceYou probably want a dedicated channel for incoming logs, as it can get chatty. So go ahead
and create a dedicated channel in your Slack workspace. I've called mineexperiment_logs.InYour Apps, click "Create New App" -> From "Scratch". Give it a name (something descriptive, likePioreactor Logs2Slack), and select the workspace.On the next page, select "Incoming Webhooks", and turn "Activate" toOnClick "Add new webhook to workspace"In the next section, select the channel you made in step 1. Click "Allow".On the next page, under "Webhook URL", is your new webhook URL, something likehttps://hooks.slack.com/services/ABC.../124....Important: this is private, don't share it with untrusted people, don't commit it into Github, etc.2. Installing this pluginIn your Pioreactor interface, click on "Plugins". Findpioreactor-logs2slack, and click "Install" beside it.Oryou can runpio install-plugin pioreactor-logs2slack. Either way, this plugin will be installed on your leader Pioreactor.After installing (should take less than a minute), click on "Configuration". At the bottom of the page will be a section called[logs2slack].[logs2slack]
slack_webhook_url=
log_level=INFOAdd your webhook URL from step 6. here. Click "Save". You can also change the level of logs to report, seePython logging levels.Power-cycle (reboot) the Pioreactor leader, or ssh into the Pioreactor leader and runsudo systemctl restart pioreactor_startup_run@logs2slack.serviceIn your dedicated Slack channel, you should start to see logs arrive!
Package: pioreactor-relay-plugin
Pioreactor relay pluginThis relay plugin allows the user to turn on or off any additional hardware piece on their Pioreactor at a specific channel (as stated in the Configuration).InstallationInstall from the Pioreactor plugins web interface or the command line:pio install-plugin pioreactor-relay-plugin    # to install directly on the Pioreactor

# OR, on the leader's command line:

pios install-plugin pioreactor-relay-plugin   # to install on all Pioreactors in a clusterOr install through the web interface (Pluginstab). This will install the plugin on all Pioreactors within the cluster.(Optional) Edit the following to yourconfig.ini, or in theConfigurationstab on the web interface:[PWM]
<the PWM channel you pick>=relay

[relay.config]
hz=100
post_delay_duration=0.2
pre_delay_duration=1.5
enable_dodging_od=1UsageThrough the command line:pio run relayThrough the UI:UnderManage, there will be a newActivitiesoption calledRelay. Editable settings include an "on/off" switch to allow the plugin to be toggled while active.Plugin documentationDocumentation for plugins can be found on thePioreactor docs.
Package: piot
PiotLoad and run device drivers at specific intervals, mainly for sensor reading, based on a single configuration file. Supports activation pins for device multiplexing.List of drivers currently implemented:adsl34xamg88xxbme280bme680dht (both 11 and 22)dummy (for extra activation pins, for example)gdk101hcsr04hmc5883litg320xmhz14mlx90614pozyxqmc5883lrd200msds011ssd1306tfminitsl2561tsl2591
Package: pioton
Píotón - Write Python code in Irish—Installation:pip: pip install piotongithub: clone the repo, move the contents of the pioton/ folder somewhere accessible by your PythonPATH—USAGE Transpiled:write your píotón code in one or more scripts with a ‘.pag’ (Python as Gaeilge) extension, and runtiomsaitheoir file.pag [file2.pag […]]which will transpile the píotón scripts into pure Python ‘.py’ files. Runningtiomsaitheoir -hwill provide further details and examples, and runningtiomsaitheoir -swill show an overview of the syntax for píotón codeUSAGE IPython:simply import píotón in any IPython environment (including Jupyter Notebooks) and start writing your code as Gaeilge.
Callpioton.show_syntax()to print a full description of the new irish syntax.THIS IS FOR FUN - DO NOT USE THIS FOR ANYTHING IMPORTANTI can’t stress that enough, I really didn’t make sure it’s robust at all, it’s against Python standards, any code written in it will be completely unmaintainable, etc.—