Skip to main content

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 script
  • USER_CONFIG_PATH: Path to the user configuration JSON file
  • WORKSPACE_LOG_PATH: Path to the workspace logs directory
  • SECRET_KEY: Secret key for Flask application security
  • VALID_INIT_TOKENS: Comma-separated list of valid initialization tokens

API Endpoints

  • GET /: Login page
  • POST /api/login: Authentication endpoint
  • GET /lab_init/<token>/<user>: Initialize user workspace and redirect
  • GET /users/<user>: Get user workspace information

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

demolab-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

demolab-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

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

Hashes for demolab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d98e61770363871875e28df622b2dfc16ae49c48bcff5020b2e2f89f1ae64ba
MD5 4850fda4da8980489e5fd56cdea38964
BLAKE2b-256 23a6a8c942812499471bad36dc794bd4b1e4240aadab97a0a744ffc6ead672a1

See more details on using hashes here.

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

Hashes for demolab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40998142f74c96fd06d3a2c2f34b8a647ead4a30e42d17b2a779c4e08c5a2f4f
MD5 77ca4555c10757240fba910bed0c9c4d
BLAKE2b-256 2eb94f0716c84ab47a66fb5852270158e093e37fb4ee20a0eadaa17e1c6b4f8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page