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
Metadata
Release files for demolab 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| demolab-0.1.0.tar.gz | 10.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| demolab-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.2 kB
Release files / demolab-0.1.0.tar.gz
| Download URL | demolab-0.1.0.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d98e61770363871875e28df622b2dfc16ae49c48bcff5020b2e2f89f1ae64ba
|
|
BLAKE2b-256 checksum How to use checksums |
23a6a8c942812499471bad36dc794bd4b1e4240aadab97a0a744ffc6ead672a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Release files / demolab-0.1.0-py3-none-any.whl
| Download URL | demolab-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40998142f74c96fd06d3a2c2f34b8a647ead4a30e42d17b2a779c4e08c5a2f4f
|
|
BLAKE2b-256 checksum How to use checksums |
2eb94f0716c84ab47a66fb5852270158e093e37fb4ee20a0eadaa17e1c6b4f8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Security for demolab 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.