Skip to main content

Repository for the python client

Prerequisite

  • Docker
  • Python 3

Server Setup (Quick Start)

cd ~
mkdir controlnet-docker
cd controlnet-docker
wget https://mayank31313.github.io/docker/socket_server/docker-compose.yml

docker-compose up

Client (Quick Start)

For this example no external configuration is needed, all the settings are predefined. The below example will only give a use case on the controlnet platform.

git clone https://github.com/mayank31313/ior-python
cd ior-python/examples
python3 LatencyCheck.py ../config/from.json ../config/to.json

Installation

Run the following command, use either command as per the need

python3 setup.py install
pip3 install git+https://github.com/mayank31313/ior-python.git

Usage

config = {
    "server": "localhost",
    "httpPort": 5001,
    "socketServer": "localhost",
    "tcpPort": 8000,
    #"useSSL": True    # Optional
}

Create Instance of IOT Client

from ior_research.IOTClient import IOTClientWrapper
iot = IOTClientWrpper(token=token, config = config) #Creating object for IOT Client

Setting up Receive Function to do some Operation when a response is received.

iot.set_on_receive(lambda x: print(x))

Last but not the least start the IOTClient

iot.start()
iot.join() #Since IOTClient inherites Thread Class you can also use .join() function depending on your use case

Quick Demo

Metadata

Release files for ior-research 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ior-research 2.0.1
File Size Uploaded Provenance Actions
ior_research-2.0.1.tar.gz 30.3 kB Without provenance Details for ior_research-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ior-research 2.0.1
File Interpreter ABI Platform Actions
ior_research-2.0.1-py3-none-any.whl Python 3 none any Details for ior_research-2.0.1-py3-none-any.whl

Total release size: 66.5 kB

Release files / ior_research-2.0.1.tar.gz

Download URL ior_research-2.0.1.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
234d4c8e2dca6755de2d7eb7c8428440cb9b6ed29d672605f3cab52c4d9aa75f
BLAKE2b-256 checksum
How to use checksums
2189d793cc38819c06bf4fbeb4e94187ed664f617f165a8e1d6fd9ebbac2ff68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / ior_research-2.0.1-py3-none-any.whl

Download URL ior_research-2.0.1-py3-none-any.whl
Size 36.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f878ff5050a07ef8cfb8fb6b6d818f61398e40b8531425c81182fc5ae7a1687
BLAKE2b-256 checksum
How to use checksums
69cccf546272d521450cf719941c72689e9daa60a7d10092e4c1ad4eda8a565e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for ior-research 2.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page