Skip to main content

Tiny Python3 based web server.

Reason this release was yanked:

False docs

Project description

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

Tiny Python3 based web server.

Install

pip3 install pyny

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


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.5.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.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyny-web-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 2930d4383be48a1005fd038ac302cb58685289ebbe4d092d361bc8d0f904e82d
MD5 8ec87d1ee1fc9e2c3660290c99a495ac
BLAKE2b-256 14d51f9a134918a71d4e804a0801b0f9f1f7b5c1114b3452e250c74e5329aac9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyny_web-1.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5f9c34198575020eeb102eb9303c17a054aa1e085f33d1518282bfd2c767f115
MD5 ab93faac93ece314835ed4095c457549
BLAKE2b-256 418d7db2cd138dec750e5551781254f6005b7d5a2648ac96db4eb11a66e509a7

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