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/levindemo/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.1a0.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.1a0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file demolab-0.1a0.tar.gz.

File metadata

  • Download URL: demolab-0.1a0.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.1a0.tar.gz
Algorithm Hash digest
SHA256 715ad0ff17754bf19f969e7cf767e233bf7d95b8858b3b8c282f5e41a324a98a
MD5 f3e1a4f03825952db4eed8db4d2da694
BLAKE2b-256 979e3f75bcd910693cf1e410158901c8ea240fd557495490aaf1acaff4bfb321

See more details on using hashes here.

File details

Details for the file demolab-0.1a0-py3-none-any.whl.

File metadata

  • Download URL: demolab-0.1a0-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.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 72b4778ddedc9dd06a6c3f64885fa2659a69742d4a133eee4beb5ed183e16bbd
MD5 d68f8aa5cd4984eacf64fbc2d4b46670
BLAKE2b-256 47edd7eb8ddb60a1ae39d792d2b2281a0460d81b340818165ab5fc121a71b592

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