Skip to content

Instantly share code, notes, and snippets.

View pserranoa's full-sized avatar

Pedro Serrano Alonso pserranoa

  • BBVA Tech
  • Spain
  • 22:53 (UTC +02:00)
View GitHub Profile
@pserranoa
pserranoa / lambda_function.py
Created December 6, 2022 10:42 — forked from matt2005/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
# -*- coding: UTF-8 -*-
"""
based on from github "https://gist.github.com/s1ider/f13c2f163282dbec7a61"
Customized for parallel scenarios
Authors: i4s-pserrano
"""
from multiprocessing import Pool
from subprocess import Popen, PIPE