Metadata-Version: 2.4
Name: demolab
Version: 0.1a0
Summary: A Flask web application for URL redirection and workspace management
Home-page: https://github.com/levindemo/demolab
Author: levin
Author-email: your.email@example.com
Keywords: flask,url,redirect,workspace
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.7, <4
Description-Content-Type: text/markdown
Requires-Dist: flask>=2.0.0
Requires-Dist: requests>=2.26.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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
