Saravanan666/pypi-org huggingface dataset:
Package: bond-cli
Bond Command Line InterfaceEDIT: This project is in a beta state. We released it on the principle of release early & often. It is here just in case it benefits a member of the Bond Home community. Your mileage may vary!PurposeThis tool exists to make it easy to manipulate a Bond from a command line,
for use by:Bond communityinternal use in engineering and customer supportInstallationInstall withpipinstallbond-cliGetting StartedFind Bonds on local network:bonddiscoverSelect a Bond and set the token so we can go deeper:bondselect<yourBond'sIDoraprefix>If your Bond's token is unlocked,selectwill retrieve and store it. Otherwise, you have
a couple options. You can unlock the token yourself (a power cycle is the easiest way, it'll
be unlocked for a period after a reboot), and run the following to automatically retrieve
and store it:bondtokenOr, you can manually set the token, which you could find in the Bond Home app
in the Bond's settings screen.bondtoken<yourBond'stoken>Now that you've selected a Bond and stored its token, you're ready to interact with it.Check its firmware version:bondversionDevice ManagementCreate a template device:bonddevicescreate--name"Formidable Fan"--location"Bedroom"--templateA1--addr101--freq300000--bps1000--zero_gap1234You can then see the fan on your Bond Home app.List existing devices:bonddeviceslistDelete one or more devices:bonddevicesdelete<DEVICE1_ID><DEVICE2_ID>Device GroupsCreate a device group:bondgroupscreate--name"All Shades"<BOND1_ID>:<DEVICE1_ID><BOND2_ID>:<DEVICE1_ID><BOND2_ID>:<DEVICE2_ID>List the existing device groups:bondgroupslistList the device groups on a single Bond (may not represent the whole group):bondgroupslist--bond-id<BOND_ID>Live LoggingYou can also start a livelog:bondlivelog--levelinfoUpgrade Your BondYou can upgrade your selected bond:bondupgradebetaGetting HelpGet more help with:bond-hor you can get help with any subcommandbondselect-hContributingBug reports and feature requests in the form of issues and pull requests are strongly encouraged!To develop locally, you can clone the repository from github, remove the package if already present, then install it to pip in local editable mode:gitclonegit@github.com:bondhome/bond-cli.gitcdbond-cli
pipuninstallbond-cli
pipinstall-e"."Now all changes made in your local copy ofbond-cliwill be reflected in thebondexecutable.Release ProcedureTo make a release, bump the version number insetup.pyon trunk, then make an annotated taggittag-a"v1.8.7"with a version matching that insetup.py. You'll be prompted to write some release notes.
Alternatively, use the Github repository's releases interface to create a release.Upon pushing the tag or publishing the release, CI will deploy to PyPi.
Package: bondgraph
bondgraphA python library for creatingbond graphsof
physical systems and generating differential equations.It heavily relies onsympyfor manipulation and simplification of equations symbolically.InstallationInstall via pip:pip install bondgraphTo install with extra dependencies for visualization using graphviz:pip install bondgraph[visualization]UsageCreate aBondGraphobject and addBondobjects connecting various elements:# This example generates the following simple bond graph:## Se ---> 1 ---> I#         |#         v#         Rfrombondgraph.coreimportBond,BondGraphfrombondgraph.junctionsimportJunctionEqualFlowfrombondgraph.elementsimportElement_R,Element_I,Source_effortfromsympyimportSymbolforce=Source_effort("force",Symbol("F"))friction=Element_R("friction",Symbol("k_f"))inertia=Element_I("inertia",Symbol("m"),Symbol("p"))mass_object=JunctionEqualFlow("mass_object")graph=BondGraph()graph.add(Bond(force,mass_object))graph.add(Bond(mass_object,friction))graph.add(Bond(mass_object,inertia))state_equations=graph.get_state_equations()# Print the dictionary of state variables and the right hand side of their state equations:print(state_equations)# {p: F - k_f*p/m}# If using the optional visualization features, generate and display a graphviz graph:frombondgraph.visualizationimportgen_graphvizoutput_graph=gen_graphviz(graph)output.view()LimitationsAlgebraic loops are not handled at all and will result in failure to generate equations.Non-integrating (differential) causality for C or I elements is not currently possible.
Package: bond-home
Bond Home Library for PythonA Python library for interacting with the Local API of a Bond Home Hubhttps://bondhome.io/Local API Docs:http://docs-local.appbond.com/Installationpip3installbond-homeUsagefrombondimportBondimporttimebond=Bond(bondIp='192.168.1.100',bondToken='abcdefghijklmnop')bond.toggleLight('5842137d')time.sleep(2)bond.toggleLight('5842137d')
Package: bond-order-processing
The current library allows you to process Mayer bond orders from the CPMD output fileLibrary version: 1.1.2Coverage ReportFileStmtsMissCoverMissingmain/BondOrderProcessing/bond_order_processingcalculations.py352997%40,44,51,171,324,505,660,662–663calculations_for_atoms_lists.py166398%84–87input_data.py4225387%88–100,122–155,185–189,225,234–238,306,319–320,379–383,430–441,478–479,485,500,507,664,671,709,738,742,765,772,818,826,872,878,892,943,955TOTAL9416593%LinksDocumentation pageGit repositoryMore information about CPMD -https://github.com/CPMD-codeYou can calculate from Mayer bond orderscoordinations numbers,Qi units,Connections between atoms,Relation between bond order and length,Covalence (The sum of the bond orders of a given atom. This  value is close to the valence if atom have only purely covalent bonds)
Package: bondzai.media-handler
DescriptionBondzai Media Handler is a tool used to convert media data (audio,
image, video) file to a raw binary file. For the present, the file’s
Mime accepted are the following:Audioaudio/x-wavaudio/mpegImageimage/jpegimage/pngimage/tiffVideovideo/mp4video/quicktimevideo/webmInstallationffmpegIn order to work, this tool needsffmpeginstalledLinux/Ubuntuapt-getinstallffmpegMacOS (Homebrew)brewinstallffmpegbondzai.media-handlerpipinstallbondzai.media-handlerUsagefrombondzai.media_handlerimportget_raw_data,get_metadata,\save_binary,load_binary# Getting raw data from a media filedata=get_raw_data("path/to/file.[mp3|mp4|wav|webm|jpg|png|...]")# Getting meta data from a media filemeta=get_metadata("path/to/file.[mp3|mp4|wav|webm|jpg|png|...]")# Saving raw data in a binary filesave_binary("path/to/file.bin",data)# Loading raw data from a binary filedata=load_binary("path/to/file.bin")
Package: boned-html
Boned html is a small python library.It helps you extract text from an html (in the form of a lxml tree),
process this text, to classify it,
reinject text in the html with specific css classes.The typical use is for anotating an html with classes.
For example you are categorizing text,
and you want the user to visualize those categories on the original html.The text will be extracted in a smart way:
it won’t stop at semantic tags (<i>,<em>, etc.)
but at other tags (<h1>,<p>, etc.).As you reinject the text, semantic tags will be added back to text,
and general html layout will be respected.Installationpip install boned-htmlUsageThe fonctionalities are provided by the classboned_html.Chunkerwith methods:chunk_treeto get text chunks from an lxml tree.unchunkto put back chunks together providing css classes for pieces of text.A quick example: imagine we have a function to detect a tel number value in a sentence:>>> import re
>>> from itertools import cycle
>>> def get_tel(text):
...    splits = re.split(r"(\+?(?:\d\s*){8,13})", text)
...    return list(zip(splits, cycle([None, "tel"])))
>>> get_tel("call +33 00 00 00 00")
[('call ', None), ('+33 00 00 00 00', 'tel'), ('', None)]And an html:>>> html = '''
... <html>
...   <head><title>call +33 00 00 00 00</title></head>
...   <body>
...     <p>To get an operator <em>call</em></p>
...     <p><b>call</b> <em>(country) +33</em> 00 00 00 00</p>
...   </body>
... </html>
... '''We chunk:>>> import lxml.html
>>> from boned_html import HtmlBoner
>>> tree = lxml.html.fromstring(html)
>>> boned = HtmlBoner(tree)We evaluate each text and assign “tel” class to it if there is a telephone:>>> for i, text in enumerate(boned):
...     if text is not None:
...         boned.set_classes(i, get_tel(text))We now rebuild the tree:>>> boned.tree
<Element html ...>
>>> print(boned)
<html>
  <head><title>call +33 00 00 00 00</title></head>
  <body>
    <p>To get an operator <em>call</em></p>
    <p><b>call</b> <em>(country) </em><span class="tel" id="chunk-6-1"><em>+33</em> 00 00 00 00</span></p>
  </body>
