Saravanan666/pypi-org huggingface dataset:
Package: haas-python-zzio606
HaaS Python介绍HaaS Python是阿里云IoT团队最新研发的一套低代码编程框架，兼容MicroPython编程规范，依托HaaS平台软硬件积木提供AI、支付、蓝牙配网、云连接、UI等物联网场景常用的能力，从而解决了物联网应用开发难的问题。有了Python轻应用框架，物联网编程不再局限于专业软件开发人员，一般的技术员也可以快速实现复杂的物联网需求。
更多HaaS Python介绍和开发资料见HaaS Python官网,创意案例,硬件积木HaaS Python is a set of low-code programming frameworks newly developed by Alibaba Cloud IoT team. It is compatible with MicroPython programming specifications. It relies on the hardware and software building blocks of the HaaS platform to provide capabilities commonly used in IoT scenarios such as AI, payment, Bluetooth network configuration, cloud connection, and UI. Solve the difficult problem of IoT application development. With the Python light application framework, IoT programming is no longer limited to professional software developers, and general technicians can quickly implement complex IoT requirements.
For more HaaS Python introduction and development materials, seeHaaS Python official website,Creative Case,Hardware Building Blocks安装方法在HaaS Python官网下载开发板对应的固件，并完成固件烧录Download the firmware corresponding to the development board atHaaS Python websiteand complete the firmware burning在开发板上运行以下命令完成安装和使用,如果您在使用过程中遇到问题，欢迎在github上向我们提交issue，我们的工程师会及时解答Run the following commands on the development board to complete the installation and use. If you encounter problems during use, please submit an issue to us ongithub, Our engineers will answer in timeimport upip
upip.install("haas-python-zzio606")
import haas-python-zzio606郎汉德6路继电器 - ZZIO606一、产品简介郎汉德6路继电器支持Modbus-RTU协议，是工农业场景选用最多的传感器之一。详细参数如下：二、技术参数三、软件接口ZZIO606(...) - 创建 ZZIO606 驱动对象函数原型：zzioObj = ZZIO606(mbObj, mbAddr)参数说明：参数类型必选参数？说明mbObjmodbus是调用此函数前需确保 modbus 对象已初始化mbAddrint是默认值是1返回值：
成功返回ZZIO606对象，失败抛出 Exception示例代码：importmodbusasmbimportzzio606mb.init('modbus_485_4800')zzioObj=zzio606.ZZIO606(mb,1)openChannel() - 关闭指定通道函数原型：zzioObj.openChannel(channelID)参数说明：参数类型必选参数？说明channelIDint是通道id返回值：
打开指定通道，失败抛出异常，参考modbus错误码表closeChannel() - 关闭指定通道函数原型：zzioObj.closeChannel(channelID)参数说明：参数类型必选参数？说明channelIDint是通道id返回值：
关闭指定通道，失败抛出异常，参考modbus错误码表参考代码importmodbusasmbimportzzio606mb.init('modbus_485_4800')zzioObj=zzio606.ZZIO606(mb,1)zzio606.openChannel(1)zzio606.closeChannel(1)四、接口案例控制第一个通道开闭代码：# board.json配置：{"name":"board-name","version":"1.0.0","io":{"modbus_485_4800":{"type":"MODBUS","mode":0,"port":2,"baudrate":4800,"priority":0,"timeout":200},},"debugLevel":"ERROR","repl":"disable"}importmodbusasmbimportzzio606mb.init('modbus_485_4800')zzioObj=zzio606.ZZIO606(mb,1)zzio606.openChannel(1)zzio606.closeChannel(1)参考文献及购买链接[1]郎汉德官网[3]商品链接
Package: habaform
habaformManage Harbor projects and members with ease.Installationpip3 install habaformUsageInitAfter installation, you will need to parse the current Harbor Project/User model first, create a new git repository and run the following commands inside it:exportHARBOR_USERNAME="admin"exportHARBOR_PASSWORD="Harbor12345"exportHARBOR_URL="http://hub.nova.moe"habaformparseyou will find these files inside your directory:.
├── DO_NOT_TOUCH
│   └── habaform.hf
└── habaform.hf

