Python

Interprocess Communication with Redis

There are many methods to communicating between processes. Many methods work best when only using a single programming language, while others require custom packets and parsing. Simplicity is key and Redis is an efficient solution. Redis is an open-source in-memory database project implementing a distributed, in-memory key-value store. Start Redis Server We will be using a Docker Redis container to run the Redis server. docker run -d --rm --name my_redis -p 6379:6379 redis -d, --detach: Run container in background and print container ID --rm: Automatically remove the container when it exits --name string: Assign a name to the container -p, --publish list: Publish a container’s port(s) to the host Client Installation This quick tutorial will focus on Python, so let’s install the recommended package.

Testing Python Packages with Docker

Package management is hard. Sometimes in Python package development, your local (development) environment may behave a little differently than a deployment target. Below is a simple method I use to replicate a clean environment and test Python package installs and tests. docker run -v `pwd`:`pwd` -w `pwd` python pip install . docker run -v `pwd`:`pwd` -w `pwd` python python setup.py install docker run -v `pwd`:`pwd` -w `pwd` python python setup.py test First, we bind the current directory to our container (-v) and switch our working directory (-w).

Start a Simple Web Server

python -m http.server 8000 This will serve index.html in the current working directory.

Pybotics

Domo arigato, Mr. Roboto: Calibrating Robots with Python

Modern robotic applications often rely on offline programming to reduce process downtime. In a virtual environment, robot application specialists may program, visualize, and test their robotic application before uploading it to the real production …

Domo arigato, Mr. Roboto: Calibrating Robots with Python

This talk was presented at Montréal-Python 67: Ultramodern Vintage - PyCon Canada Special Modern robotic applications often rely on offline programming to reduce process downtime. In a virtual environment, robot application specialists may program, visualize, and test their robotic application before uploading it to the real production environment, saving time and costs. However, to achieve a high level of fidelity between virtual and production environments, the robot system must be accurate.

Future Micro-surgical Robot!

[email protected], thank you for choosing us as your robot provider! We truly appreciate working with you. pic.twitter.com/habqDJGy2d — Mecademic (@Mecademic) March 21, 2016