{ "info": { "author": "Youwang Deng", "author_email": "dengyouwang@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation", "Topic :: Software Development :: Libraries" ], "description": "# Aureus\n\nAureus is a lightweight web application framework. It supports\nModel-View-Controller (MVC) architectural pattern. It is designed to\nmake getting started quick and easy, with the ability to scale up to\ncomplex applications.\n\n## Installing\n\nInstall and update using\n[pip](https://pip.pypa.io/en/stable/quickstart/):\n\n```bash\npip install -U aureus\n```\n\n## A Simple Example\n\n```Python\nfrom aureus import AUREUS\n\napp = AUREUS()\n\n@app.route('/', methods=['GET'])\ndef hello():\n return '

Hello Aureus!

'\n\napp.run()\n```\n\n```bash\n$ python3 main.py\n * Running on http://127.0.0.1:8080/ (Press CTRL+C to quit)\n```\n\n## A MVC pattern Example\n\n```Python\nfrom aureus import AUREUS\nfrom aureus.view import View, Controller\n\n\nclass BaseView(View):\n\n methods = ['GET, POST']\n\n def post(self, request, *args, **options):\n pass\n\n def get(self, request, *args, **options):\n pass\n\n def dispatch_request(self, request, *args, **options):\n\n methods_meta = {\n 'GET': self.get,\n 'POST': self.post,\n }\n\n if request.method in methods_meta:\n return methods_meta[request.method](request, *args, **options)\n else:\n return '

Unknown or unsupported require method

'\n\nclass Hello(BaseView):\n def get(self, request):\n return '

Hello, Aureus!

'\n\n\napp = AUREUS()\n\naureus_url_map = [\n {\n 'url': '/',\n 'view': Hello,\n 'endpoint': 'hello'\n },\n]\n\nhello_controller = Controller('hello', aureus_url_map)\napp.load_controller(hello_controller)\n\napp.run()\n```\n\n```bash\n$ python3 main.py\n * Running on http://127.0.0.1:8080/ (Press CTRL+C to quit)\n```\n\n## Links\n\n- License:\n [BSD](https://github.com/YouwangDeng/Aureus/blob/master/LICENCE)\n- Releases: \n- Code: \n- Issue tracker: \n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/YouwangDeng/aureus", "keywords": "", "license": "BSD License", "maintainer": "Youwang Deng", "maintainer_email": "dengyouwang@gmail.com", "name": "aureus", "package_url": "https://pypi.org/project/aureus/", "platform": "all", "project_url": "https://pypi.org/project/aureus/", "project_urls": { "Homepage": "https://github.com/YouwangDeng/aureus" }, "release_url": "https://pypi.org/project/aureus/0.0.3/", "requires_dist": [ "Werkzeug (>=0.14.1)", "PyMySQL (>=0.9.2)" ], "requires_python": "", "summary": "a simple python web framework", "version": "0.0.3" }, "last_serial": 4306594, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "5d6d69badc5ef474c333600963b137a6", "sha256": "33ec2c30fd717cc2cb530d65ebfa57daef1e4d9ec7772651ef04d3598a62fff2" }, "downloads": -1, "filename": "aureus-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "5d6d69badc5ef474c333600963b137a6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14697, "upload_time": "2018-09-24T22:58:51", "url": "https://files.pythonhosted.org/packages/f9/62/51f1d29ab26062494a71023d414cd15ece6fd06459a88988a8c4b261aab8/aureus-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "341b1b6727526c1e5f969db29f9e1040", "sha256": "a3b2e6744a548d22cb4e12b65923b80eaaeef5ba8694f9437a04ad49662234be" }, "downloads": -1, "filename": "aureus-0.0.2.tar.gz", "has_sig": false, "md5_digest": "341b1b6727526c1e5f969db29f9e1040", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11445, "upload_time": "2018-09-24T22:58:52", "url": "https://files.pythonhosted.org/packages/6e/27/352bad1e455e44816a01b78527e0fd74c8deb85b9f58be23f80aac4571c1/aureus-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "9015a33fb77edb98412b4da7760d988a", "sha256": "b6f553c1e869689463942df3c004216f0db25a6c49962e705310b7f7767ee8d6" }, "downloads": -1, "filename": "aureus-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "9015a33fb77edb98412b4da7760d988a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14848, "upload_time": "2018-09-24T23:13:00", "url": "https://files.pythonhosted.org/packages/ac/76/c94004a44948ec42457a2487337a6734693a9376eee51df25e7e7706fb2b/aureus-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06e079b8686f5c08c05497daf35dcbec", "sha256": "4f449d06db46b1611e37abc36763bfc81a729f766ef952ed72a3f624a140faa2" }, "downloads": -1, "filename": "aureus-0.0.3.tar.gz", "has_sig": false, "md5_digest": "06e079b8686f5c08c05497daf35dcbec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11655, "upload_time": "2018-09-24T23:13:02", "url": "https://files.pythonhosted.org/packages/cf/0b/3ae8ae929a121697b3e8b5cc330e74a1adb35c7920ed13954d7be19675b0/aureus-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9015a33fb77edb98412b4da7760d988a", "sha256": "b6f553c1e869689463942df3c004216f0db25a6c49962e705310b7f7767ee8d6" }, "downloads": -1, "filename": "aureus-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "9015a33fb77edb98412b4da7760d988a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14848, "upload_time": "2018-09-24T23:13:00", "url": "https://files.pythonhosted.org/packages/ac/76/c94004a44948ec42457a2487337a6734693a9376eee51df25e7e7706fb2b/aureus-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06e079b8686f5c08c05497daf35dcbec", "sha256": "4f449d06db46b1611e37abc36763bfc81a729f766ef952ed72a3f624a140faa2" }, "downloads": -1, "filename": "aureus-0.0.3.tar.gz", "has_sig": false, "md5_digest": "06e079b8686f5c08c05497daf35dcbec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11655, "upload_time": "2018-09-24T23:13:02", "url": "https://files.pythonhosted.org/packages/cf/0b/3ae8ae929a121697b3e8b5cc330e74a1adb35c7920ed13954d7be19675b0/aureus-0.0.3.tar.gz" } ] }