1 directory, 2 filesNow you can commit and push thoses files to the GitHub repository.Workflow in local environmentHabaform can be used without GitOps like operation, if you'd like to use habaform in your local environment, here is the common workflow.Edithabaform.hfunder the project root directory.Runhabaform planand make sure the changes are correctly reflecting your changes.Runhabaform applyto apply those changes to your Harbor.Workflow with GitHub ActionsCreate two GitHub Actions workflow files as follows:plan.ymlThis will run when PR is made, and will give the preview change on issue.name:Plan Habaformon:[pull_request]jobs:Plan:runs-on:[self-hosted,X64]steps:-uses:actions/checkout@v2-uses:actions/setup-python@v2with:python-version:'3.x'-name:Setup Habaformrun:|pip3 install habaform-name:Planid:planenv:HARBOR_USERNAME:${{secrets.HARBOR_USERNAME}}HARBOR_PASSWORD:${{secrets.HARBOR_PASSWORD}}HARBOR_URL:${{secrets.HARBOR_URL}}run:|echo 'HABAPLAN<<EOF' >> $GITHUB_ENVhabaform plan >> $GITHUB_ENVecho 'EOF' >> $GITHUB_ENV-name:Preview Plan infouses:actions/github-script@v4with:github-token:${{ secrets.GITHUB_TOKEN }}script:|github.issues.createComment({issue_number: context.issue.number,owner: context.repo.owner,repo: context.repo.repo,body: `${{ env.HABAPLAN }}`})apply.ymlThis will run when PR is merged, will apply the changes to Harbor automatically.name:Apply Habaformon:push:branches:[master]paths:-'habaform.hf'jobs:Apply:runs-on:[self-hosted,X64]steps:-uses:actions/checkout@v2-uses:actions/setup-python@v2with:python-version:'3.x'-name:Setup Habaformrun:|pip3 install habaform-name:Applyid:applyenv:HARBOR_USERNAME:${{secrets.HARBOR_USERNAME}}HARBOR_PASSWORD:${{secrets.HARBOR_PASSWORD}}HARBOR_URL:${{secrets.HARBOR_URL}}run:|habaform apply-name:Sync configrun:|git config --global user.name "github-actions[bot]"git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"git add .git commit -m "Sync hf file"git pushAfter these files are created, you can use PR to edithabaform.hfto make changes to your Harbor.For more info, refer toHabaform——用类似 IaC(Infrastructure as code) + GitOps 的方式管理 Harbor 的 Project 和 Userat this moment, through I can promise there will be a better document soon.
Package: habana-horovod
Horovod is a distributed training framework for TensorFlow, Keras, PyTorch, and Apache MXNet. The goal of Horovod is to
make distributed Deep Learning fast and easy to use.This fork enables multi node training on Habana® Gaudi® accelerator with Habana®
TensorFlow bridge only (https://pypi.org/project/habana-tensorflow/).  For more details please refer tohttps://docs.habana.ai/en/latest/Tensorflow_Scaling_Guide/TensorFlow_Gaudi_Scaling_Guide.html.The same as original Horovod project, the package is sdist, containing all sources with Habana modifications for
in place building python Wheel package on customer environment.
Package: habana-pyhlml
pyhlmlPython3 wrapper for the HLML libraryGetting StartedThe pyhlml library is an python API wrapper for the Synapse HLML library, documented here:https://docs.habana.ai/en/latest/API_Reference_Guides/HLML_API_Reference.htmlRequirementsPython3Habana-enabled device ( inc. Drivers/Firmware )Synapse version 1.0.1-81 or laterInstall - PIP$pip3install-egit+https://github.com/HabanaAI/pyhlml.git#egg=pyhlmlBasic Usageimportpyhlml# Initialize the librarypyhlml.hlmlInit()# Get total number of devices in the systemdevice_count=pyhlml.hlmlDeviceGetCount()# For each device print utilizationforiinrange(device_count):device=pyhlml.hlmlDeviceGetHandleByIndex(i)print(f"Device{i}Utilization:{pyhlml.hlmlDeviceGetUtilizationRates(device)}# Shutdownpyhlml.hlmlShutdown()VersionsThis wrapper shadows the synapse release versions and uses the scheme$release-$buildwhere release is the synapse release and build is the build of this repo ( 0 indexed ).
Package: habana-tensorflow
Habana TensorFlow Python packagehabana-tensorflowis a package designed for easy integration of Gaudi bridge to Tensorflow topologies.
Main entry point (Python import) ishabana_frameworks.tensorflowmodule that contains all the necessary functions to work with Gaudi.StructureProperly built wheel contains:habana_frameworkspython namespace (with all the folder structure inside)libraries for all supported versions of TF (seehabana_frameworks.tensorflow.sysconfig._supported_tf_versions) located inhabana_frameworks/tensorflow/tf<version_with_underscores>/lib/habanalabs/proper licensingWhen loadinghabana_tensorflow, there is sanity check for currently installed TF version in the system, to match libraries found in the module.TensorFlow package (habana_frameworks.tensorflow)Most important module inside islibrary_loaderand functionload_habana_module(), that is exposed directly after import.
It initializes the module properly.Example:importhabana_frameworks.tensorflowashtfhtf.load_habana_module()List of modules insidehabana_frameworks.tensorflowAll modules are described inofficial docs.
Package: habcatev
habcatevLibreria python orientada a eventos para habcat.Quick startEjemplo simple 1importhabcatev,timeimportrandomclassSimpleExample(habcatev.device.Device.Device):"""Ejemplo simple en el que se produce y consume"""def__init__(self):super(SimpleExample,self).__init__()# El dispositivo se subscribe a todos los topicsself.setSubscriptionArr(['#'])defon_event(self,topic,data):# Lanzamos este codigo cuando se produce un eventoself.log.logger.info("Ha llegado: Topic:"+topic+"  Data: "+data)defloop(self):# Suponemos que leemos el valor de un sensor y lo escribimos# en un topicself.log.logger.info('Enviando un mensaje a mqtt ...')self.send('mitopico1',random.uniform(10.5,75.5))time.sleep(5)SimpleExample().run()Ejemplo con configuración externa del dispositivo.importhabcatev,timeimportrandomclassSimpleExample(habcatev.device.Device.Device):def__init__(self):super(SimpleExample,self).__init__(description='Ejemplo simple en el que se produce y consume')# Nos subscribimos a los topics del fichero de configuracionself.setSubscriptionArr(self.config['ejemplo2']['subscribe'])defon_event(self,topic,data):# Lanzamos este codigo cuando se produce un eventoself.log.logger.info("Ha llegado: Topic:"+topic+"  Data: "+data)defloop(self):# Suponemos que leemos el valor de un sensor y lo escribimos en un topicself.log.logger.info('Enviando un mensaje a mqtt ...')self.send(self.config['ejemplo2']['publish'],random.uniform(10.5,75.5))time.sleep(5)SimpleExample()python3example2.py--helppython3example2.py--config'example2.yaml'--run
Package: haber-utils
CreateNewDirecDescription:Will create a new directory. If the directory already exists it will delete the files within it.Inputs:base_direc: string that represents the directory in which the new directory will be madename: string that represents the name of the new directoryOutputs:new_direc: string that represents the path of the new directoryUpdateProgressDescription:Will print a status bar with the progress of the current progress.Inputs:progress: float that is the current progress of the processsymbol: an additional value to be printed (type is variable), not required then input ""Outputs:prints a status bar showing the completion of the processWriteDictToCSVDescription:Will write a dict or a list of dicts to a csv.Inputs:base_direc: string that represents the directory in which the file will be writtendetails: dict or list of dicts that will be written into the target filecsv_name: string that represents the name of the csvOutputs:new_csv: string that represents the path of the created csv_fileCheckIfFileExistsDescription:Checks if a file currently exists.Inputs:filename: string that represents the path of the file to be checkedOutputs:bool: True if the file exists or False if it does notConvertDictToListDescription:Will convert a dictionary to a list without its respective keys.Inputs:details: dict that the information will be converted to list formatOutputs:output_list: list that holds the extracted informationWriteOrAppendCSVDescription:Will create or append a csv with a row of information for a specified csv and dictionary.Inputs:csv_file: string that is the path for the csv file that will either be created or appended with the datadetails: dict that contains the data to append or write to the specified csv_fileOutputs:csv_file: string that is the path for the csv file that will either be created or appended with the dataRoundValueDownDescription:Will round down a float to the specified amount of decimal places.Inputs:number: float that represents the number that will be rounded downdecimals: int that represents the number of decimal points to be rounded toOutputs:new_val: float that is number round to decimals amount of decimal points
Package: habib-bitcoin-price
BITCOIN PRICE NOTIFICATIONA Python script package to get the  bitcoin price notifications on regular interval.Using this project any one can get the regular updated price of bitcoin at a some time interval. Which you can set by yourself while running the program or the default value of the interval is 1 minute which means that by default after every five minutes you will get the updated price!!!. You will get the price notification on telegram for that you have to join the channel.InstallationFollowing command on terminal will install bitcoin-notifier package/module from PIPpipinstallhabib-bitcoin-priceUsageFollowing query on terminal will provide you with all the help options availableInputhabib-bitcoin-price-hOutputusage: habib-bitcoin-price [-h] [--d D] [--i I] [--u U]

Bitcoin price notification alert

optional arguments:
  -h, --help            show this help message and exit
  --d D                 Enter (Yes/No) to run the bitcoin notification
  --i I, --interval I   Time interval for updated price in minutes in this
                        (0.1,1,2) format
  --u U, --Upper threshold U
                        Set the upper threshold limit in USD for notificationFollowing query on terminal will provide you five prices of Bitcoin.habib-bitcoin-price--d=Y--i=0.5--u=10000Join this telegram channel to get the updates :Following is the invite linkhttps://t.me/Bitcoin_Price_HabibContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update the tests as appropriate.
Package: habil
habila lite wrapper for habitica apicurrently, it does not support any community featuresrequirementsrequestsexamplessetting up a clientmethod 1: using username and passwordfromhabilimportHabiClientclient=HabiClient.login(username="xxxxxxxxxxxxx",password="`xxxxxxxxxxxxxx")get tasksmethod 1fortaskinclient.tasks:print(task)"""HabiHabit(a2e4ab47-6eb0-44f9-90f2-e9fecfb93d8d)HabiHabit(9e3f908c-5c66-45b0-8a56-9873356f13e2)HabiDaily(336ba8f2-948e-4d14-ab8d-87b61c7034be)HabiDaily(ed1d2801-2676-440a-b967-7c6284d9d117)HabiDaily(a428340d-a035-4008-b8d1-5f5c246a9b82)HabiTodo(d98ca9fb-c8a4-4b79-a9bc-2c08aecede61)HabiTodo(8735fc9e-803c-480e-8ddb-351b74fe56bf)HabiReward(cea84120-a3a4-4da8-a8a7-fbf0438fe37e)"""update stats-1 hp in exchange for 1 gold# assuming current hp 50 and gold 0stats=client.stats.update(gold=1,hp=-1)# expected hp 49 and gold 1get tagsfortaginclient.tags:print(tag.name)"""WorkExerciseHealth + WellnessSchoolTeamsChoresCreativity
Package: habitat
# habitat - Next Generation High Altitude Balloon Tracking Systemhabitat is a web application for tracking the flight path of high altitudeballoons, relying on a network of users with radios sending in receivedtelemetry strings which are parsed into position information and displayedon maps.Written by various UKHAS members, see AUTHORS.## Dependencies```bash$ pip install -r requirements.txt# for testing$ pip install nose mox```## Installationhabitat isn't really ready to be installed just yet. Watch this space!## Project Homepage- [habitat documentation on habhub](http://habitat.habhub.org/) - rendereddocuments generated by sphinx; the source code is in the docs folder- [habitat on github](http://github.com/ukhas/habitat)## Licensehabitat is licensed under the GNU GPLv3, see LICENSE.
Package: habitat-lab
Habitat-LabHabitat-Lab is a modular high-level library for end-to-end development in embodied AI --
defining embodied AI tasks (e.g. navigation, rearrangement, instruction following, question answering),
configuring embodied agents (physical form, sensors, capabilities), training these agents (via imitation
or reinforcement learning, or no learning at all as in SensePlanAct pipelines), and benchmarking their
performance on the defined tasks using standard metrics.Habitat-Lab usesHabitat-Simas the core simulator.
For documentation referhere.
Package: habitica-challenge-wrangler
# habitica-challenge-wrangler
Data wrangling tool for quickly selecting a winner from
[Habitica](https://habitica.com) Challenge CSV data.Free software: Apache 2.0Homepage:https://github.com/DC23/habitica-challenge-wranglerVersion: 2.0.0## InstallationTo install the latest release from [PyPI](https://pypi.python.org/pypi):pip install habitica-challenge-wranglerIf you already havehabitica-challenge-wranglerinstalled, then upgrade with:pip install –upgrade habitica-challenge-wranglerThis application requires the [pandas library](http://pandas.pydata.org/),
version 0.17.0 or higher. If you have trouble installing with pip, then
I suggest you use one of the scientific Python distributions, such as
[Anaconda](https://www.continuum.io/) (Linux, Mac, Windows), or
[WinPython](https://winpython.github.io/) (Windows only).## UsageFirst, download your Habitica challenge CSV data from the Habitica website.Then execute thepick-winnerscript, passing the downloaded CSV
file name as a command line argument:pick-winner –input-file my_challenge_data.csvBy default, the leaderboard showing the top 10 participants is displayed. The
number of participants to display can be specified with the–leaderboard-rowsoption:pick-winner –input-file my_challenge_data.csv –leaderboard-rows 5The intermediate data products can optionally be written to a spreadsheet with
theto-excelcommand:pick-winner –input-file my_challenge_data.csv –to-excelThis will write a single excel file (the name is based on your input file name),
with several sheets.raw: The raw challenge data.reshaped: The raw challenge data in a more flexible layout compared to the raw
data.placings: Participant placings in each task.final scores: The complete final scores.## ScoringEach task is considered separately. Scores are ranked from first to last, with
first place getting 1 point, second place getting 2 points, and so on through to
last place.For todos, a completed todo is treated as equal first place while incomplete
todos are scored as equal last place.Finally, the ranking scores are averaged for each participant. The participant
with the highest average placing in each task is considered the winner.### Tie BreaksIn the event of a tie for first place, the names of all tied participants are
printed, and a random winner is selected.
Package: habiticaTodo
READMEThis is intended to be a two-way sync of Habitica and todoist. Any tasks that can't be foundin both services should appear on the others, with the same status. If you complete a task on one service,it should appear as completed on another. Tasks that are created on Habitica should be sent to the 'Inbox'project on Todoist.AS A NOTE: in order to have two way syncing, you MUST have a paid copy of Todoist. It's not possible for me to port complete tasks from Todoist otherwise. If you do not have a paid copy of Todoist, the following will happen:a) completed tasks will not sync between the servicesb) tasks that you begin and complete from one service to the other will not transfer between the two.That means that if you create a task in todoist and then check it off, right now it will _not_ send the points to Habitica.I encourage people without paid todoist to pick up todoist-habitrpg, which doesn't care one way or the other. (I rather hope that kusold's success with that means that Habitica-todoist will be able to figure this out eventually, but right now that's my workaround.) Or you could pony up the $30 for a year's subscription of Todoist. I'm pretty sure it's worth it.INSTALLATIONIf you're lazy and comfortable with python, you can run:pipTASK DIFFICULTYI originally felt that it would be good if task difficulty translated between tasks created on Todoist andHabitica. Therefore, task difficulty should sync with the following code by default, as laid out in $PRIORITY_DOC:Todoist priority			Habitica difficultyp1								Hardp2								Mediump3								Easyp4								TrivialIf you'd like to change how the sync interprets difficulty or priority, please edit $PRIORITY_DOC. For example, my personal setup actually includestranslating Todoist p4 to Easy, rather than Trivial, because I find that Trivial yields so few rewards they aren't worth it to me.USAGEINSPIRATIONI'd like to credit several existing apps that I pulled from in order to create this. Notably:-philadams' existing habitica app, for a lot of initial code and many helpful explanations of how to do thingsalso for existing API!-Pytodoist-Dee Dee whose scriptabit which provided a lot of ideasTHANKS
Package: habitica-todo
READMEThis is intended to be a two-way sync of Habitica and todoist. Any tasks that can't be foundin both services should appear on the others, with the same status. If you complete a task on one service,it should appear as completed on another. Tasks that are created on Habitica should be sent to the 'Inbox'project on Todoist.AS A NOTE: in order to have two way syncing, you MUST have a paid copy of Todoist. It's not possible for me to port complete tasks from Todoist otherwise. If you do not have a paid copy of Todoist, the following will happen:a) completed tasks will not sync between the servicesb) tasks that you begin and complete from one service to the other will not transfer between the two.That means that if you create a task in todoist and then check it off, right now it will _not_ send the points to Habitica.I encourage people without paid todoist to pick up todoist-habitrpg, which doesn't care one way or the other. (I rather hope that kusold's success with that means that Habitica-todoist will be able to figure this out eventually, but right now that's my workaround.) Or you could pony up the $30 for a year's subscription of Todoist. I'm pretty sure it's worth it.INSTALLATIONIf you're lazy and comfortable with python, you can run:pipTASK DIFFICULTYI originally felt that it would be good if task difficulty translated between tasks created on Todoist andHabitica. Therefore, task difficulty should sync with the following code by default, as laid out in $PRIORITY_DOC:Todoist priority			Habitica difficultyp1							Hardp2							Mediump3							Easyp4							TrivialIf you'd like to change how the sync interprets difficulty or priority, please edit $PRIORITY_DOC. For example, my personal setup actually includestranslating Todoist p4 to Easy, rather than Trivial, because I find that Trivial yields so few rewards they aren't worth it to me.USAGEINSPIRATIONI'd like to credit several existing apps that I pulled from in order to create this. Notably:-philadams' existing habitica app, for a lot of initial code and many helpful explanations of how to do thingsalso for existing API!-Pytodoist-Dee Dee whose scriptabit which provided a lot of ideasTHANKS