New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mport

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mport

IO port based on mmap

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

mport

IO port based on shared memory map (mmap).

install

pip install mport

Usage

  • Prototype protocols
  • Build control layer and/or data collection layer for AI training applications
  • Broadcast operations to multiple receiving applications
  • Hardware simulation where you have virtual devices running as separate processes yet communicate via ports

Example Reader

import mport

speed_port = mport.Port('io.dat')
light_port = mport.Port('io.dat', offset=2)

while True:
  car.set_speed(speed_port.value)
  car.light(light_port.value)

Example speed controller

import mport

speed_port = mport.Port('io.dat')

speed_port.value = 42

Example light controller

import mport

light_port = mport.Port('io.dat', offset=2)
light_port.value = True

RGB LED Example

python3 -m mport.examples.rgb_led
python3 -m mport.exmaples.rgb_led_drive

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc