A Flask web application for URL redirection and workspace management
Project description
DemoLab
A Flask web application for URL redirection and workspace management.
Features
- User authentication through API
- Workspace initialization and management
- URL redirection to user workspaces
- User workspace查询接口
Installation
You can install DemoLab from PyPI: pip install demolab Or install from source: git clone https://github.com/yourusername/demolab.git cd demolab pip install .
Usage
Start the DemoLab application: demolab The application will start on http://localhost:5000 by default.
Configuration
You can configure the application using environment variables:
AUTH_SERVICE_URL: URL of the authentication service (default: http://localhost:5000/auth)INIT_WORKSPACE_SCRIPT: Path to the workspace initialization scriptUSER_CONFIG_PATH: Path to the user configuration JSON fileWORKSPACE_LOG_PATH: Path to the workspace logs directorySECRET_KEY: Secret key for Flask application securityVALID_INIT_TOKENS: Comma-separated list of valid initialization tokens
API Endpoints
GET /: Login pagePOST /api/login: Authentication endpointGET /lab_init/<token>/<user>: Initialize user workspace and redirectGET /users/<user>: Get user workspace information
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file demolab-0.1.0.tar.gz.
File metadata
- Download URL: demolab-0.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d98e61770363871875e28df622b2dfc16ae49c48bcff5020b2e2f89f1ae64ba
|
|
| MD5 |
4850fda4da8980489e5fd56cdea38964
|
|
| BLAKE2b-256 |
23a6a8c942812499471bad36dc794bd4b1e4240aadab97a0a744ffc6ead672a1
|
File details
Details for the file demolab-0.1.0-py3-none-any.whl.
File metadata
- Download URL: demolab-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40998142f74c96fd06d3a2c2f34b8a647ead4a30e42d17b2a779c4e08c5a2f4f
|
|
| MD5 |
77ca4555c10757240fba910bed0c9c4d
|
|
| BLAKE2b-256 |
2eb94f0716c84ab47a66fb5852270158e093e37fb4ee20a0eadaa17e1c6b4f8d
|