Skip to main content

Speedy alternative web server

Project description

⚡ Phoenix ⚡

Phoenix is a speedy lightweight web server with support for modules and extensions.

📦 Installation 📦

You can quickly and easily install from PyPi by running:

pip install phoenix-ws

This provides you with the Phoenix server and PPM package manager.

😀 How it works 😀

Phoenix quickly reads all of the files used by the server and caches them. This reduces the amount of disk read-write operations. It then delivers the files using gzip and zlib to reduce packet size.

Phoenix uses a very small amount of RAM, making it perfect for production environments.

🏁 Getting Started 🏁

You can quickly run Phoenix with:

phoenix run

⚙ Configuration ⚙

Command Line Configuration

run

--host -h - Allow the server to be publicly accessible from other devices.

--port <port> -p <port> - Specify the port to run the server on.

install <package>

Project File Configuration

Phoenix can be configured per-project with a phoenix.config.json file. Here are the options:

host (bool, false) - Allow the server to be publicly accessible from other devices.

port (int, 8080) - Specify the port to run the server on.

zlib (bool, true) - Use zlib compression.

gzip (bool, true) - Use gzip compression.

verbose (bool, false) - Print extra debug messages to the console.

indexDirectories (bool, false) - Display the directory's contents if no file is specified.

indexPhoenix (bool, false) - Index the /phoenix/ directory.

encoding (str, utf-8) - Set the text encoding.

nocompress (list, []) - Disable compression on specific files. Each item of the list is the resource's URL.

minify (bool, true) - Make HTML, CSS, and JS files smaller.

proxy (dict, {}) - Reverse-proxy websites.

fixProxy (bool, true) - Replace all instances of the proxied URL with the requested URL.

thisURL (str) - A nice name for the website hosted by the server. Used for fixProxy.

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

phoenix-ws-2.0.7.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

phoenix_ws-2.0.7-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file phoenix-ws-2.0.7.tar.gz.

File metadata

  • Download URL: phoenix-ws-2.0.7.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.2

File hashes

Hashes for phoenix-ws-2.0.7.tar.gz
Algorithm Hash digest
SHA256 8e9d57a72753661f3b7d225fc2e9fb7640aceb83d79fd6c9cc4ecda756eafc98
MD5 9c2e0aee1ea7eee43e9bd9d3e5e57c10
BLAKE2b-256 6aa8149a471c41f937c16bd293fb10415ebc724c44baf2f311532d94f957dcb7

See more details on using hashes here.

File details

Details for the file phoenix_ws-2.0.7-py3-none-any.whl.

File metadata

  • Download URL: phoenix_ws-2.0.7-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.2

File hashes

Hashes for phoenix_ws-2.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d29dfef48b188d4a117bfab8a15130cee6150c6cd3756b467f83c6456129a42e
MD5 0f91eda15c6feb1fef7bcbb0c702cee8
BLAKE2b-256 b5d713e6c8f04fe47b83efe3f6cc19999c498f23fb773ce21627a13e2a70c56b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page