Saravanan666/pypi-org huggingface dataset:
Package: huas-micropython
Micropython type hints and additional requirementsAbout this packagehuas-micropythonpackagesMicroPythonstub files, addingtype informationfor static type checkers likeMyPiorpyright.IDE's which use these type checkers (e.g.VSCodeorPyCharm) will in turn be able to provide rich MicroPython type hinting, code completion and contextual help to the user, increasing the overall developer experience without the need to install additional pugins.In addition to providing MicroPyton type stubs this package addsesptoolandadafruit-ampyas optional install requirement, seebackgroundfor a rationale.This package intends to be atransitionalpackage meaning that at some point in time it will become obsolete depending on community MicroPython stub packaging efforts, seedevelopmentfor more information.InstallationYou can installhuas-micropythoneasily from Python's package index. In a terminal run the following command for a full install which includes type stubs and additionally installs theesptoolandadafruit-ampypackages:pip install huas-micropython[all]Note on some Linux and macOS systems you might need to run as root with sudo:sudo pip3 install huas-micropython[all]For a plain install which only contains the type stubs, run the following:pip install huas-micropythonBackgroundThis module was created to support students at Hanzehogeschool University of Applied Sciences's bachelorHBO-ICTprogramme (in Dutch), in particular for students participating in the Internet of Things project.This package addsesptoolandadafruit-ampyas an optional install requirement to provide all the tooling necessary for working with anesp32microcontroller. Note thatadafruit-ampyis also included in PyCharm'sMicropython pluginand as suchhuas-micropythonoffersfunctional parity.DevelopmentCurrent efforts to maintain Micropython type stubs are atJosverl/micropython-stubsandhlovatt/PyBoardTypeshed. Thehuas-micropythonpackage includes both, usingJosverl/micropython-stubsfor module level stubs andhlovatt/PyBoardTypeshedas additional documentation stubs (as a sidenote, PyCharm'sMicropython pluginuseshlovatt/PyBoardTypeshedstubs).Two ongoing iniatives are of importance for this package:Integrating and/or combinging work being done at both stub repositories (being discussed at#98).Publishing stubs to PyPi, see e.g.#123and#179.Once the above has been resolvedhuas-micropythonwill be considered obsolete and retracted from PyPi.
Package: hua-tool
HUA Tool说明一些简单的工具。容器 ContrainerMongoDB Batchhuatool.container.MongoBatchBatchhuatool.container.Batch侦测器 Detector函数执行时间类（修饰器）huatool.detector.Timer函数执行时间（函数呼叫）huatool.detector.timer解析器 ParserBytes 转 UTF-8huatool.parser.bytesToUTF8函数源码huatool.parser.sourceCode动态建立函数huatool.parser.strToFunct日期类huatool.parser.Date日期解析异常类huatool.parser.ParseDateStringException代理Headershuatool.proxy.HEADERS代理单位类huatool.proxy.ProxyXiCi 代理池类huatool.proxy.XiCi开发Hua777
Package: huawei_b593_status
This small library fetches status information from Huawei B593 4G modem.Installation:pip install huawei_b593_statusor clonethe repositoryand runpython setup.py installUsage:import huawei_b593_status
huawei = HuaweiStatus()
print huawei.read()Output:{'WIFI': 'off',
 'SIG': '5',
 'Mode': '4g',
 'Roam': 'home',
 'SIM': 'normal',
 'Connect': 'connected'}
Package: huaweicloud-csms-environ
huaweicloud-csms-environInstallationpipinstallhuaweicloud-csms-environSample Usageimportcsms# basiccsms.load_env('secret-name',region='ap-southeast-2')# project id instead of regioncsms.load_env('secret-name',project_id='project-id')# using pure environment variablescsms.load_env()# no environment variablescsms.load_env('secret_name',access_key='access-key',secret_key='secret-key',region='ap-southeast-2',)Environment VariablesKeySDKDescriptionHUAWEICLOUD_SDK_AKYesAccess key of Huawei Cloud IAMHUAWEICLOUD_SDK_SKYesSecret key of Huawei Cloud IAMHUAWEICLOUD_SDK_PROJECT_IDYesHuawei Cloud project IDHUAWEICLOUD_REGIONNoHuawei Cloud regionHUAWEICLOUD_SECRET_NAMENoCSMS secret nameFor more SDK variables, please seethis.DevelopmentRequirementsDockerPythonPoetryLintingmakelintTestingmaketestFix Formattingmakeyapf
Package: huaweicloud-python-sdk-core
This is the base library for HuaweiCloud python SDK, it provides the
basic logic to authorize, locate endpoint and perform low level API
requests, it’s not for any standalone usage.2.7 and greater, including 3.xQuick StartFirst, install the library:$pipinstallhuaweicloud-python-sdk-coor download source code from github and install:$gitclonehttps://github.com/TommyLike/huaweicloud-python-sdk-core.git$cdhuaweicloud-python-sdk-core$pythonsetup.pyinstallDocumentationPlease visit our website:https://github.com/TommyLike/huaweicloud-python-sdk-core
Package: huaweicloudstoreplugin
Huawei Cloud OBS store plugin for MLflowThis repository provides a MLflow plugin that allows users to use a Huawei Cloud OBS as the artifact store for MLflow.Implementation overviewhuaweicloudstoreplugin: this package includes theHuaweiCloudObsArtifactRepositoryclass that is used to read and write artifacts from Huawei Cloud OBS storage.setup.pyfile defines entrypoints that tell MLflow to automatically associate theobsURIs with theHuaweiCloudObsArtifactRepositoryimplementation when thehuaweicloudstorepluginlibrary is installed. The entrypoints are configured as follows:entry_points={
        "mlflow.artifact_repository":
            "obs=huaweicloudstoreplugin.store.artifact.huaweicloud_obs_artifact_repo.py:HuaweiCloudObsArtifactRepository"
        ]
    },UsageInstall by pip on both your client and the server, and then use MLflow as normal. The Huawei Cloud OBS artifact store support will be provided automatically.pipinstallhuaweicloudstorepluginThe plugin implements all of the MLflow artifact store APIs.
