Greenstalk is available on PyPI:
pip install greenstalk
The server is available in most package repositories. For Debian and Ubuntu:
sudo apt install beanstalkd
For macOS with Homebrew:
brew install beanstalkd