
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@asyncapi/python-paho-template
Advanced tools
This is the Python Paho template for the AsyncAPI generator.
It is basically working but may not generate perfect code for every AsyncAPI document. It works correctly with the temperature.yml file included in the samples directory, which demonstrates a subscriber, a publisher, and a payload class with an embedded enum type.
Support for arrays, specifying function names and other features are yet to be implemented.
In the samples directory there is an example of code that is close to what we intend to generate.
To run the sample code, copy config-template.ini to config.ini and enter the connection details.
If no authentication is needed, you need not provide the username and password values.
If no host is given, the template attempts to find an mqtt host in the servers section of the AsyncAPI document to use instead.
Note that this template interprets the AsyncAPI document in conformance with the AsyncAPI Specification. This means that when the template sees a subscribe operation, it will generate code to publish to that operation's channel. It is possible to override this, see the 'view' parameter in the parameters section below.
Install the AsyncAPI Generator
npm install -g @asyncapi/generator
Run the Generator using the Python Paho Template
ag ~/AsyncApiDocument.yaml @asyncapi/python-paho-template
Copy config-template.ini to config.ini and edit it to provide the connection details.
Parameters can be passed to the generator using command line arguments in the form -p param=value -p param2=value2. Here is a list of the parameters that can be used with this template. In some cases these can be put into the AsyncAPI documents using the specification extensions feature. In those cases, the 'info' prefix means that it belongs in the info section of the document.
| Parameter | Extension | Default | Description |
|---|---|---|---|
| view | info.x-view | client | By default, this template generates publisher code for subscribe operations and vice versa. You can switch this by setting this parameter to 'provider'. |
The following specification extensions are supported. In some cases their value can be provided as a command line parameter. The 'info' prefix means that it belongs in the info section of the document.
| Extension | Parameter | Default | Description |
|---|---|---|---|
| info.x-view | view | client | By default, this template generates publisher code for subscribe operations and vice versa. You can switch this by setting this parameter to 'provider'. |
FAQs
Python Paho template for the AsyncAPI generator.
The npm package @asyncapi/python-paho-template receives a total of 48 weekly downloads. As such, @asyncapi/python-paho-template popularity was classified as not popular.
We found that @asyncapi/python-paho-template demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.