Skip to main content

WSGI server based on threads

Project description

Server_3_free_threads

the project appeared as a result of experiments on sockets.
This is a WSGI server based on threads



Important!

It is supported only on Linux 2.5.44 and later



the server uses four threads:

1.accepting_connections, to accept connections
2.reading_from_socket, to read data from a client socket
3.sending_to_socket, to send data to a socket
4.close_client_sock, to close client sockets



Note

It is recommended to use a python 3.13 or later
build from the source code, with the GIL disabled,
to improve performance



Quick start

log in to the root of your project

img img

activate the virtual environment

img

install the library with the command:

pip install Server_3_free_threads

log in before the package
where the module is located wsgi.py

img img

create a text configuration file for the server
with any name

The configuration file must contain the following required fields:

  • HOST - server host
  • PORT - server port
  • SOCKET_BACKLOG - this parameter in socket.listen(backlog)
    determines the size of the queue waiting for connection.
  • APP - the module where the wsgi application named application is located
  • DOMAIN - server domain

sample configuration file:

img

starting the server

now you can start the server with the command:

python -m Server_3_free_threads configfile=<path>

  • path - relative path to the configuration file

example:

img

done!

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

server_3_free_threads-0.2.19.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

server_3_free_threads-0.2.19-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file server_3_free_threads-0.2.19.tar.gz.

File metadata

  • Download URL: server_3_free_threads-0.2.19.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.12 Linux/5.15.146.1-microsoft-standard-WSL2

File hashes

Hashes for server_3_free_threads-0.2.19.tar.gz
Algorithm Hash digest
SHA256 1fd4e9e1cc35f827aa2f81cd8a3284d9526e3e18f0301522089849a6a9691523
MD5 d5adb1727d02fdb3a0d43237cc7929d8
BLAKE2b-256 5bf802f4b2e4b5cf52760f51f5306efd96f16c77f6adcabaeb8f0b9c45ea1dac

See more details on using hashes here.

File details

Details for the file server_3_free_threads-0.2.19-py3-none-any.whl.

File metadata

  • Download URL: server_3_free_threads-0.2.19-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.12 Linux/5.15.146.1-microsoft-standard-WSL2

File hashes

Hashes for server_3_free_threads-0.2.19-py3-none-any.whl
Algorithm Hash digest
SHA256 3d9673b656e9e52d7a0331be44a2472b3b17a28890fe12313ef195f9e751f48b
MD5 1d6196bd3ffcdd2d44670cd74811ae66
BLAKE2b-256 55eaa36f6943c7f495415f3f5e9d99fdd5570d3409b1550bb15ca5ae458f80cc

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