Saravanan666/pypi-org huggingface dataset:
Package: iotrelay-influxdb
version 1.7.0iotrelay-influxdb is a data handler plugin for IoT Relay. It watches for
data it has registered an interest in and relays it in batches to a
InfluxDB time series database. See theIoT Relay Documentationfor more.iotrelay-influxdb is available on PyPI and can be installed via pip.$pipinstalliotrelay-influxdbBefore using iotrelay-influxdb a database must be
created. Seehttps://influxdata.com/for more.
to the IOT Relay configuration file,~/.iotrelay.cfgonce they have
been given by InfluxDB.[iotrelay-influxdb]host=influxdb hostnameusername=influxdb passwordpassword=influxdb passwordenable_ssl=TrueThereading typesto be relayed to InfluxDB should also be
registered. In this example, reading types of power and weather will be
relayed to InfluxDB.[iotrelay-influxdb]reading types=power, weatherhost=influxdb hostnameusername=influxdb usernamepassword=influxdb passwordBy default iotrelay-influxdb will batch 30 readings of each type before
sending the batch to InfluxDB. In the previous example, two separate
batches would be maintained for power and weather readings. The batch
size may be changed by adding thebatch sizeoption to theiotrelay-influxsection of~/.iotrelay.cfg.[iotrelay-influxdb]batch size=30reading types=power, weatherhost=influxdb hostnameusername=influxdb usernamepassword=influxdb passwordLicenseCopyright © 2016, Emmanuel Levijarvi
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: iotrelay_nest
Copyright (c) 2016, Emmanuel Levijarvi
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: iotrelay-pywws
Release v1.0.2Installpip install iotrelay-pywwsSeehttp://jim-easterbrook.github.io/pywws/doc/en/html/index.htmlfor
more on pywws.Copyright (c) 2016, Emmanuel Levijarvi
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
“AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: iotronic-lightningrod
Python implementation of Lightning-rod Agent, the Stack4Things
board-side probe.Free software: Apache 2.0 licenseWebsite:http://stack4things.unime.it/Source:https://opendev.org/x/iotronic-lightning-rodBugs:https://bugs.launchpad.net/iotronic-lightning-rodInstallation guidesRaspberry Pi 3.Ubuntu 16.04 and 18.04.Docker:Raspberry Pi.Debian/Ubuntu.
Package: iotronic-ui
Iotronic plugin for the OpenStack DashboardFree software: Apache licenseSource:http://git.openstack.org/cgit/openstack/iotronic-uiFeaturesTODOManual InstallationBegin by cloning the Horizon and IoTronic Panels repositories:git clone https://github.com/openstack/horizon.git
git clone https://github.com/openstack/iotronic-ui.gitInstall IoTronic Panels with all the dependencies:cd iotronic-ui
pip install -r requirements.txt
python setup.py installCopy the Iotronic API and enable the plugin in Horizon:cp iotronic_ui/api/iotronic.py /usr/share/openstack-dashboard/openstack_dashboard/api/
cp iotronic_ui/enabled/_60*.py /usr/share/openstack-dashboard/openstack_dashboard/enabled/To run horizon with the newly enabled IoTronic Panels plugin restart apache:systemctl restart apache2.serviceCheck the Horizon Login page on your browser and you will see the new Dashboard called “IoT”.Extra infoIf you want to enable logs for a better debug follow the following steps or just skip them.:mkdir /var/log/horizon
touch /var/log/horizon/horizon.log
chown -R horizon:horizon /var/log/horizon

vim /etc/openstack-dashboard/local_settings.py

    'formatters': {
        'verbose': {
            'format': '%(asctime)s %(process)d %(levelname)s %(name)s %(message)s'
        },
    },

    ....

    'handlers': {
        ....
        'file': {
               'level': 'DEBUG',
               'class': 'logging.FileHandler',
               'filename': '/var/log/horizon/horizon.log',
               'formatter': 'verbose',
         },
    },

    ....

    'loggers': {
        ....
        'horizon': {
            ....
            'handlers': ['file'],
            ....
        },
        'openstack_dashboard': {
            ....
            'handlers': ['file'],
            ....
        },
        'iotronic_ui': {
            'handlers': ['file'],
            'level': 'DEBUG',
            'propagate': False,
        },
    }Verify if Apache Openstack Dashboard Configuration file is correctly set with what follows:vim /etc/apache2/conf-available/openstack-dashboard.conf
    WSGIApplicationGroup %{GLOBAL}

