Skip to main content

a basic http 1.0 server implemented in python

Project description

companion

an http 1.0 web server, implemented with python

Note: This is not intended to be used in any form of a production environment. For sake of time, I didn't pay attention to every edge case or security concern.

Installation

First, install the companion server to your computer,

pip install companion-server

Now, we can run the server... The only required argument is a path to your content directory, this is how the server knows where to look for content (e.g. HTML, PNG, etc)

You can optionally specify a port otherwise it will default to 8180

companion-server /home/dan/webserver/content/

Goals

[x] Implement a subset of the http 1.0 protocol (rfc 1945)

[x] Handle GET and HEAD requests from a client

[x] Manage multiple connections (threading, multiprocessing, etc)

[x] Use only the python standard lib

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

companion_server-1.2.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

companion_server-1.2.4-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file companion_server-1.2.4.tar.gz.

File metadata

  • Download URL: companion_server-1.2.4.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for companion_server-1.2.4.tar.gz
Algorithm Hash digest
SHA256 bd745e511d85bd776ab229b58d3c111cb55a3e684bbf4d77d2db6ffb1f9a4350
MD5 ebc89175e04fd6066c301a008c6d58bb
BLAKE2b-256 857f03b2a74947482d4f01580e3f6484f3313883c8dcaac6351506d517389a96

See more details on using hashes here.

File details

Details for the file companion_server-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: companion_server-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for companion_server-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d1c8abc8467b5d75d2a69bdf70513ccb906313d06096848a2f96db986b440c41
MD5 b0405fe3d65fd298c0791fbd471cbf4b
BLAKE2b-256 98184b5ea387c8521275b5bd2c8929d2efb1c572e69b531c0bb41e42c1df1e3c

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