This project provides a python fastapi interface to access data from sentryx.io.
- Python 3.x
pip
(Python package installer)
git clone https://github.com/jcarter62/sentryx-api.git
cd sentryx-api
python -m venv venv
- On Windows:
.\venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt
Create a .env
file in the root directory of the project and add the following environment variables:
APIURL=https://api.sentryx.io/v1-wm/sites/
COMPANYID=sentryx-company-id-here
USERNAME=userid@domain.com
APIKEY=put-your-api-key-here
TITLE=Sentryx API
CONTACT_NAME=John Doe
CONTACT_EMAIL=jd@go.com
SQLSERVER=sql-svr
INSTANCE=sql-instance
DATABASE=sql-db
UID=sql-user
PASSWORD=sql-password
AMI_CODE=TC0041
There is a sample.env file available as a template in the project.
uvicorn main:app
Visit the url 'http://...:8000/docs' to see the API documentation.
This project is licensed under the MIT License - see the LICENSE file for details.