service apache2 reload
systemctl restart apache2.service
Package: iot-samba-client
iot-samba-clientThis package is a wrapper around thesmbprotocolSDK to provide a synchronous client for interacting with file shares 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/samba/client/_version.py, otherwise a new package version will fail to get published.Getting StartedThis section provides basic examples with theiot-samba-client.PrerequisitesPython 3.7 or later is required to use this package.You must have a Samba Windows File Share server to use this package.Basic ExamplesInstall viapip:pipinstalliot-samba-clientImport and say hello:fromiot.samba.clientimport__version__print(f"hello world from iot-samba-client version:{__version__}")Basic usage:importtempfilefromiot.samba.clientimportIoTSambaClient# instantiate clientsamba_client=IoTSambaClient(smb_server="windows-samba-s",smb_host="1.2.3.456",smb_port=445,smb_user="mySambaUserName",smb_pass="mySambaPass***")# print info w/ reprprint(f"{samba_client.__repr__()}")# download blob to tempfiletemp_file=tempfile.NamedTemporaryFile()download_result=samba_client.download_file(share="MY_SAMBA_SHARE",path="path\\to\\blob\\parent\\dir",file="blob.txt",dest=temp_file.name,)ifnotdownload_result:print("unable to download file")temp_file.close()samba_client.disconnect()raise# upload tempfile to blobupload_result=samba_client.upload_file(share="MY_SAMBA_SHARE",path="path\\to\\new\\parent\\dir",file="newBlob.txt",source=temp_file.name,)ifnotupload_result:print("unable to upload file")temp_file.close()samba_client.disconnect()raise# clean-up local memory and disconnect from smb sessiontemp_file.close()samba_client.disconnect()
Package: iot-storage-client
iot-storage-clientThis package is a wrapper around theazure-storage-blobSDK to provide an asynchronous and synchronous client for interacting with Azure storage accounts in the cloud and on the edge.Official Documentation(async version) |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/storage/client/_version.py, otherwise a new package version will fail to get published.Getting StartedThis section provides basic examples with theiot-storage-client.PrerequisitesPython 3.7 or later is required to use this package.You must have an Azure subscription and Azure storage account to use this package.Basic ExamplesInstall viapip:pipinstalliot-storage-clientImport and say hello:fromiot.storage.clientimport__version__print(f"hello world from iot-storage-client version:{__version__}")Basic usage:importtempfilefromiot.storage.clientimportCredentialType,LocationType,IoTStorageClient# instantiate clientstorage_client=IoTStorageClient(credential_type=CredentialType.ACCOUNT_KEY,location_type=LocationType.CLOUD_BASED,account_name="myAzBlobStorageAcctName",credential="myBlobPrimaryKey***")# print info w/ reprprint(f"{storage_client.__repr__()}")# download blob to tempfiletemp_file=tempfile.NamedTemporaryFile()download_result=storage_client.download_file(container_name="myAzBlobContainerName",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=storage_client.upload_file(container_name="myAzBlobContainerName",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()Basic async usage:importtempfilefromiot.storage.clientimportCredentialType,LocationType,IoTStorageClientAsync# instantiate clientstorage_client=IoTStorageClientAsync(credential_type=CredentialType.ACCOUNT_KEY,location_type=LocationType.CLOUD_BASED,account_name="myAzBlobStorageAcctName",credential="myBlobPrimaryKey***")# print info w/ reprprint(f"{storage_client.__repr__()}")# download blob to tempfiletemp_file=tempfile.NamedTemporaryFile()download_result=awaitstorage_client.download_file(container_name="myAzBlobContainerName",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=awaitstorage_client.upload_file(container_name="myAzBlobContainerName",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: iottalk-py
Current supported module:Device Application to Network (DAN)Device Application to IoT device (DAI)Supported Python version:2.73.4+Installationpip install iottalk-pyUsage of DAI moduleThere is a executable DAI module. User can invoke it via the command line
interface.:python -m iottalkpy.dai /path/to/your/sa.pyor:python -m iottalkpy.dai /path/to/your/sa  # in case of dirAPIIf you want to operate DAI via Python API:fromiottalkpyimportdaisa=dai.module_to_sa(dai.load_module('/path/to/sa.py'))sa.start()...# stop sa processsa.terminate()Usage of DAN moduleMinimal example:fromiottalkpyimportdanccm_url='http://localhost:9992'defon_data(*args):...defon_signal(*args):...# handle CCM signal hereclient=dan.Client()client.register(ccm_url,on_signal=on_signal,on_data=on_dataodf_list=[('meow',['dB'])],name='BetaCat',profile={'model':'AI',},)client.loop_forever()Developer NotesDevelopment stepsInstall this package and the development requirementspipinstall-e.pipinstall-rdev-requirements.txtRelease stepsBump version and commitgit-tagthe versionVersioning rule:<major>.<minor>.<patch>The major and minor verion number should be the same as IoTtalk server.git push--tagspython ./setup.py bdist_wheeltwine upload./dist/iottalk_py-<version>-py3-none-any.whlTODOAuto generate doc via Sphinx
Package: iottycloud
iottycloud: a Python library to interact with iotty CloudApiA Python library to interact with iotty CloudApi. To use this library in one of your projects, you must first become our Partner. Pleasesend us an email.We're working on a public version of the CloudApi documentation. Stay tuned!Getting StartedTo install the library, simply use pip$ pip install iottycloudTest and pylintYou can run the test suite with pytest:$ cd tests
$ python3 -m pytestYou can check the correctness of your python code using pylint, as usual:$ cd src
$ pylint iottycloud
Package: iot-upnp
IoT UPnPThis project is a little pure Python library to annonce a device by
UPnP. It’s made for IoT developers to let them show their device on
network discovery in any OS.With IoT-UPnP, you can show your device on all computers with Windows
Explorer (network discovery). Users can doucle-click on the device to
open the device configuration page. The device will be shown without any
software installation on user’s computers.Developers can use UPnP to announce custom services and let others
applications use these services. For example, if cameras announce a
service “exemple-org:service:camera-image”, you can made a software
witch easy discover all cameras with this service.RequirementYou need Python 3.x to use this library.Usage and documentationInstallationYou can use pip to install iot-upnp.pip install iot-upnpFull documentationThe full documentation are build with sphinx. It can be found on ReadTheDocs.
page :https://iot-upnp.readthedocs.io/.
Package: ioutil
IOutilTo read and write files.csv, json, parquet, text, toml formats is supported.Installationpip install -U ioutilUsageusage: ioutil [options]

