https://github.com/bendog/alcolizer_hook_compose
https://github.com/bendog/alcolizer_hook_compose
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bendog/alcolizer_hook_compose
- Owner: bendog
- Created: 2020-01-16T05:08:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T21:54:41.000Z (about 5 years ago)
- Last Synced: 2025-02-08T03:44:49.955Z (over 1 year ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Alcolizer Hook Compose
This script reads the required API response and then composes the message for Azure Service Bus
## config
environment variables needed to run the script
| environment var name | value
|----------------------| ------
|ALCOLIZER_API_HOST|`uri` the base url for the connecting to the API host (_example http://127.0.0.1:8080_)
|ALCOLIZER_API_KEY|`str` A private shared key between the API server and this script
|AZURE_SERVICE_BUS_CONNECTION_STRING|`str` The connection string from Azure for the service bus account
|AZURE_SERVICE_BUS_QUEUE|`str` The name of the azure service bus queue
## dev setup
setup the virtual environment using pipenv, run this command in the directory with this file in it. (be sure you have the following environ set `PIPENV_VENV_IN_PROJECT=true`)
pipenv install --dev
open the folder with this file in it, with VS Code. (only works if you have installed the shell command for VS Code)
code .
## updating requirements.txt
to update requirements.txt use the following command in the directory with this file.
pipenv lock -r > requirements.txt
## installing for production
install the requirements for this code with
pip install -U -r requirements.txt