| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Internal system integrations in Python. Check out the parent README for more context.
If you are in a Codespace, you can run pip install -r requirements.txt.
If you are running this locally, ensure you are using python 3.8.x, and then run:
python3 -m venv env
source ./env/bin/activate
pip3 install -r requirements.txtIn order to run the server with HTTPS enabled, you need to make sure you have your own SSL certificate and private key. If you don't need to have it enabled, you can set the following environment variable:
export USE_HTTPS=falseElse you can use your certificate and private key, and set it on the code on main.py file
httpd.socket = ssl.wrap_socket(
httpd.socket,
keyfile="ssl/private.key",
certfile='ssl/certificate.pem',
server_side=True
)If you want to verify the JWT token, you need to set the AUDIENCE environment variable.
You can find the audience on your Organization URI at https://app.transcend.io/infrastructure/sombra.
This API key authenticates you to Transcend, and you can generate it on the admin dashboard. API keys must be scoped to certain operations or data silos.
This API key authenticates you to to your Sombra gateway.
This is the URL of your Sombra gateway.
python main.pyGo to https://localhost:4443
You can test against this example live by adding it to your Integrations and using ngrok to map your localhost to a live domain.
ngrok http --hostname=test-python.ngrok.io 4443| Back | FazBrowse Home | New Git URL |