Saravanan666/pypi-org huggingface dataset:
Package: iotdb-session-0.10.1
Python package for IoTDBThis module contains the missing parts from theapache-iotdbpackage which can be found herehttps://pypi.org/project/apache-iotdb/.ExampleJust install the package viapip install iotdb-session-0.10.1.
The sessions API can be used via:from iotdb_session.Session import Session

ip = "127.0.0.1"
port_ = "6667"
username_ = 'root'
password_ = 'root'
session = Session(ip, port_, username_, password_)
session.open(False)
zone = session.get_time_zone()
session.close()

self.assertEqual("+08:00", zone)Test Support for IoTDBThe Test Support is based on the libtestcontainers(https://testcontainers-python.readthedocs.io/en/latest/index.html) which you need to install in your project if you want to use the feature.To start (and stop) an IoTDB Database in a Docker container simply do:class MyTestCase(unittest.TestCase):

    def test_something(self):
        with IoTDBContainer() as c:
            session = Session('localhost', c.get_exposed_port(6667), 'root', 'root')
            session.open(False)
            result = session.execute_query_statement("SHOW TIMESERIES")
            print(result)
            session.close()Release Notes0.1.5- Fixed a bug that avoided Type Inference on the serverinsert_record can now be called without dataTypes argumentthen the server will perform type inference0.1.4- Improved Testcontainer:Use real containeripUse Tag 0.10.1 not latest
Package: iot-device-backbone-client
IOT Device Backbone - Client (Python)Getting Startedpip install iot-device-backbone-clientUsagefromiot_device_backbone_client.clientimportIotDeviceBackboneClientimportasyncio# Replace with your connection stringconnection_string="http://clq2kqjsy0jgqvvlq7tm1mlyt:e3c2216a-cfff-4924-8420-2c65dd2c5d58@localhost:4900/"# Create a client to connect to the backboneclient=IotDeviceBackboneClient(f"{connection_string}graphql",{# Required for ensuring we bypass the CSRF protection from the backbone"Apollo-Require-Preflight":"1"},)For a full example, see theexampledirectory.DevelopmentGenerate the client by running:ariadne-codegenInstall dependencies:pip install -r requirements.txtInstall locally:python -m pip install -e .Seeexampledirectoy for a complete. You can run them with:python -m example.mainPublishingpython -m pip install build twine

python -m build

twine check dist/*

twine upload dist/*
Package: iotedge-compose
iotedge-composeConvert Docker Compose project to Azure IoT Edge deployment manifest.RequirementsMake sure docker is running on your system before using this tool.Python version >=3.6.0.Installationpipinstall--useriotedge-composeUsageiotedge-compose [-h] -t [file|project] -i docker_compose_file_path -o output_path [-r your_docker_container_registry_address]ExamplesConvert single fileiotedge-compose-tfile-iexample/flask-redis/docker-compose.yml-oexample/flask-redis/deployment.jsonConvert projectiotedge-compose-tproject-iexample/flask-redis/docker-compose.yml-oexample/flask-redis-edge
Package: iot-edge-logger
iot-edge-loggerThis package is a custom log formatter to standardize, collect and analyze logs from IoT Edge Devices in an Azure Log Analytics Workspace.Official Documentation|Source code|Package PyPITable of ContentsVersioningGetting StartedPrerequisitesBasic ExamplesVersioningThis repository adheres toSemantic Versioning. It will be maintained through theCHANGELOG.mdand in GitHub Releases.It's important to notethat you must maintain the version with your releases iniot/edge/logger/_version.py, otherwise a new package version will fail to get published.Getting StartedThis section provides basic examples with theiot-edge-logger.PrerequisitesPython 3.7 or later is required to use this package.Basic ExamplesInstall viapip:pipinstalliot-edge-loggerImport and say hello:fromiot.edge.loggerimport__version__print(f"hello world from iot-edge-logger version:{__version__}")Basic usage:fromiot.edge.loggerimportinit_logging# setup logginglogger=init_logging(module_name="my_iot_module")logger.info("I am alive!")logger.warning("Plotting global takeover...")logger.error("Humans have become suspicious, shutting down")Log output:<6>2022-08-0219:04:13,015[INF]my_iot_moduleIamalive!
<4>2022-08-0219:04:13,015[WRN]my_iot_modulePlottingglobaltakeover...
<3>2022-08-0219:04:13,015[ERR]my_iot_moduleHumanshavebecomesuspicious,shuttingdown
Package: iot-edge-validator
iot-edge-validatorThis package is a wrapper around theazure-iot-deviceSDK to provide standardized exception handling and direct method request validation.Official Documentation|Source code|Package PyPITable of ContentsVersioningGetting StartedPrerequisitesBasic ExamplesVersioningThis repository adheres toSemantic Versioning. It will be maintained through theCHANGELOG.mdand in GitHub Releases.It's important to notethat you must maintain the version with your releases iniot/edge/validator/_version.py, otherwise a new package version will fail to get published.Getting StartedThis section provides basic examples with theiot-edge-validator.PrerequisitesPython 3.7 or later is required to use this package.You must have an Azure subscription and Azure IoT Edge Device to use this package.Basic ExamplesInstall viapip:pipinstalliot-edge-validatorImport and say hello:fromiot.edge.validatorimport__version__print(f"hello world from iot-edge-validator version:{__version__}")Basic usage:fromtypingimportAny,Dict,Unionfromazure.iot.device.iothub.models.methodsimportMethodRequest,MethodResponsefromiot.edge.validatorimport(format_exception_error,generate_error_response,compare_dictionary,)EXPECTED_METHOD_NAME:str="some_method_name"EXPECTED_METHOD_PAYLOAD:Dict[str,Any]={"some":{},"expected":{},"payload":{},}defvalidate_method_requests(method_request:MethodRequest)->Union[MethodResponse,None]:"""validation handler for some_method_name listener"""ifmethod_request.name==EXPECTED_METHOD_NAME:passelse:returngenerate_error_response(method_request,f"received unknown method request for{method_request.name}",400,)defvalidate_some_method_name_request(method_request:MethodRequest)->Union[MethodResponse,None]:"""validation for expected payload of some_method_name direct method request"""# top level basic format validationerror_msg=compare_dictionary(d1=method_request.payload,d2=EXPECTED_METHOD_PAYLOAD,value_match=False,recurse=False,)iferror_msg:returngenerate_error_response(method_request,f"error parsing payload:{error_msg}",400)returnNone
Package: iotemplatelib
IO-TEMPLATE-LIB - Template for Library RepositoriesThis repository is a sample repository for developing Python related IO-Aero libraries.DocumentationSince this is a private repository, the complete documentation is only available in a local version of the repository in the file directorysite.
You just have to open the filesite/index.htmlwith a web browser.Directory and File Structure of this Repository1. DirectoriesDirectoryContent.github/workflowsGitHub Actionworkflows..vscodeConfiguration data forVisual Code.dataApplication data related files.distDeployable libraries.docsDocumentation files.iotemplatelibPython script files.libsRequired third party libraries.resourcesSelected manuals and software.scriptsScripts supporting Ubuntu and Windows.siteDocumentation as static HTML pages.testsScripts and data forpytest.2. FilesFileFunctionality.gitignoreConfiguration of files and folders to be ignored..pylintrcpylintconfiguration file..settings.io_template_lib.tomlConfiguration data - secrets.LICENSE.mdText of the licence terms.logging_cfg.yamlConfiguration of the Logger functionality.MakefileTasks to be executed with themakecommand.PipfileDefinition of the Python package requirements.pyproject.tomlOptional configuration data for the software quality tools.README.mdThis file.run_io_template_libMain script for using the functionality ofIO-TEMPLATE-LIB.settings.io_template_lib.tomlConfiguration data.setup.cfgOptional configuration data forflake8.
Package: iotest
writeup v0
Dedicated to the public domain under CC0:https://creativecommons.org/publicdomain/zero/1.0/.# iotestiotest is a small tool for testing command line programs. By default it writes the stdout and stderr of the program under test to files, and then compares them to expected results usinggit diff. Here are some reasons I like it:
- Specify complicated, multiline text expectations without fiddling with escape characters in test code.
- Clearly differentiate between stdout and stderr, with default success/failure status code expectations.
- Test output is placed sensibly in the_builddirectory for easy inspection.
- Simple test case prototyping reduces test case redundancy without complicated inheritence overrides (conflicts result in an error).iotest is available via pip for easy distribution. Alternatively, the script can be freely copied into a project; there is a single python dependency (pithy utility library), also available through pip.# Licenseiotest dedicated to the public domain. It is written and maintained by George King.# UsageTo run all tests in thetestdirectory:
$ iotest test/iotest will look for test cases, which are indicated by the presence of a.iot,.out, or.errfile. The filename stem (the part before dot/extension) indicates the name of the test case. This is then used to find a test executable with the matching stem. For example, if we have a test case filething.iotand corresponding executable filething.py, iotest will runthing.pyand compare its output to the expectations specified inthing.iot. If there is more than one test case file, e.g.thing.iotandthing.err, then they will be combined together as long as they do not conflict (in other words,thing.iotcannot also specify a stderr expectation).# IssuesPlease file issues to the github repository: github.com/gwk/iotest.
Package: iotex-etl
IoTeX ETL CLIIoTeX ETL CLI lets you convert IoTeX data into JSON newline-delimited format.Full documentation available here.QuickstartInstall IoTeX ETL CLI:pip3installiotex-etlExport blocks, actions and logs (Schema,Reference):>iotexetlexport_blocks--start-block1--end-block500000\--output-diroutput--provider-urigrpcs://api.mainnet.iotex.one:443Stream blocks, actions and logs to console (Reference):>pip3installiotex-etl[streaming]>iotexetlstream--start-block500000-eblock,action,log--log-filelog.txt\--provider-urigrpcs://api.mainnet.iotex.one:443Find other commandshere.For the latest version, check out the repo and call>pip3install-e.>python3iotexetl.pyUseful LinksSchemaCommand ReferenceDocumentationRunning Tests>pip3install-e.[dev,streaming]>exportIOTEXETL_PROVIDER_URI=grpcs://api.mainnet.iotex.one:443
>pytest-vvRunning Tox Tests>pip3installtox
>toxRunning in DockerInstall Dockerhttps://docs.docker.com/install/Build a docker image> docker build -t iotex-etl:latest .
 > docker image lsRun a container out of the image> docker run -v $HOME/output:/iotex-etl/output iotex-etl:latest export_blocks -s 1 -e 5499999 -b 1000 -o outRun streaming to console or Pub/Sub> docker build -t iotex-etl:latest -f Dockerfile .
 > echo "Stream to console"
 > docker run iotex-etl:latest stream --start-block 500000 --log-file log.txt
 > echo "Stream to Pub/Sub"
 > docker run -v /path_to_credentials_file/:/iotex-etl/ --env GOOGLE_APPLICATION_CREDENTIALS=/iotex-etl/credentials_file.json iotex-etl:latest stream --start-block 500000 --output projects/<your-project>/topics/mainnetGenerating iotex types and api codeClone iotex-proto git repositoryhttps://github.com/iotexproject/iotex-protoInstall grpcio-tools packagepip install grpcio-toolsRun following commands to generate code to python directorymkdir python
python -m grpc_tools.protoc -I. -I ./proto/types --python_out=./python --grpc_python_out=./python ./proto/api/api.proto
python -m grpc_tools.protoc -I. -I ./proto/types --python_out=./python --grpc_python_out=./python ./proto/types/*
Package: iot-ftps-client
iot-ftps-clientThis package is a wrapper around theftplibprotocol to provide a synchronous client for interacting with FTPS servers from IoT edge devices.Official Documentation|Source code|Package PyPITable of ContentsVersioningGetting StartedPrerequisitesBasic ExamplesVersioningThis repository adheres toSemantic Versioning. It will be maintained through theCHANGELOG.mdand in GitHub Releases.It's important to notethat you must maintain the version with your releases iniot/ftps/client/_version.py, otherwise a new package version will fail to get published.Getting StartedThis section provides basic examples with theiot-ftps-client.PrerequisitesPython 3.7 or later is required to use this package.Basic ExamplesInstall viapip:pipinstalliot-ftps-clientImport and say hello:fromiot.ftps.clientimport__version__print(f"hello world from iot-ftps-client version:{__version__}")Basic usage:importtempfilefromiot.ftps.clientimportIoTFTPSClient# instantiate clientftps_client=IoTFTPSClient(ftps_host="myServerIP",ftps_port=990,ftps_user="myServerUsername",ftps_pass="myServerPass***",ssl_implicit=True,)# print info w/ reprprint(f"{ftps_client.__repr__()}")# download blob to tempfiletemp_file=tempfile.NamedTemporaryFile()download_result=ftps_client.download_file(source="path/to/blob.txt",dest=temp_file.name,)ifnotdownload_result:print("unable to download file")temp_file.close()raise# upload tempfile to blobupload_result=ftps_client.upload_file(source=temp_file.name,dest="path/to/new/blob.txt",)ifnotupload_result:print("unable to upload file")temp_file.close()raise# clean-up local memorytemp_file.close()
Package: iotfunctions
IoT FunctionsA companion package to IBM Watson IoT Platform Analytics containing sample functions and base classes from which to derive custom functions.Getting StartedThese instructions will get you up and running in your local environment or in Watson Studio for development and testing purposes.Prerequisitespython 3.X (https://www.anaconda.com/distribution/)future (pip install future)pandas (pip install pandas)sqlalchemy (pip install sqlalchemy)ibm_db_sa (pip install ibm_db_sa)ibm_cos_sdk (pip install ibm-cos-sdk)lxml (pip install lxml)Build and ShipmentCaveatShipping to pypi or test-pypi requires a tokenVersion numbers can never be reused.Build a distribution firstpython3 setup.py sdist bdist_wheelUpload to test-pypitwine upload --verbose --repository testpypi dist/*When everything appears to be okay upload to pypitwine upload --verbose --repository pypi dist/*InstallingCreate a virtual environmentpython3 -m venv envActivate virtual environmentsource env/bin/activateInstall in your local environment from GitHubpip install git+git://github.com/ibm-watson-iot/functions@production --upgradeTo install in IBM Watson Studio from another Jupyter notebook:!pip install git+git://github.com/ibm-watson-iot/functions.git@production --upgradeTest for successful install:import iotfunctions as fn
print(fn.__version__)ChangelogKeep up to date with the latestchanges.Further informationIBM Knowledge Center - IoT Platform AnalyticsSample Notebook
Package: iot-gateway
ThingsBoard IoT GatewayThe ThingsboardIoT Gatewayis an open-source solution that allows you to integrate devices connected to legacy and third-party systems with Thingsboard.Thingsboard is an open-source IoT platform for data collection, processing, visualization, and device management. SeeWhat is Thingsboard?if you are new platform user.What is ThingsBoard IoT Gateway?Getting started with ThingsBoard IoT GatewayGateway featuresThingsboard IoT Gateway provides following features:OPC-UAconnectorto collect data from devices that are connected to OPC-UA servers.MQTTconnectorto collect data that is published to external MQTT brokers.Modbusconnectorto collect data from Modbus servers and slaves.BLEconnectorto collect data from BLE devices.Requestconnectorto collect data from HTTP API.CANconnectorto collect data using CAN protocol.BACnetconnectorto collect data from devices using BACnet protocol.ODBCconnectorto collect data from ODBC databases.Customconnectorto collect data from custom protocols.Persistenceof collected data to guarantee data delivery in case of network and hardware failures.Automatic reconnectto Thingsboard cluster.Simple yet powerfulmappingof incoming data and messagesto unified format.Remote logging featureto monitor the gateway status through the ThingsBoard WEB interface.RPC gateway methodsto control and get information from the gateway through ThingsBoard WEB interface.ArchitectureThe IoT Gateway is built on top ofPython, however is different from similar projects that leverage OSGi technology.
The idea is distantly similar to microservices architecture.The gateway supports custom connectors to connect to new devices or servers and custom converters for processing data from devices.Especially, when we are talking about language APIs and existing libraries to work with serial ports, GPIOs, I2C, and new modules and sensors that are released every day.The Gateway provides simple integration APIs, and encapsulates common Thingsboard related tasks: device provisioning, local data persistence and delivery, message converters and other.For processing data from devices you also can write custom converter, it will receive information from device and send it to converter to convert to unified format before sending it to the ThingsBoard cluster.SupportCommunity chatQ&A forumStackoverflowDon't forget to star the repository to show your ❤️ and support.LicensesThis project is released underApache 2.0 License.
Package: iot-gw
IoT GatewayIoT gateway is a device that connects its client devices to a IoT platforms.@startditaa                                        
+--------+        +---------+    I2     +----------+
|        |   I1   |         +<----------+   IoT    |
| Device +<------>+ Gateway +   Bridge  | Platform | 
|        |        |         |---------->|          |
+--------+        +---------+ telemetry +----------+
                                state
@endditaaInterface I1Interface between Device and GatewayProtocol: MQTTMqtt topics:AttachUnattachStateEventConfigCommandsAttach topicTopic name:/attachPayload:device id as stringSource:deviceUnattach topicTopic name:/unattachPayload:device id as stringSource:deviceState topicTopic name:/state/<device_id>Payload:device stateSource:deviceEvent topicTopic name:/event/<device_id>Payload:an eventSource:deviceConfig topicTopic name:/config/<device_id>Payload:configurationSource:gatewayCommands topicTopic name:/commands/<device_id>Payload:commandSource:gatewayInterface I2Interface between Gateway and BridgeProtocol: MQTTEvent topicTopic name:/devices/<device_id>/eventsPayload:eventSource:gatewayState topicTopic name:/devices/<device_id>/statePayload:stateSource:gatewayConfig topicTopic name:/devices/<device_id>/configPayload:configurationSource:IoT platformCommands topicTopic name:/devices/<device_id>/commands/#Payload:commandSource:IoT platform
Package: iothealth
IoT Health is a library which provides the health information for supported IoT devices.RequirementsPython 3.9or newer is required.InstallationThere are a few ways to installIoT Health.Install the latest release from PyPIpipinstalliothealthInstall from sourcegitclonehttps://github.com/iot-spectator/iot-health.gitcdiot-healthpipinstall.Supported DevicesIoT Healthsupports and tested on the following devices and platforms.DeviceOperating Systemx86_64Ubuntu 16, 18, 20Raspberry Pi 3 Model B Plus Rev 1.3Raspbian (Debian 9, 10)NVIDIA Jetson NanoJetpack 4.5 (Ubuntu 18.04)UsagesIoT Healthprovides a convenient command line tool. After installIoT Health, runiot-health-clito launch the CLI tool.$iot-health-cliUsage:iot-health-cli[OPTIONS]COMMAND[ARGS]...Options:--helpShowthismessageandexit.Commands:camerascapacitymemoryos-infoplatformprocessor-archprocessorssummarytemperature
Package: iothub-client
iothub-client is now azure-iot-deviceThis package has been renamed. Usepip install azure-iot-deviceinstead.New package:https://pypi.org/project/azure-iot-device/The new package contains many breaking changes to APIs from the 1.x versions. Please see themigration guidefor details.If you still need to use the old 1.x version APIs, the archival source code is still availablehere.Note that 1.x is fully deprecated and no longer supported.
Package: iothub-service-client
iothub-service-client is now azure-iot-hubThis package has been renamed. Usepip install azure-iot-hubinstead.New package:https://pypi.org/project/azure-iot-hub/The new package contains many breaking changes to APIs from the 1.x versions. Please see thesamplesfor details.If you still need to use the old 1.x version APIs, the archival source code is still availablehere.Note that 1.x is fully deprecated and no longer supported.
Package: iotics-identity
iotics-identity-pyCreate Data Mesh. Use interoperable digital twins to create data interactions and build powerful real-time data products. This repository is a library for Decentralised Identity (DID) management with Iotics for applications in Python v3.8+.You need to have an IOTICSpace to take advantage of this DID SDK. Contactproduct@iotics.comfor a free trial orIntroduction to IoticsInteroperate any data, digital twin or service across legacy, on-prem, cloud, IoT, and analytical technologies creating a secure decentralised, federated network of interactions.Power long-term digital transformation using real-time business event streams. Unlock the power of your business by eliminating complex infrastructure and shortening time-to-value.To learn more about IOTICS see ourwebsiteordocumentation site.Identity APIThe identity API is used to manage identities and authentication in the Iotics Host.
The API is split in 3 level according to the user needs:High level identity API: minimal set of features to interact with Iotics HostIdentity API: set of features for basic identities managementAdvanced identity API: set of features for advanced identities managementHow toTwo examples are provided to illustrate the usage of thehigh level APIand theregular api.
SeeIotics Identity API How To.You can also follow these tutorials ondocs.iotics.com.Setup your dev environment:pip install .[dev]Run the linter:tox -e lintRun type analysis:tox -e mypyRun unit tests:tox -e pytestRun BDD tests:tox -e pytestbddReporting issuesThe issue tracker for this project is currently located atGitHub.Please report any issues there with a sufficient description of the bug or feature request. Bug reports should ideally be accompanied by a minimal reproduction of the issue. Irreproducible bugs are difficult to diagnose and fix (and likely to be closed after some period of time).Bug reports must specify the version of theiotics-identity-pymodule.ContributingThis project is open-source and accepts contributions. See thecontribution guidefor more information.LicenseCopyright (c) IOTIC LABS LIMITED. All rights reserved. Licensed under the Apache License, Version 2.0. SeeLICENSEin the project root for license information.Technology UsedMarkdownPythonpylintpytestmypyToxDIDBDD
Package: iotile-analytics-core
IOTile Analytics Core provides classes for pulling data from iotile.cloud into
a standard data science environment.  In particular it natively maps data into
numpy and pandas as appropriate and provides functions to select data.  It
works well with a Jupyter Notebook based analysis environment, through the
functionality can be used in any python environment.The IOTile Analytics package is broken into multiple parts of which
iotile-analytics-core is one.  You should install the additional parts that you need for
your use cases.Installation:` pip install-Uiotile_analytics-core`
Package: iotile-analytics-offline
IOTile Analytics Core provides classes for pulling data from iotile.cloud into
a standard data science environment.  In particular it natively maps data into
numpy and pandas as appropriate and provides functions to select data.  It
works well with a Jupyter Notebook based analysis environment, through the
functionality can be used in any python environment.The IOTile Analytics package is broken into multiple parts of which
iotile-analytics-core is one.  You should install the additional parts that you need for
your use cases.Installation:` pip install iotile_analytics `