It expects Huawei Cloud Storage access credentials in theMLFLOW_OBS_REGION,MLFLOW_OBS_ACCESS_KEY_IDandMLFLOW_OBS_SECRET_ACCESS_KEYenvironment variables,
so you must set these variables on both your client application and your MLflow tracking server.
To use Huawei Cloud OBS as an artifact store, an OBS URI of the formobs://<bucket>/<path>must be provided, as shown in the example below:importmlflowclassDemoModel(mlflow.pyfunc.PythonModel):defpredict(self,ctx,inp)->int:return1experiment="demo"mlflow.create_experiment(experiment,artifact_location="obs://mlflow-test/")mlflow.set_experiment(experiment)mlflow.pyfunc.log_model('model_test',python_model=DemoModel())In the example provided above, thelog_modeloperation creates three entries in the OBS storageobs://mlflow-test/$RUN_ID/artifacts/model_test/, the MLmodel file
and the conda.yaml file associated with the model.
Package: huawei-e3-e5
huawei_e3_e5Tool to manage huawei hilink modems (E3 and E5 series)FeaturesGet modem statusChange sim settingsGet SMS messagesSend SMS messagesModem rebootDump all modem infosUsage example>>>fromhuawei_e3_e5.huawei_exxxximportHuaweiModemasHuaweiModem>>>gsm=HuaweiModem(user='admin',password='SECRET')# E5xxxx>>>gsm=HuaweiModem()# E3xxx>>>gsm<HuaweiModemNone(None)>DeviceName:E5577Cs-321imei:8..............imsi:2..............iccid:8..................msisdn:+33.........SerialNumber:D...............softwareVersion:21.333.63.00.1217hardwareVersion:CL1E5573SM11MacAddress1:88:00:00:00:00:00WebUIVersion:17.100.20.06.1217ProductFamily:LTEclassify:mobile-wifisupportmode:LTE|WCDMA|GSMworkmode:LTE>>>gsm.device_signal{'pci':'69','sc':None,'cell_id':'105428049','rsrq':'-10dB','rsrp':'-104dBm','rssi':None,'sinr':'-3dB','rscp':None,'ecio':None,'psatt':'1','mode':'7','lte_bandwidth':None,'lte_bandinfo':None}>>>gsm.send_sms(numbers,message)>>>gsm.control_reboot()
Package: huawei-file-transfer
##huawei_file_transfer
huawei_file_transfer is a Netmiko-based function that provides file transfer capabilities for Huawei devices. This function is modified for netmiko==4.2.0, so the version of netmiko needs to be >=4.0.0.At the same time, it provides hidden verification of the available size of the target space and the existence of files
This function currently does not support file verification, The parameter of verify needs to be set to False.
###Installingpip install huawei_file_transfer##Example Usage
###Using the put of directionfromhuawei_file_transferimportfile_transferfromnetmikoimportConnectHandlerdevice_info={"device_type":"huawei","ip":"192.168.0.253","username":"admin123","password":"Huawei@123",}withConnectHandler(**device_info)asconnect:print("已经成功登陆设备"+device_info['ip'])output=file_transfer(connect,source_file="s5735-l1-v200r022sph150.pat",dest_file="s5735-l1-v200r022sph150.pat",file_system="flash:",direction="put",verify_file=False,overwrite_file=True,)print(output)Results{'file_exists': True, 'file_transferred': True, 'file_verified': False}###Using the get of directionfromhuawei_file_transferimportfile_transferfromnetmikoimportConnectHandlerdevice_info={"device_type":"huawei","ip":"192.168.0.253","username":"admin123","password":"Huawei@123",}withConnectHandler(**device_info)asconnect:print("已经成功登陆设备"+device_info['ip'])output=file_transfer(connect,source_file="s5735-l1-v200r022sph150.pat",dest_file="s5735-l1-v200r022sph150.pat",file_system="flash:",direction="get",verify_file=False,overwrite_file=True,)print(output)Results{'file_exists': True, 'file_transferred': True, 'file_verified': False}###Using process_bar functions to display the progress of transferring files in real timefromhuawei_file_transferimportfile_transfer,progress_barfromnetmikoimportConnectHandlerdevice_info={"device_type":"huawei","ip":"192.168.0.253","username":"admin123","password":"Huawei@123",}withConnectHandler(**device_info)asconnect:print("已经成功登陆设备"+device_info['ip'])output=file_transfer(connect,source_file="s5735-l1-v200r022sph150.pat",dest_file="s5735-l1-v200r022sph150.pat",file_system="flash:",direction="get",verify_file=False,overwrite_file=True,progress=progress_bar)print(output)ResultsTransferring file: s5735-l1-v200r022sph150.pat

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>| (100.00%)
{'file_exists': True, 'file_transferred': True, 'file_verified': False}
Package: huawei-hg659
huawei-hg659Scraper for Huawei HG659 Router to get the connected devices.Usagefromhuawei_hg659importConnectorc=Connector('ip','user','pass')c.getLanDevices()# [{host: 'HOSTNAME', ip: 'IP', mac: 'MAC', active: True|False}]NoteThis project has been set up using PyScaffold 3.2.3. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: huawei-modem-py-api-client-through-proxy
Python HTTP API client for Huawei ModemsThis is a python library to interact with a Huawei modem over HTTP API.The library has been tested on these devices:E5180E8372B315e3372hPlease let me know if you tested it successfully with other modems as well.Currently Supportedwebserverget_session_token_info: gets a session token to useuserlogin: creates a new session on the HTTP APIsmsget_sms: get information from boxes: inbox, outboxsend_sms: sends an SMS through device's modemdelete_sms: deletes an sms from one of their boxessms_count: get the sms count on each boxussdstatus: get status of ussd. This will tell you if there are ussd messages available to readsend: sends a ussd messageget: retrieves a ussd messagewlan:get_connected_hosts: gets a list of connected devicesblock_host: blocks the device from networkunblock_host: unblock device on networkget_blocked_hosts: gets a list of blocked devicesis_host_blocked: checks if device is blockeddialup:connect_mobile: enables mobile (ie LTE / 4G / 3G / etc) networkdisconnect_mobile: disables mobile networkget_mobile_status: checks the mobile connection statusdevice:reboot: reboots the modemPrerequisitesOnlyrequestslibrary (and its dependencies) is required.This isrequirements.txtcontent:certifi==2018.11.29
chardet==3.0.4
idna>=2.6
requests>=2.0.0
urllib3>=1.22Installingpipinstallhuawei-modem-api-client-through-proxyExampleimporthuaweisms.api.userimporthuaweisms.api.wlanimporthuaweisms.api.smsctx=huaweisms.api.user.quick_login("myusername","mypassword")print(ctx)# output: <ApiCtx modem_host=192.168.8.1># sending smshuaweisms.api.sms.send_sms(ctx,'phone-number','this is the sms message')# connected devicesdevice_list=huaweisms.api.wlan.get_connected_hosts(ctx)Note: The default modem host is assumed to be192.168.8.1. If that is not the case for you, you can specify your modem ip as follows:importhuaweisms.api.userctx=huaweisms.api.user.quick_login("myusername","mypassword",modem_host='10.11.12.13')print(ctx)#output: <ApiCtx modem_host=10.11.12.13>Built Withrequests- Python HTTP Requests for Humans™ContributingSend me a PM if you want to contribute.AuthorsPablo Santa Cruz-Owner-pabloMka Madlavana-Collaborator-dopstarLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: huawei-smart-logger
Huawei Smart Logger 3000 Data RetrievalThis project queries data from a locally owned and operated Huawei Smart Logger 3000 used as part of the Huawei Fusion Solar system and outputs that data as a JSON KVP.More information can be foundhereandhereExample usagefrom huawei_smart_logger import HuaweiSmartLogger3000API
import json
import asyncio

