Metadata-Version: 2.4
Name: aidesk
Version: 0.1.0
Summary: A simple web service to generate files via API
Home-page: https://github.com/yourusername/aidesk
Author: Your Name
Author-email: your.email@example.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-python
Dynamic: summary

# aidesk

A simple web service to generate files via API, with a CLI to start the service.

## Features

- Web service based on Python's built-in `http.server`
- API endpoint to generate files from text content
- CLI to start the service with custom host and port
- Simple web interface showing API documentation

## Installation
pip install aidesk
## Usage

Start the web service:
# Default host (localhost) and port (8000)
aidesk

# Custom host and port
aidesk --host 0.0.0.0 --port 8080

# Debug mode
aidesk --debug
Once the service is running, you can access the API documentation at http://localhost:8000

## API

### Generate File

**POST /generate-file**

Parameters:
- `filename`: Name of the file to generate
- `content`: Multi-line text content for the file

Example with curl:
curl -X POST http://localhost:8000/generate-file \
  -d "filename=example.txt&content=First line%0ASecond line%0AThird line"
Response (JSON):{
  "success": true,
  "message": "File generated successfully",
  "file_path": "generated_files/example.txt"
}
## License

MIT
