![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
azure-iotedge-runtime
Advanced tools
This project is based on the Azure IoT Edge dev tool, but is only contains the Docker image needed to run the Azure IoT Edge runtime in a container.
It is supposed to be used mostly in local development environments and it's wrapped in an NPM package.
To install via NPM, simply run:
$ npm install iotedge
Otherwise, clone the project from Github:
$ git clone iotedge
Using NPM:
$ npx build-iotedge
or build the docker image manually with:
$ docker build . -t iotedge-runtime
This will create a Docker image tagged iotedge-runtime
.
Go to the Azure Portal, then go to your IoT Hub and click on IoT Edge from under the Automatic Device Management section.
Select an existing device that you would like to use or create a new one. Once on the device page, copy one of the two connection strings (either the Primary Connection String or the Secondary Connection String).
You will need to set the connection string you have just grabbed as an environment variable, named IOT_DEVICE_CONNSTR
.
Example:
$ export IOT_DEVICE_CONNSTR='HostName=iothub0730.azure-devices.net;DeviceId=myEdgeDevice;SharedAccessKey=zfD73oX3agHTlT0rOvjPnYTkxRPw/k3U0exEGBDWQ5A='
Using NPM:
$ npx start-iotedge
Or run the container using the provided run-container.sh
script in the bin
folder:
$ ./bin/run-container.sh
A container named iotedgec
will be created and inside the container the iotedged
daemon will be started. If everything is working correctly you will see the daemon output log.
The IoT Edge runtime and its associated modules (which are running as independent containers) are using a Docker network called azure-iot-edge
. The script also creates the network, if it doesn't already exist.
The daemon will use the default ip address assigned by Docker to the container (most probably will be 172.17.0.2). The discovery is automatically done in the rund.sh
script located in the lib folder.
iotedge
CLI toolThis package also provides a cli utility which helps with development, debugging, and troubleshooting of issues. You can use it in two ways:
Via NPM:
$ npx iotedge
or running the provided iotedge.sh
script directly:
$ ./bin/iotedge.sh
This tool forwards the arguments to the iotedge
CLI tool available in the main runtime container.
For example:
$ ./bin/iotedge.sh list
is equivalent to:
docker exec iotedgec iotedge -H http://172.17.0.2:15580 list
FAQs
an NPM wrapper around the Azure IoT Edge dev tool
The npm package azure-iotedge-runtime receives a total of 0 weekly downloads. As such, azure-iotedge-runtime popularity was classified as not popular.
We found that azure-iotedge-runtime demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.