Skip to main content

PyServer is a simple, multithreaded Python HTTP GET & POST server that logs requests and provides a fancy, modern, and dark-themed directory listing

Project description

PyServer

PyServer is a simple, multithreaded Python HTTP GET & POST server that logs requests and provides a fancy, modern, and dark-themed directory listing. This server is perfect for quickly sharing files and directories over a network with minimal setup.


Features

  • HTTP GET and POST requests
  • Serves files and directories with a modern dark-themed listing.
  • Multithreaded for improved performance.
  • Logs HTTP requests with colored output for better readability.
  • Easy to set up and run.

Requirements

  • Python 3.x
  • colorlog library for colored logging output.

Installation

  1. Clone the repository or download the pyserver.py file.
  2. Install the required colorlog library if you haven't already:
pip install colorlog

or install the requirement from requirements.txt:

pip install -r requirements.txt

Usage

Run the server with the following command:

python3 ./pyserver.py [port]

If no port is specified, the server will default to port 8080.

Example:

python3 ./pyserver.py 8000

Screenshots

directory listing:

request logging:


License

This project is licensed under the MIT License - see the LICENSE file for details. Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Acknowledgments

Inspired by the need for a simple, yet modern and stylish, Python HTTP server for quick file sharing and directory listing.


Credits

This project was inspired by the work of Miel Donkers See: https://gist.github.com/mdonkers/63e115cc0c79b4f6b8b3a6b797e485c7

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

pyserver_mag1cbyt3s-0.0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

pyserver_Mag1cByt3s-0.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file pyserver_mag1cbyt3s-0.0.1.tar.gz.

File metadata

  • Download URL: pyserver_mag1cbyt3s-0.0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pyserver_mag1cbyt3s-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fba6fca9ee179e239ec34ef8cbd56331c46ad89e428c9db9c475c794f5fdb673
MD5 5cdd2334f42b9c695bad0f93849704c3
BLAKE2b-256 79558e3a90e9367c5a325a4b41a00130603e31de995ffef0801d6f6b1aedcfa0

See more details on using hashes here.

File details

Details for the file pyserver_Mag1cByt3s-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyserver_Mag1cByt3s-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0342bf53a39fd6bb38bee86adda581d47df93a2ab7a128ef13c38a4b6490547b
MD5 6b71a364c0241a35d46f6d7927f552cd
BLAKE2b-256 47263dc172e2a759bb6ae0462165a5e5fd760f07967e56236182e4badafffdf6

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