A Flask-based API client , enabling:
- Authentication using Bearer Token (cached with TTL).
- Fetching event & participant details.
- Processing hierarchical data into a structured format.
- Exporting participant data to a CSV file.
- Running inside Docker for easy setup.
- 🛠 Setup Instructions
- 🚀 Running with Docker (Recommended)
- ⚙️ Running Locally (Without Docker)
- 🧪 Running Tests
- 🖥️ API Endpoint
- 🐛 Debugging & Logs
- 📌 Notes
Ensure you have installed:
- Python 3.10+ (if running locally)
- Docker & Docker Compose (recommended for container execution)
pip
(for package management)
- You need valid credentials (
LUXID_API_USERNAME
andLUXID_API_PASSWORD
) to authenticate.
https://github.com/medro25/FlaskApp_Luxid
echo "LUXID_API_USERNAME=your_username" > .env
echo "LUXID_API_PASSWORD=your_password" >> .env
docker-compose up
http://localhost:5000/fetch-participant-info
docker-compose down
git clone https://github.com/YOUR_USERNAME/luxid-flask-app.git
cd luxid-flask-app
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
echo "LUXID_API_USERNAME=your_username" > .env
echo "LUXID_API_PASSWORD=your_password" >> .env
python app.py
"API running at: http://localhost:5000/fetch-participant-info"
pytest -v
docker-compose run --rm flask-app pytest -v
pytest tests/test_api_client.py -v