Skip to content

Instantly share code, notes, and snippets.

@mcstafford-git
mcstafford-git / localstack_test.py
Created March 30, 2020 00:39
Initial Use of LocalStack from a Python/CLI Perspective
#!/usr/bin/env pytest
"""
Configuring python test environment to work against LocalStack
Expanding upon README.md in https://github.com/localstack/localstack-python-client
Pre-reqquisites:
pip install localstack-client pytest &&
git clone https://github.com/localstack/localstack.git &&
@mcstafford-git
mcstafford-git / keybase.md
Created May 13, 2019 22:53
keybase prove github

Keybase proof

I hereby claim:

  • I am mcstafford-git on github.
  • I am mcstafford (https://keybase.io/mcstafford) on keybase.
  • I have a public key ASApMJlPh7AN_TeOx7-dYqw7NQvyQmy9WmklVzgrqyuWpAo

To claim this, I am signing this object:

"""
Python's lambda is an alternative way to create a function,
something like anonymous functions in pl/sql, and javascript.
"""
def input_times_whatever(n):
return lambda a: a * n
# variable scope, lifetime
# modified from stackoverflow https://goo.gl/Gy5Ai7
import multiprocessing
import os
def hey(pid, message):
global i
global queue