Skip to main content

Tiny Python3 based web server.

Project description

                           __    __     _     
 _ __  _   _ _ __  _   _  / / /\ \ \___| |__  
| '_ \| | | | '_ \| | | | \ \/  \/ / _ \ '_ \ 
| |_) | |_| | | | | |_| |  \  /\  /  __/ |_) |
| .__/ \__, |_| |_|\__, |   \/  \/ \___|_.__/ 
|_|    |___/       |___/

Tiny Python3 based web server.

Install

pip3 install pyny-web

Usage

import pyny_web

pyny_web.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyny-web-1.0.7.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

pyny_web-1.0.7-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pyny-web-1.0.7.tar.gz.

File metadata

  • Download URL: pyny-web-1.0.7.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

Hashes for pyny-web-1.0.7.tar.gz
Algorithm Hash digest
SHA256 1071c972e7e84d70458f05b8ae37249e99ba9c4f76150b3f510bd043796e520a
MD5 6c4b8a4165a669adc2f6e85dcd02046e
BLAKE2b-256 16bae455bb0bcbb0ef8a3a61cd65c0fbb87a091da7e3b6c3787954e26d413244

See more details on using hashes here.

File details

Details for the file pyny_web-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: pyny_web-1.0.7-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

Hashes for pyny_web-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cf8b55ee70ef57b265a713389fb9cddb990c82150022f14182374edc5890b177
MD5 12fd49eb1bdcf46c8b551ea261696d95
BLAKE2b-256 2e3b1080854cbb7dd07c1ce322c437fa1a9de34c9150ec88431cf254e56b0cdc

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