optional arguments:
  -h, --help      show this help message and exit
  -v, --version   show version number and exit.

to read/write files:
  path            path to read/write
  -r, --read      to read file
  -w, --write     to write file
  -d, --data      data to write
  -f, --format    file format to use
  -m, --mode      mode to open file
  --rfv           will return formatted string (CSV only)

-w/--write function may return error as it expects data in specific datatype.
Writing files using commandline isn't recommended.Python ScriptTo read/write csv file.fromioutilimportcsvdata=[['a','b'],[1,2],[3,4]]path='.../file.csv'csv.write(data=data,path=path)# to write csvcsv.read(path=path)# to read csvfromioutilimportFiledata=[{'a':1,'b':2},{'a':3,'b':4}]path='.../file.csv'File.write(data=data,path=path)# to write fileFile.read(path=path)# to read fileCommand Line (not recommended)To write a text file.$ ioutil ".../file.txt" --data "data" --write
TrueTo read a json file.$ ioutil ".../file.json" --read
### content of a file ###Issues:If you encounter any problems, please file anissuealong with a detailed
description.
Package: ioutrack
IOU TrackPython package for IOU-based tracking (SORT&ByteTrack) written in Rust.fromioutrackimportSorttracker=Sort(max_age=5,min_hits=2)#                   xmin ymin xmax ymax scoreboxes_0=np.array([[10.,60.,50.,95.,0.8],...])tracks_0=tracker.update(boxes_0)#                            xmin ymin xmax ymax track_idasserttracks_0==np.array([[10.,60.,50.,95.,1.],...])Demo video:https://youtu.be/BLMnY8K9HBECode to generate the demo video is in thedemofolder.Roughly 30x faster thanpython/numpy implementation.
Package: iow
Improved Octo WaddleAn implementation of the balanced parentheses tree structure as described byCordova and Navarro.Install notesInstallation is a two step procedure right now due to the chicken and egg
problem of requiring numpy and cython for setup.py to execute. The package is
named iow in pypi as "bp" was taken at time of registration.$ conda create --name bp python=3.8
$ conda activate bp
$ conda install numpy cython
$ pip install iowDeveloper notesIf pulling the source, please note that we use a submodule and Github does not
by default bring it down. After a clone, please run:$ git submodule update --init --recursiveFragment insertionBP supports thejplace format. Fragments can be inserted using either fully-resolved or multifurcation mode to resolve multiple placements to the same edge. In fully resolved, the edge placed against is broken N times where N is the number of fragments on the edge. In multifurcation, a new node is constructed as the average of the distal length for the N fragments, and a separate multifurcation node is added which encompasses the placed fragments.Insertions can be handled by the command line following install:$ bp placement --help
Usage: bp placement [OPTIONS]

