GitHub - te25son/Exporter: Simple flask app for converting and exporting specific XML content. · GitHub
Skip to content
te25sonPublic

About

Simple flask app for converting and exporting specific XML content.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Exporter App 🚀

Recording of the app in action. To avoid showing secret data, the demo only uses users without privileges to export.

Screen.Recording.2022-06-13.at.6.37.22.PM.mov

To set this up locally, you'll need a new .env file and to set up some particular env vars. Here's the rundown:

FLASK_APP = location of the main app. In this case "exporter/app.py"

SECRET_KEY = 🙊

DATABASE_URI = ulr of database to be used. Currently the app only supports simple sqlite databases.

DEBUG = 🐛🔫

HASH = encryption method to be used when hashing passwords, e.g. sha256

DUMMY_ADMIN_USERNAME = username of user to automatically be added to the database upon creation. Will have export rights (sort of).

DUMMY_ADMIN_PASSWORD = the users password

API_USERNAME = username for authentication to the main endpoint

API_PASSWORD = password of user for authentication to the main endpoint

EXPORT_GET_ENDPOINT_BASE = base of the main endpoint

EXPORT_GET_ENDPOINT_END = end of the main endpoint

If it helps, the endpoint is constructed in the following way:

endpoint = f"{settings.EXPORT_GET_ENDPOINT_BASE}{user defined queue id}{settings.EXPORT_GET_ENDPOINT_END}"

EXPORT_POST_ENDPOINT = endpoint for the final converted content to be posted to

VALID_ANNOTATION_ID = a valid annotation id (used for testing)

VALID_QUEUE_ID = a valid queue id (used for testing)

About

Simple flask app for converting and exporting specific XML content.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages