Skip to content

jcarter62/sentryx-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sentryx-api

Description

This project provides a python fastapi interface to access data from sentryx.io.

Prerequisites

  • Python 3.x
  • pip (Python package installer)

Setup Instructions

1. Clone the Repository

git clone https://github.com/jcarter62/sentryx-api.git
cd sentryx-api

2. Create a Python Virtual Environment

python -m venv venv

3. Activate the Virtual Environment

  • On Windows:
    .\venv\Scripts\activate
  • On macOS/Linux:
    source venv/bin/activate

4. Install Required Packages

pip install -r requirements.txt

5. Set Up Environment Variables

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.

6. Run the Application

uvicorn main:app

Usage

Visit the url 'http://...:8000/docs' to see the API documentation.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published