A simple web service with file operations and authentication
Project description
aidesk
A simple web service with file operations and authentication.
Features
- Web service based on Python's built-in
http.server - User authentication (login/logout)
- API endpoint to generate files from text content
- API endpoint to upload files
- 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
Default credentials:
- Username: admin
- Password: admin
API
Authentication
POST /api/login
Parameters:
username: Your usernamepassword: Your password
Example:curl -X POST http://localhost:8000/api/login
-d "username=admin&password=admin"
Generate File
POST /api/generate-file (Requires authentication)
Parameters:
filename: Name of the file to generatecontent: Multi-line text content for the file
Example:curl -X POST http://localhost:8000/api/generate-file
-b "session_id=your_session_id"
-d "filename=example.txt&content=First line%0ASecond line%0AThird line"
Upload File
POST /api/upload-file (Requires authentication)
Parameters:
- File data as multipart/form-data
Example:curl -X POST http://localhost:8000/api/upload-file
-b "session_id=your_session_id"
-F "file=@localfile.txt"
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aidesk-0.2.0.tar.gz.
File metadata
- Download URL: aidesk-0.2.0.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9a2353f6618445a6ef29f3e3e95a4e845673987c223a359d6feac6ef721171a
|
|
| MD5 |
d58c1a800e25a57f8b6d6828a11eef84
|
|
| BLAKE2b-256 |
28e47a273d66f47e8b859d7aead9782b4cba5e7de39007a197109995f33d28eb
|
File details
Details for the file aidesk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: aidesk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cb895fd0845745ea1c57824a9103934abecb5b544c0412973f45ef222451aed
|
|
| MD5 |
2cfde31c2c454cff77df0649732b16ce
|
|
| BLAKE2b-256 |
f87b24c8be021cc3085c1be92251c5d5c08f3bce96ffcf4db70e70b60a1bb1d8
|