{ "info": { "author": "Xiangkui Li", "author_email": "1749498702@qq.com", "bugtrack_url": null, "classifiers": [], "description": "# eweb\n**eweb**(easy web) is a fast and simple micro-framework for small web applications. Its goal is to enable you to develop\nweb applications in a simple and understandable way. \n\nWith it, you don't need to know the HTTP protocol, or how Python communicates with JavaScript. \n\n## Usage\n\n### Step1\nCreate a file, such as `main.py`: \n```python\nfrom eweb import Server\n\n\ndef hello(name):\n return 'hello %s!' % name\n\n\nif __name__ == '__main__':\n server = Server(port=5000)\n server.services['hello'] = hello\n\n server.run()\n\n```\n\n### Step2\n 1. Create a folder named `static`\n 2. Create a HTML file in the `static` folder, such as `index.html`: \n ```html\n\n\n
\n \n