Options:
  --placements PATH               jplace formatted data  [required]
  --output PATH                   Where to write the resulting newick
                                  [required]

  --method [fully-resolved|multifurcating]
                                  Whether to fully resolve or multifurcate
                                  [required]

  --help                          Show this message and exit.Note that the multifurcating support relies on GPL code derived from the Genesis project. To use this method, please installiow-gpl.
Package: iowait
Different operating systems provide different ways to wait for I/O completion
events: there’sselect(),poll(),epoll()andkqueue(). For
cross-platform applications it can be a pain to support all this system
functions, especially because each one provides a different interface.IOWait solves this problem by providing a unified interface and using always
the best and faster function available in the platform. Its only limitation is
that, on Windows, it only works for sockets.This library is compatible both with Python 2 and 3.ExampleHere is an usage example. First, we need to create a pair of sockets:>>> import socket
>>> a, b = socket.socketpair()Then we create aIOWaitobject. This object is essentially a wrapper around
a system function (such asselect()orpoll()), but exposes always the
same methods and behaves always the same.>>> from iowait import IOWait
>>> waitobj = IOWait()Now we can watch the first socket for read events in this way:>>> waitobj.watch(a, read=True)We send some data over the other socket:>>> b.sendall('this is a test')Callingwait()on theIOWaitobject will tell us that the socket a is
ready to be read:>>> events = waitobj.wait()
>>> events #doctest:+ELLIPSIS
[IOEvent(fileobj=<socket object, ...>, read=True, write=False)]The return value ofwait()is a list of three-tuples in the format:(file, read, write), wherefileis a file-like object,readandwritetell respectively whether the file is ready to be read or written.Once all the data has been read, the next call towait()will block
forever, unless a timeout is specified. The timeout can be zero:>>> a.recv(14)
'this is a test'
>>> waitobj.wait(0)
[]DocumentationThe documentation is stored in the module’s doc string. To read it, use the
Python interactive interpreter:>>> import iowait
>>> help(iowait) #doctest:+SKIP
Package: iow-gpl
Improved Octo WaddleAn implementation of the balanced parentheses tree structure as described byCordova and Navarro. This
repository is a GPL licensed version ofiow.Install notesInstallation is a two step procedure right now due to the chicken and egg
problem of requiring numpy and cython for setup.py to execute. The package is
named iow in pypi as "bp" was taken at time of registration.$ conda create --name bp python=3.8
$ conda activate bp
$ conda install numpy cython
$ pip install iow-gplDeveloper notesIf pulling the source, please note that we use a submodule and Github does not
by default bring it down. After a clone, please run:$ git submodule update --init --recursiveFragment insertionBP supports thejplace format. Fragments can be inserted using either fully-resolved or multifurcation mode to resolve multiple placements to the same edge. In fully resolved, the edge placed against is broken N times where N is the number of fragments on the edge. In multifurcation, a new node is constructed as the average of the distal length for the N fragments, and a separate multifurcation node is added which encompasses the placed fragments.Insertions can be handled by the command line following install:$ bp placement --help
Usage: bp placement [OPTIONS]

Options:
  --placements PATH               jplace formatted data  [required]
  --output PATH                   Where to write the resulting newick
                                  [required]

  --method [fully-resolved|multifurcating]
                                  Whether to fully resolve or multifurcate
                                  [required]

  --help                          Show this message and exit.Note that the multifurcating support relies on GPL code derived from the Genesis project.
Package: iox
note that this package isstill in developmentat this stage, I’m only building thing as they come to mind
version 1.0 will be the first major release
until then, consider this code heavily volatileyet, install simply by callingpip install ioxorpip install –pre ioxfor the latest
development release.we endeavor to followhttps://scikit-learn.org/stable/developers/performance.html
Package: ioxio-data-product-definition-tooling
IOXIO® Data Product Definitions toolingTools for managing Data Product definitionsInstallationpoetryinstallUsagepoetryrunconvert-definitions--help

poetryrunvalidate-definitions--help# run testspoetryruninvoketest# release a new version (after bumping it in pyproject.toml)poetryruninvokereleasePre-commit hooksrepos:-repo:https://github.com/ioxio-dataspace/ioxio-data-product-definition-toolingrev:main# You probably want to lock this to a specific taghooks:-id:data-product-definition-converterpass_filenames:falseargs:["src","DataProducts"]files:|(?x)^(DataProducts/.*json|src/.*py)$-id:data-product-definition-validatorfiles:".*?DataProducts/.*?json$"args:["./DataProducts"]