class Test():
    async def main(self):
        hsl = HuaweiSmartLogger3000API("admin","password","192.168.x.x")
        await hsl.fetch_data()
        data_dict = hsl.get_results()
        json_object = json.dumps(data_dict)
        print(json_object)

test=Test()
asyncio.run(test.main())You should see an output like this{"gridtied_active_power": "0.055", "gridtied_reactive_power": "0.332", "load_power": "1.070", "active_power": "1.015", "reactive_power": "-0.334", "todays_power_supply_from_grid": "0.00", "current_day_supply_from_grid": "5.47", "current_day_feedin_to_grid": "0.41", "current_day_consumption": "12.87", "total_power_supply_from_grid": "6.61", "total_supply_from_grid": "449.67", "total_feedin_to_grid": "555.87", "total_power_consumption": "1774.54", "pv_output_power": "2.855", "battery_chargedischarge_power": "1.840", "reactive_pv_power": "-0.334", "reactive_ess_power": "0.000", "soc": "97.0", "currentday_charge_capacity": "9.27", "currentday_discharge_capacity": "3.17", "total_charge": "819.04", "total_discharge": "811.73", "rated_ess_power": "0.000"}
Package: hub20
## Welcome to Hub20Hub20 is a very-early stage open source, self-hosted online payment
solution that can be considered as the Ethereum equivalent of
[BTCPayServer](https://btcpayserver.org) payment gateway, allowing
users to collect payments in Ethereum and any ERC20 token.Hub20 also provides integration with [Raiden](https://raiden.network),
so that if you have a node running you should be able to accept and
send payments of ERC20 tokens with near-zero fees.The possiblity of having low-fee payments, irreversibility of
transactions and the usage of stablecoins such as
[DAI](https://makerdao.com) make hub20 a very compelling offer for
anyone that wants to receive payments online.### More than a payment gatewayHub20 also allows userssendingtheir tokens to either other users
of the hub as well as to any ethereum address, effectively turning any
deployment of a hub20 server into an exclusive Paypal/Venmo/cryptobank
for its users.This works because hub20 offers the possibility of using custodial
wallets for managing its funds. While this is not ideal for large
deployments such as companies and crypto exchanges, for a self-hosted
service this is more acceptable because the node operator is the one
effectively controlling the wallets and therefore its keys.This also opens the possibility for, e.g, enthusiasts to set up a
hub20 node for their non-technical friends and family (i.e, people
that are within their circle of trust) so that they can have an easy
way to do transactions in cryptocurrency without ever having to deal
with anything that hinders adoption: nothing to learn about wallets,
no access to exchanges needed, no KYC, etc.
Package: hubbypy
# HubbyPy`HubbyPy` is a wrapper for HubSpot's contact properties and contacts API. It is particularly useful for web applications where you want to sync information about your users with HubSpot.## Getting Set Up```pythonhs_user_property_manager = UserPropertyManager(groups=[{'name': 'your_org','displayName': 'Your API Data'}])hubspot = HubSpot(api_key='add your key here',user_property_manager=hs_user_property_manager)```## Accessor Properties```pythonhs_user_property_manager.add_prop(AccessorProperty(name='email',native_type='varchar',accessor='email',built_in=True))hs_user_property_manager.add_prop(AccessorProperty(name='your_org_company_id',label='Your Company: Account id',group_name='your_org',native_type='varchar',accessor='company.id'))hs_user_property_manager.add_prop(AccessorProperty(name='your_org_current_period_end',label='Your Company: Subscription End',group_name='your_org',native_type='datetime',accessor='company.stripe_customer.current_subscription.current_period_end'))```## Function Properties```pythonhs_user_property_manager.add_prop(FunctionProperty(name='your_org_last_sync',label='Company: Last Sync',group_name='your_org',native_type='datetime',func=timezone.now,send_user=False))def get_user_lifecycle_stage(user):try:if user.company and user.company.stripe_customer.current_subscription.is_trialing:return 'opportunity'if user.company and user.company.stripe_customer.current_subscription.status == 'active':return 'customer'except AttributeError as err:logger.error('[HUBSPOT] could not get subscription, error: {}'.format(err))return 'lead'hs_user_property_manager.add_prop(FunctionProperty(name='lifecyclestage',native_type='varchar',func=get_user_lifecycle_stage,send_user=True,built_in=True))```## Constant Properties```python# Constant Propertieshs_user_property_manager.add_prop(ConstantProperty(name='your_org_created_by_you',label='Your Company: Our App Created',group_name='your_org',native_type='bool',value=True))```
Package: hub-dataflow
DataFlow ·Prototyping for Hub DataflowSetupInstall the package> pip3 install git+https://github.com/snarkai/dataflow@v0.2.2Make sure gdal and opencv is installed as required byimage_io.pySetup credentials in the local folder and don't forget to put those in .gitignore.secrets/agmri.cfg
.secrets/intelinair #AWS credentialsExample to get startedfrom dataflow import hub
import torch

hub.init()

df = hub.agmri().get_polygons_by_type(hub.agmri.UIUC_ENDROW, max=1) 
ds = hub.polygon_sampler(df, sample_count=32, shape=(1024,1024,4))
ds[0]TroubleshootingInstall GDAL and OpenCVIf it throws error on gdal or opencv install those manually./bin/prepare.sh
./bin/gdal.sh
./bin/opencv.shCredentials examplesintelinairfile should look like this[default]
aws_access_key_id = ...
aws_secret_access_key = ...
region = us-east-1agmri.cfg[production]
admin_username = ...
admin_password = ...Known Issues[ ] Credentials are not flexible where to be storedPush a new versiongit commit -a -m 'current changes'
git tag -a 'v0.2.2' -m 'some message here'
git push origin 'v0.2.2'Automated integration testingTo run pytest before git push we need to do create .git/hooks/pre-push file with the following content:#!/bin/bash
docker-compose run testAnd make it executablechmod +x .git/hooks/pre-pushAlso whenever updating requirements.txt and options.txt please rebuild the testdocker-compose build testFormatting and LintingHub uses Black and Flake8 to ensure a consistent code format throughout the project.
Replace .vscode/settings.json content withthe following:{
    "[py]": {
        "editor.formatOnSave": true
    },
    "python.formatting.provider": "black",
    "python.linting.flake8Enabled": true,
    "python.linting.flake8Path": "flake8",
    "python.linting.flake8Args": [
        "--max-line-length=80",
        "--select=B,C,E,F,W,B950",
        "--ignore=E203,E501,W503"
    ],
    "python.linting.pylintEnabled": false,
    "python.linting.enabled": true,
}
Package: hub-driver-handler
hub-driver-handler Packagestandard file structure+ drivers/
   + __init__.py
   + requirements.txt
   + DRIVER_ID/
      + __init__.py
      + handler.py
      + ANYFILES...
   + DRIVER_ID2/...
+ .dockerignore
+ app.py
+ Dockerfiledrivers/DRIVER_ID/__init__.py is required and might be empty.environment variable 'HUB_FUNCTION_NAME' is required to notify the results to the IoT-hub.environment variable 'LOG_LEVEL' can change the default log level 'INFO'.drivers/__init__.pyimport drivers.{DRIVER_ID}.command
...add each drivers for import.handler.pyclass DRIVER_ID(object):
    def __init__(self, event):
        # store required data from event
    
    def __enter__(self):
        return self

    def __exit__(self, exc_type, exc_value, traceback):
        pass

    def __del__(self):
        pass

    def get_status(self):
        ...
        return result
    
    def ANY_COMMAND(self):
        ...
        return result
    
    ...implement your driver code in this file.event["request"]["command_id"] will be invoked..dockerignore**/__pycache__
**/.pytest_cache
*.pycthis is the best practice.app.pyimport os
from hub_driver_handler.handler import handler

def lambda_handler(event, context):
    driver_id = event.get('driver_id') or os.environ.get('DRIVER_NAME') or context.function_name
    return handler(event, driver_id, result_root_key = None, post_function = None, invoke_on_error_only = False)this code expected 'driver_id' will be passed from the IoT-hub for multiple drivers support, but currently not.set enviroment variable 'DRIVER_NAME' explicitly or set lambda function name as driver_id for now.set 'result_root_key' if you want to add root key for results, ex: 'result_params''date_time' and 'result_id' will be added if not present.'post_function' can modify the results from each driver as below:def post_function(result, event):
result['cmd'] = event['request']['command_id']
...If only send the result to pph on error, set 'invoke_on_error_only' to TrueSQS paylod by lambda trigger is also supported.DockerfileFROM public.ecr.aws/lambda/python:3

COPY app.py ./
COPY drivers/ ./drivers

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install hub-driver-handler -t .
RUN python3 -m pip install -r drivers/requirements.txt -t .

# Command can be overwritten by providing a different command in the template directly.
CMD ["app.lambda_handler"]requirements.txtadd required packages for all drivers
Package: hubeau-api-client
hubeau-api-client[WIP] Hubeau API Client for python[[https://img.shields.io/pypi/l/hubeau-api-client]]A simple python client forHub'Eau APIs.It's a very early stage, so everything is not perfect, but if you want to contribute you are welcome.If you want to contribute, please read theguidelinescompilingpython3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt