Xost
Xost is a small embedded server which simplifies hosting of django applications.
Requirements
twisted
Usage
- Installing the application:
pip install xost
add xost to your INSTALLED_APPS:
INSTALLED_APPS = (
....,
‘xost’
)
Xost is configured via the XOST key in settings.py:
XOST= {
‘key’: ‘value’
}
possible configuration keys are listed below (default values are provided after = sign):
address: None - string configuration listen addresses port = 8080 - a port number on which to listen min_threads = 5 - minimum number of threads in the pool max_threads = 20 - maximum number of threads in the pool root = ‘launch_folder’ - path to working (root) folder static_root = ‘launch_folder/static/’ - path to static file folder media_root = ‘launch_folder/media/ - path to media file folder log_path = ‘launch_folder/log/’ -path to log folder collect_static = True - do not collect static files to static root folder before launch debug = False - if set to true, prints debug information
startup:
python manage.py serve
by default server starts on port 8080
in order to get full list of configuration keys, run
python manage.py serve --help
Metadata
Release files for xost 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| xost-0.0.2.tar.gz | 5.8 kB | Without provenance | Details |
Release files / xost-0.0.2.tar.gz
| Download URL | xost-0.0.2.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67907a0fac46cdeb6e207128491563c337b2a73135528c6183256e7d5a8414af
|
|
BLAKE2b-256 checksum How to use checksums |
bb161ddc0dc0d72b08924014e91f763e27ba01c48c3f3f86fa311ce4fd050f98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for xost 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.