Skip to main content

A simple web service to generate files via API

Project description

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

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

aidesk-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

aidesk-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file aidesk-0.1.0.tar.gz.

File metadata

  • Download URL: aidesk-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for aidesk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a261ce4db474a904a2c5d014acdce90c23da59c2892129af2cb2e7a3153ce95a
MD5 19deb2c182388711a1797cf382933e58
BLAKE2b-256 95ce020082177e85610b6f7f5991886e6c7450e630e0aa1c58a979d4f8b4ece9

See more details on using hashes here.

File details

Details for the file aidesk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aidesk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for aidesk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d06b2c5e08ca3948325646cef121f21a3bd38f0f4aa945699453a93111891830
MD5 33c6f2331656ca4b6fa4a4fd912d4f4e
BLAKE2b-256 bff14b7891b13814f2a66ec1987f13d7f439ebd8a07d18fa59d7a85b02044c6a

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