{ "info": { "author": "Benjamin Costa", "author_email": "benjamin.costa.75@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# [Python Sample App](https://github.com/becosta/python-sample-app)\n\n[Python Sample App](https://github.com/becosta/python-sample-app) is a starter template for new python applications.\nYou can clone it, edit some basic stuff and get started on your new app.\n\n## Application layout\n\nYour new application layout is as following:\n```\npython-sample-app\n\u251c\u2500\u2500 apidoc/\n| \u2514\u2500\u2500 .gitkeep\n\u251c\u2500\u2500 doc/\n| \u2514\u2500\u2500 .gitkeep\n\u251c\u2500\u2500 python_sample_app/\n| \u251c\u2500\u2500 test/\n| | \u2514\u2500\u2500 __init__.py\n| \u251c\u2500\u2500 __init__.py\n| \u2514\u2500\u2500 main.py\n\u251c\u2500\u2500 scripts/\n| \u2514\u2500\u2500 .gitkeep\n\u251c\u2500\u2500 .gitignore\n\u251c\u2500\u2500 LICENSE.md\n\u251c\u2500\u2500 README.md\n\u2514\u2500\u2500 setup.py\n```\n\n## Editing to match your project needs\n\nFirst clone or download this repository:\n```sh\n$ git clone https://github.com/becosta/python-sample-app.git\n```\n\nFirst thing to do is to rename the project directory (python-sample-app) to your project's name.\n```sh\n$ mv python-sample-app ${your_project_name} && cd ${your_project_name}\n```\n\n\nThen you can move on to renaming the main package directory (python_sample_app).\n```sh\n$ mv python_sample_app ${your_main_package_name}\n```\n\nAfter this you need to edit setup.py: ```$ editor setup.py```\n```python\nname='',\nversion='',\ndescription='',\nauthor='',\nauthor_email='',\nlicense=\"\",\nurl=\"\",\npackages=[''],\nentry_points={\n 'console_scripts': [\n '=.main:main',\n ],\n},\n```\nNote that `````` is the name of the entry script that will be generated by ```$ pip install -e .```. In other words this is the name of the command you'll use to call your application from the console later on. Also, note that you can have more than one entry point [see the setuptools documentation](https://setuptools.readthedocs.io/en/latest/setuptools.html#dynamic-discovery-of-services-and-plugins) for more information.\n\nOnce done, edit ```LICENSE.md```, ```README.md``` and ```.gitignore``` according to your needs. If you don't need any of the ```apidoc```, ```doc``` and ```scripts``` directories you should remove them now.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/becosta/python-sample-app", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-sample-app", "package_url": "https://pypi.org/project/python-sample-app/", "platform": "", "project_url": "https://pypi.org/project/python-sample-app/", "project_urls": { "Homepage": "https://github.com/becosta/python-sample-app" }, "release_url": "https://pypi.org/project/python-sample-app/1.0/", "requires_dist": null, "requires_python": "", "summary": "", "version": "1.0" }, "last_serial": 3098372, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "cd3599395b292ec585a9e62d5fdfb026", "sha256": "d09c281d6e88c678b0caa37619356013fecafadfacd263906dd143ae407797ff" }, "downloads": -1, "filename": "python-sample-app-1.0-post1.tar.gz", "has_sig": false, "md5_digest": "cd3599395b292ec585a9e62d5fdfb026", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2001, "upload_time": "2017-08-15T15:07:25", "url": "https://files.pythonhosted.org/packages/84/a9/b1ca0f3a64c3ec88e4e090e1db92aaee3b2f1581fcb1c441ffdc8459185d/python-sample-app-1.0-post1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cd3599395b292ec585a9e62d5fdfb026", "sha256": "d09c281d6e88c678b0caa37619356013fecafadfacd263906dd143ae407797ff" }, "downloads": -1, "filename": "python-sample-app-1.0-post1.tar.gz", "has_sig": false, "md5_digest": "cd3599395b292ec585a9e62d5fdfb026", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2001, "upload_time": "2017-08-15T15:07:25", "url": "https://files.pythonhosted.org/packages/84/a9/b1ca0f3a64c3ec88e4e090e1db92aaee3b2f1581fcb1c441ffdc8459185d/python-sample-app-1.0-post1.tar.gz" } ] }