Skip to main content

A multithreaded HTTP server with authentication and partial content support.

Project description

HTTPlus-Server

A fast, multithreaded HTTP server with authentication & partial content support!

Features

Multithreaded - Handles multiple requests concurrently
Basic Authentication - Secure access with a username & password
Custom Directory Serving - Serve files from any folder
Partial Content Support - Resume downloads with HTTP range requests
Lightweight & Easy to Use - Run with a single command


Installation

Install via pip:

pip install httplus-server

Usage

Run the server with default settings (binds to 0.0.0.0, port 8080, no authentication):

httplus-server

Start with Custom Port

httplus-server 9090

Enable Multithreading

httplus-server -p 8080 -t

Serve a Specific Directory

httplus-server -p 8080 -d /path/to/directory

Enable Basic Authentication

httplus-server -p 8080 -u myuser -P mypassword

Full Example

httplus-server -b 0.0.0.0 -p 8000 -d mydir -u admin -P Secret123 -t

This starts a multithreaded HTTP server on port 8000, serving files from mydir/, requiring "admin" as the username and "Secret123" as the password.

Command Line Options

Option Short Description Default
--bind -b Bind to a specific IP (e.g., 0.0.0.0, [::]) 0.0.0.0
--port -p Port to listen on 8080
--dir -d Directory to serve files from Current directory
--user -u Username for authentication None (no auth)
--pass -P Password for authentication None (no auth)
--threaded -t Enable multithreading Off

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

httplus_server-0.1.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

httplus_server-0.1.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file httplus_server-0.1.3.tar.gz.

File metadata

  • Download URL: httplus_server-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for httplus_server-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2927e81a5365a175d35231781f7c6aa0aec39057bd0a4fb01db3671026a96a01
MD5 c8ba9b1d70df421532b9d22834f9c115
BLAKE2b-256 adf999f1df5a6c52079a72c490ed0908471eab66edf3a9106faf77c527363f5f

See more details on using hashes here.

File details

Details for the file httplus_server-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: httplus_server-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for httplus_server-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 110c49281d68858f9b91c5939c6136052bdfb4ebe1e2d4ecb6d9c0086c4f4652
MD5 1d6d1e05944a34ed497afb61f631b07b
BLAKE2b-256 9d0d1403afba2d0d9512e58fa614ccb6ba786f69aad46e3ab038790bd1a285f5

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