Metadata-Version: 2.1
Name: index.py
Version: 0.0.4
Summary: Oldschool Web Development for Humans™
Home-page: https://github.com/abersheeran/index.py
Author: Aber Sheeran
Author-email: abersheeran@qq.com
License: Apache 2.0
Description: 
        # index.py
        
        Although I've never used PHP, I like its hot-swap mechanism. I expect to use index.py to make Python's Web program deployment easier.
        
        ## Install
        
        ```
        pip install -U index.py
        ```
        
        Or get the latest version on Github
        
        ```
        git clone https://github.com/abersheeran/index.py
        sudo python3 setup.py install
        ```
        
        ## How to use
        
        Execute the command `index` under the path where you place your Web program.
        
        ## Configuration
        
        ### Environment variables
        
        At startup, index automatically reads the configuration from the environment variable that begins with `INDEX_`.
        
        like this
        
        ```
        INDEX_DEBUG=on
        INDEX_ENV=pro
        ```
        
        ### Config file
        
        At the root of your web program, the configuration in config.json will be read when index starts.
        
        example:
        
        ```json
        {
          "dev": {
            "debug": true,
          },
          "pro": {
            "debug": false,
            "port": 34567,
            "host": "0.0.0.0"
          }
        }
        ```
        
        ### List
        
        * ENV
        
          `ENV` is an important configuration that allows for the distinction between different configuration environments.
        
        * LOG_LEVEL
        
          `log_level` has five values, the corresponding table to the `logging` is as follows
        
          log_level   |loggins
          ---         |---
          "critical"  | logging.CRITICAL
          "error"     | logging.ERROR
          "warning"   | logging.WARNING
          "info"      | logging.INFO
          "debug"     | logging.DEBUG
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
