Python package to query information about the current ec2 instance. Useful for ec2 instances to configure themselves.
Install:
$ pip install mec2
Command line:
$ mec2 instance_name
Library:
import mec2 print mec2.instance_name()
View available commands in source code.
Push new version to pypi:
$ vim setup.py # Edit version tag $ rm -rf dist $ python setup.py sdist $ twine upload dist/*