</html>We have a specific span around our number,
also opening and closure ofemtag was handled,
and phone number inhead/titleremains the same.
Package: boneIO
Example usage:
boneio run -dd -c config.yamlInstallation instructionssudo apt-get install libopenjp2-7-dev libatlas-base-dev python3-venv libjpeg-dev zlib1g-dev
mkdir ~/boneio
python3 -m venv ~/boneio/venv
source ~/boneio/venv/bin/activate
pip3 install --upgrade boneio
cp ~/venv/lib/python3.7/site-packages/boneio/example_config/*.yaml ~/boneio/Edit config.yamlStart appsource ~/boneio/venv/bin/activate
boneio run -c ~/boneio/config.yaml -dd
Package: bone-pytex
PyTex本代码库使用了JelteF的PyLaTex代码并做了一定的修改。PyTex主要用于简化LaTex的编写，你也可以把它当做一个MarkDown到LaTex代码的转换工具。LaTex语法并不是使用本库必须的要求，但是熟悉LaTex语法有助于更好的使用本库。背景...优势LaTex本辅助库可以有效避免拼写错误，漏加空格等低级错误。本辅助库可以借助Python提供更多的功能。本辅助库在插入图片、生成表格等方面有巨大优势。Word本辅助库可以更加自由地编写文档。本辅助库可以借助Python提供更多的功能。安装这个项目使用Python开发，请确保你本地安装了它。建议使用pip安装本库。$pipinstallbone-pytex使用说明使用时，你必须创建一个文档实例。frompyteximportMathDocumentdoc=MathDocument('数学建模',packages=["amsmath","graphicx","amssymb","cite"],standard="GJS",preface=False)如果你使用了默认的标准页，可以通过命令添加队伍信息doc.set_information(problem_num="A",team_num="0001",school_name="最强大学",member_names=("a","b","c"),supervisor="teacher",date=(2020,4,20))你可以将md文档转换为latexfrompytex.utilsimportmd2tex,MarkDownlatex_code1=md2tex(path="md/abstract.md")latex_code2=md2tex(file=open("md/abstract.md",'r',encoding='UTF-8'))latex_code3=MarkDown("md/abstract.md")你可以在文档中添加标题、摘要、目录。doc.add_title()keys=["出租车资源配置","供求匹配模型","缓解程度判断模型","分区域动态实时补贴方案"]doc.add_abstract(latex_code,keys)doc.add_toc()你可以在文档中添加 使用固定格式编写的md文档 作为一个section。doc.add_section(path="md/wtcs.md")你可以在文档中添加指定标题和内容的 section。doc.add_section(title="符号说明",content="大家好啊")你可以在文档中添加变量，将会自动添加到变量表中，同时还可以使用符号转化器将其转换为latex代码frompytex.utilsimportSymbolTransformerfrompylateximportNoEscapex=doc.add_var("x",NoEscape("这是一个优秀的$x$"))st=SymbolTransformer()formula,name=st.sym2tex((x**2+7)*5)最后，你可以生成tex文档，或者pdf文档doc.generate_pdf('resources/math',compiler='XeLatex',clean_tex=False,clean=False)MarkDown文档编写格式指南在绝大多数情况下使用普通MarkDown即可，但有些功能是原生MarkDown不具备的，因此我们扩展了它的功能。示例完整代码可以参考demo结尾的几个文件。特色功能提供了试卷编写模块，详情见pytex/exam/README.md。支持引用特定规范的Markdown文件。支持定义局部操作（由于功能定位不清楚暂时废弃）。例如:
在经常用到导数和积分的局部区域将\text{d}定义为\d，
而在其他区域将\dot定义为\d，
注意定义命令符时应尽量避免歧义，
例如若将\text{d}定义为d，则ad也会被错误识别。支持部分Markdown语法转LaTex。伪代码编写。针对数模进行了大幅度优化，提供了高教社标准和西电标准（非官方）。计划实现功能神经网络结构可视化，输入处理形状变换可视化。更好地和symbol交互。Python端编辑公式。Python端添加文献。图制作。更新日志(2020.04.30) v0.1.6 发布支持MarkDown端伪代码编写。(2020.04.24) v0.1.5 发布支持MarkDown的图片、超链接、代码块到LaTex的转换。(2020.04.22) v0.1.4 发布完善了MarkDown到LaTex的转换功能。使用了成熟的MarkDown解析模块，对md的处理更自然了。(2020.04.17) v0.1.3 发布大幅度优化了数模模块。优化了结构。支持添加sympy变量。(2020.04.15) v0.1.2 发布增加了数模模块。调整了结构。(2020.04.11) v0.1.1 发布修复了部分问题。(2020.04.08) v0.1.0 发布实现了DocTree，用于将dict转化为文档结构。维护者@詹荣瑞如何贡献非常欢迎你的加入！提一个 Issue或者提交一个 Pull Request。贡献者感谢以下参与项目的人：@Lynn-Speng、@WilsonLuo19。使用许可禁止将本辅助库及使用本辅助库制作的文档上传到百度网盘。GNU© Rongrui Zhan
Package: bonfig
Bonfig>>> import os, json, configparser
>>> from bonfig import Bonfig, Store
>>>
>>> class Config(Bonfig):
...     with Store() as basic:
...         VERSION = basic.Field('0.2')
...
...     with Store() as secrets:
...         CREDENTIALS = secrets.Field(default="XXXXXX-XX")
...         PIN = secrets.IntField(default=1234)
...
...     with Store() as data:
...         SAMPLE = data.Field()
...         AVERAGE = data.FloatField()
...
...     with Store() as prefs:
...         with prefs.Section('LINES') as lines:
...             X_MARKER = lines.Field()
...             SHOW = lines.BoolField()
...
...         with prefs.Section('META') as meta:
...             DATE = meta.DatetimeField(name='start', fmt='%d/%m/%y')
...
...     def load(self, fn):
...         self.basic = {}
...         self.secrets = dict(os.environ)
...
...         with open(f"examples/{fn}.json") as f:
...             self.data = json.load(f)
...
...         with open(f"examples/{fn}.ini") as f:
...             self.prefs = configparser.ConfigParser()
...             self.prefs.read_file(f)
...
>>> c = Config("bonfig")
>>> c.VERSION
'0.2'
>>> c.CREDENTIALS
"XXXXXX-XX"
>>> c.AVERAGE
3.14159
>>> c.SHOW
True
>>> c.DATE
datetime.datetime(1982, 11, 18, 0, 0)
>>> c = Config(frozen=False)  # create a mutable version
>>> c.AVERAGE = 365.2
>>> c.AVERAGE
365.2Stop writing your configurations as dictionaries and strange floating dataclasses, make themBonfigsand make use of
a whole bunch of great features:Declare your configurations as easy to read classes.Pull in values from various sources into one neatly packaged class.Get all the power that comes with classes built into your configurations - polymorphism, custom methods and custom initialisation.Sleep safe in the knowledge your config won't change unexpectedly with configuration withBonfig.freeze.Ready made serialisation and deserialisation with customFields-IntField,FloatField,BoolFieldandDatetimeField, withtools to help you easily define your own.Installationpip install bonfigPlease checkout the project docs for more information:https://0hughman0.github.io/bonfig/index.html
Package: bonfire-tg
bonfirebonfire this framework forTelegram Bot APIbuilt onrequestsinstalinggitclonehttps://github.com/Help-urself/bonfireorpipinstallbonfire-tgExamplesClickSimplesend_messagerequest#git cloneimportosimportsyssys.path.append(os.path.abspath('you path to bonfire'))frombonfireimport*frombonfire.methodsimport*token="TOKEN"msg=message(token)@bot.handler(token,command="/start")#command handlerdefstart():send_message(token,chat_id=msg.chat_id,text=f"<b>Hello </b> @{msg.author_username}",parse_mode='HTML')#send messageif__name__=='__main__':whileTrue:ifbot.status(token)=="ok":#do not edit everything in startupbot.start_command(sys.modules[__name__])bot.end_status(token)bot.start(token).start()#pip installimportosimportsysfrombonfireimport*frombonfire.methodsimport*token="TOKEN"msg=message(token)@bot.handler(token,command="/start")#command handlerdefstart():send_message(token,chat_id=msg.chat_id,text=f"<b>Hello </b> @{msg.author_username}",parse_mode='HTML')#send messageif__name__=='__main__':whileTrue:ifbot.status(token)=="ok":#do not edit everything in startupbot.start_command(sys.modules[__name__])bot.end_status(token)bot.start(token).start()
Package: bonfo
Bonfo - Betaflight configuration managementDocumentation:https://destos.github.io/bonfoGitHub:https://github.com/destos/bonfoPyPI:https://pypi.org/project/bonfo/Free software: MITFeaturesConnects to Betaflight flight controllersMore soon ( lol )CreditsThis package was created withCookiecutterand thewaynerv/cookiecutter-pypackageproject template.
Package: bongo
Bongo=====A simple API wrapper for the [Iowa City bus dataAPI](http://www.ebongo.org/api/) -- mainly to use as an example for anupcoming blog post.Installation------------You can install the API wrapper using [`pip`](http://pypi.python.org/pypi/pip).pip install bongoUsage-----There are two ways of interacting with the Bongo API.The first way is just interacting with the `bongo` module.```python>>> import bongo>>> bongo.routes(){"routes": [1234, 5678, 9999]}>>> bongo.route('lantern', 'coralville'){"coralville's": {"lantern": "route"}}>>> bongo.stops(){"stops": [1234, 5678, 9999]}>>> bongo.stop(8350){"stop": {"8350": "information"}}>>> bongo.predict(8350){"stop": {"8350": "predictions"}}```The second way is interacting with the `Bongo` class.```python>>> from bongo import Bongo>>> b = Bongo()>>> # List of all Bongo routes.>>> b.routes(){"routes": [1234, 5678, 9999]}>>> # Info for a specific route and agency.>>> b.route('lantern', 'coralville'){"coralville's": {"lantern": "route"}}>>> # List of all stops.>>> b.stops(){"stops": [1234, 5678, 9999]}>>> # Information for a specific stop.>>> b.stop(8350){"stop": {"8350": "information"}}>>> # Predict the arrival times at a specific stop.>>> b.predict(8350){"stop": {"8350": "predictions"}}>>> # Bongo can also be used to return XML data.>>> Bongo('xml').routes()<ohai><xml><data></data></xml></ohai>```Copyright---------Copyright (c) 2012 Code for America. See [LICENSE][] for details.[license]: https://github.com/codeforamerica/bongo/blob/master/LICENSE.mkd[![Code for America Tracker](http://stats.codeforamerica.org/codeforamerica/cfa_template.png)][tracker][tracker]: http://stats.codeforamerica.org/projects/bongo
Package: bongocat
Installingpython3 -m pip install bongocatUsageCreate a folder and fill it with images of your cat pressing buttons.Rename each image to the button permutation you'd like it to appear for.cd /path/to/that/folderMake sure there is a file named-(customizable) for neutral state.bongocatThis will invoke the script. Seeimagesfor examples of file sets.
Package: bong-proj
A sample Python project
A sample project that exists as an aid to the Python Packaging User Guide's Tutorial on Packaging and Distributing Projects.This project 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.The source for this project is available here.Most of the configuration for a Python project is done in the setup.py file, an example of which is included in this project. You should edit this file accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written using reStructuredText or markdown with the appropriate key set. 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: bonito
Bonito is a very simple tool to generate numerated tickets (for instance, for solidarity events)
ready to be printed, clipped and cut, starting from a SVG template.The idea is to make “books” of consecutive tickets, in this way:It requires Inkscape and Ghostscript.How to use itDesign your tickets as SVG marking the placeholder for the number
asXXX[1]. See thisdesign) as an example.Then run passing the number of consecutive tickets to clip together and the number of documents
to generate. For example:bonito mayores.svg --group_by=5 --documents=2This produces 2 documents,mayores-001-015.pdfandmayores-016-030.pdf.See theoriginal blog post from 2010(in spanish) for further details.[1]You could use as many Xs as digit you want in the mark, and pass--markin the command line.
For example, to print numbers from 0001, you could useXXXXas the mark and
pass–mark=XXXX
Package: bonltk
Natural Language Toolkit for Boyig (BoNLTK)BoNLTK aims to provide out of the box support for various NLP tasks that an application developer might need for Boyig (TIbetan) language.Installpip install bonltkHow to useComming soonTodo:Tokenizers:Hugging facetokenizerssentencepiece tokenizerCompare above tokenizers withbotokWordVectors:Word2Vec withgensimEmloLanguage Models:HuggingfacetransformersUMLFit Language model withfastaiText Similarity:Sentence similarity using UMLFit, like ininltkImplement Text similarity techniques mention in [here]((https://medium.com/@adriensieg/text-similarities-da019229c894)Compare all the text similarity algorithmsResrouce links:UMLFit for sequence taggingText Similarities : Estimate the degree of similarity between two texts
Package: bonnette
BonnetteASGI adapter for Azure Functions.Requirements: Python 3.6Installationpip3installbonnetteExampleimportloggingimportazure.functionsasfuncfrombonnetteimportBonnetteasyncdefapp(scope,receive,send):assertscope["type"]=="http"awaitsend({"type":"http.response.start","status":200,"headers":[[b"content-type",b"text/html; charset=utf-8"]],})awaitsend({"type":"http.response.body","body":b"<html><h1>Hello, world!</h1></html>"})defmain(req:func.HttpRequest)->func.HttpResponse:logging.info("Python HTTP trigger function processed a request.")handler=Bonnette(app)returnhandler(req)
Package: bonnibel
BonnibelBonnibel (pbfor short) buildsNinjabuild files for a set of modules.
Bonnibel doesn't try to hide Ninja's build files or syntax from the user. It
mostly exists to do the legwork of auto-generating all the build rules, while
letting the user control the variables used or even write custom rules.
Bonnibel's configs let you define aproject, and a set ofmoduleswithin
that project to be built. You must also specify aconfigurationfile to set
the base compilation programs and arguments for earchtargetplatform.For example, Bonnibel was created forjsix, where I needed the ability to
build tools or libraries for my multiple target environments (e.g., for use
both in the UEFI bootloader and in the kernel), while building the bootloader,
kernel and user-space applications all with different compiler and linker
options. See jsix's build files for an example of use.
Package: bonniebully
Bonnie BullyThis package was developed to simplify date manipulation.How to use?Importing the packages and creating the current day variable for manipulation.(Importando os pacotes e criando a variavem de dia atual para manipulaÃ§Ã£o.)from bonniebully import intdate
from datetime import date 

current_day = date.today()
print('Current day:', current_day)One month ahead of the current date with the start date of the month(Um mÃªs a frente da data atual com a data inicial do mÃªs)M1 = intdate('MONTH', current_day, 1,'B').getDates()
M1_yearMonth = intdate('MONTH',current_day, 1,'B').getYearMonth()

print('M1_dia:', M1)
print('M1_yearMonth:', M1_yearMonth)Same day 12 months previous to current dateMesmo dia 12 meses anteriores a data atualM12 = intdate('MONTH', current_day, -12,'S').getDates()
M12_yearMonth = intdate('MONTH',current_day, -12,'S').getYearMonth()

print('M1_dia:', M1)
print('M1_yearMonth:', M1_yearMonth)2 years previous to the current date with the last day of the month2 anos anterior da data atual com o ultimo dia do mÃªsY2 = intdate('YEAR', current_day, -2,'E').getDates()
Y2_yearMonth = intdate('YEAR',current_day, -2,'E').getYearMonth()2 day previous to the current date but only with the business day2 dias anteriores Ã  data atual, mas apenas com o dia Ãºtilbday = intdate('BDAY', dia_atual, 3, 'S', "BR", "SP").getDates()