Tiny Python3 based web server.
Project description
__ __ _ _ __ _ _ _ __ _ _ / / /\ \ \___| |__ | '_ \| | | | '_ \| | | | \ \/ \/ / _ \ '_ \ | |_) | |_| | | | | |_| | \ /\ / __/ |_) | | .__/ \__, |_| |_|\__, | \/ \/ \___|_.__/ |_| |___/ |___/
Tiny Python3 based web server.
Install
pip3 install pyny-web
Usage
import pyny
pyny.run()
Move webcontent to webroot directory which is the html directory in your project by default.
The default port is 8080.
Config
After running for the first time a pyny.config will be generated.
Here you can set the port and webroot.
Per deafult the config looks like this
[pyny Web]
webroot = html
port = 8080
Source
Check here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyny-web-1.0.6.tar.gz.
File metadata
- Download URL: pyny-web-1.0.6.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e397dd65a05d41e154388fa472cf7f17d7c0f397b29f4c44e838f6072f9ca64e
|
|
| MD5 |
98d0b70783478568ad63ade8c16024b6
|
|
| BLAKE2b-256 |
4a317ac354bc807c9a0aa533cf1bda55eca988dd2d4d2beecd192d0017ff9238
|
File details
Details for the file pyny_web-1.0.6-py3-none-any.whl.
File metadata
- Download URL: pyny_web-1.0.6-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62e5c5c47d90077d9f386710a1dac0d0cd48498e09a3934ee2da71ed41593a4a
|
|
| MD5 |
3ddae1e6bf36155f86a9a7e4e753419e
|
|
| BLAKE2b-256 |
4dd4b91e0fcac793e55c0a8637ee8cb4a2e63c6f150cb3e0a64416bb2514bf4b
|