{ "info": { "author": "Peter Stanko", "author_email": "peter.stanko0@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Utilities" ], "description": "# Pylunch\n\n``PyLunch`` was designed to scrape restaurants for it's daily menus and show them in multiple ways and formats.\n\n## Getting stated\n`PyLunch` is a scraper, to use it, you have to install it. It is available at [PyLunch](https://gitlab.com/pestanko/pylunch)\n\n### Install the released version\n\nYou can install the `PyLunch` using the `pip`:\n```bash\n$ pip install pylunch\n```\n\n\n### Install the development version from github\n- Python 3.7 or later\n- (Optional) [pipenv](https://github.com/pypa/pipenv)\n\nOr you can add it as a development dependency using the ``pipenv``\n\n```bash\n$ git clone https://github.com/pestanko/pylunch.git\n$ cd pylunch\n$ pipenv install # install the dependencies\n```\n\n### Install Tesseract for OCR support\nTo support extracting text from images you need to install [Tesseract](https://github.com/tesseract-ocr/tesseract/wiki).\nThen you need to download trained models for your language [Tesseract data files wiki](https://github.com/tesseract-ocr/tesseract/wiki/Data-Files) \n(English is supported by default).\n\nRecommended are the [best (most accurate) trained models](https://github.com/tesseract-ocr/tessdata_best).\nSave downloaded trained models to a dictionary with name `tessdata`. \nExpose environment variable `TESSDATA_PREFIX` with path to `tessdata` directory (i.e. `TESSDATA_PREFIX=/tmp/tessdata`).\n\nYou can specify different language when extracting data from the image for any restaurant with attribute `language: ` in `restaurants.yml` file. \n\n#### Dockerfile supported languages:\n\n| Language | Lang code |\n| ---------|:---:| \n| English | eng | \n| Czech | ces | \n| Slovak | slk | \n\n\n### First Run\nIn order to run the tool correctly you need to configure it.\n\nAt first run the tool will create config folder in the home directory with restaurants database, \nby default it will be empty.\n\nTo use the `zomato` resolver you need to add the `zomato_key` to your configuration.\nIn order to get the zomato key you need to go to the [Zomato Api documentation](https://developers.zomato.com/api)\n\n```bash\n$ pylunch cfg-set zomato_key \"\"\n```\n\nTo use the telegram integration, you need to set the telegram bot token property ``telegram_token``.\nTo get the telegram bot token please take a look [here](https://core.telegram.org/bots).\n\n```bash\n$ pylunch cfg-set telegram_token \"\"\n```\n\nAlso if you have already created or exported database of the restaurants, you an import it using the command `import`:\nExample file is located in: `resources/restaurants.yml` available [here](https://gitlab.com/pestanko/pylunch/raw/master/resources/restaurants.yml).\n\n```bash\n$ pylunch import restaurants.yml\n```\n\nIn order to export the restaurants database file, you can use the export command.\n```bash\n$ pylunch export -f exported.yml\n```\n\n## Run the cli tool\n\nHera is a help output with available commands.\n\n```bash\n# Show the help\n$ pylunch --help\n\nUsage: pylunch [OPTIONS] COMMAND [ARGS]...\n\n PyLunch CLI tool\n\nOptions:\n --version Show the version and exit.\n -L, --log-level TEXT Set log level (d|i|w|e) - default=w\n -C, --no-cache Disable cache\n -c, --config-dir TEXT Location to the configuration directory\n -F, --format TEXT Set output format\n --help Show this message and exit.\n\nCommands:\n add Adds a new restaurant\n cache-clear Clear a current cache for a day\n cache-content Show the current cache for a day\n cfg-edit Edit a configuration using the editor (Ex: VIM)\n cfg-set Set a config value in the user configuration\n config Shows the current configuration\n console Start the interactive console (IPython)\n disable Disables the restaurants\n edit Edits restaurants DB file\n enable Enables the restaurants\n export Export restaurants\n import Import restaurants\n info Get info for the restaurant\n ls List all available restaurants\n menu Get menu for a restaurant\n rm Removes the restaurant\n telegram-bot Start the telegram bot\n```\n\n### Runnig the server\n\nAs a server is used the Flask.\nTo run the flask server please take a look to the documnetation.\n\nIn order to start the pylunch server take a look at the `run_flask.ps1` or `run_flask.sh` scripts.\n\nFor access to the admin pages - in order to import restaurants or invalidate (refresh cache) you will need to set env variables:\n```\nPYLUNCH_SECRET=\nPYLUNCH_USERS=PATH_TO_USERS_FILE\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://gitlab.com/pestanko/pylunch", "keywords": "", "license": "Apache-2.0", "maintainer": "Peter Stanko", "maintainer_email": "peter.stanko0@gmail.com", "name": "pylunch", "package_url": "https://pypi.org/project/pylunch/", "platform": "", "project_url": "https://pypi.org/project/pylunch/", "project_urls": { "Documentation": "https://gitlab.com/pestanko/pylunch", "Homepage": "https://gitlab.com/pestanko/pylunch", "Repository": "https://gitlab.com/pestanko/pylunch" }, "release_url": "https://pypi.org/project/pylunch/0.2.4/", "requires_dist": [ "requests", "python-telegram-bot (>=12.0.0b1,<13.0.0)", "pyyaml", "html2text", "beautifulsoup4", "lxml", "fuzzywuzzy", "click", "python-levenshtein", "pyzomato", "pdfminer-six", "ipython", "flask", "flask-jwt-extended", "werkzeug", "aiohttp", "aiodns", "pytesseract", "pillow", "unidecode", "toml (>=0.10.0,<0.11.0)" ], "requires_python": ">=3.6,<4.0", "summary": "Pylunch cli and web tool to get lunch info", "version": "0.2.4" }, "last_serial": 5923119, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e5020194c0fcf788f05646785816362f", "sha256": "9f16db94bc1246f92fcb3f9e7c16128fd2a74a0561f4ae01b8ed0e91380e1288" }, "downloads": -1, "filename": "pylunch-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e5020194c0fcf788f05646785816362f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18178, "upload_time": "2019-08-15T10:36:58", "url": "https://files.pythonhosted.org/packages/bf/7d/9ec04764ee875b75a3b40621ddcf05945ccdf8dde10f2dc6cdb507db2d75/pylunch-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f28059d60f2db3ea4cb92e2609646dd0", "sha256": "616b9736e62c317fd7620165da61c4dd66b0286e7228981a68d7b2699c152a91" }, "downloads": -1, "filename": "pylunch-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f28059d60f2db3ea4cb92e2609646dd0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16620, "upload_time": "2019-08-15T10:37:01", "url": "https://files.pythonhosted.org/packages/8f/1c/09a83ae4b0b6700e30fd97d5029c2e640264f5019168ef6f10152f2a0824/pylunch-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "83384e70464ff391ffee4d2cb24913de", "sha256": "80b728825634f2be3c53bf94e2ba8d916588ece060103382b613396158d83882" }, "downloads": -1, "filename": "pylunch-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "83384e70464ff391ffee4d2cb24913de", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18176, "upload_time": "2019-08-15T10:49:48", "url": "https://files.pythonhosted.org/packages/51/c0/7493a401debe51f9199d6ea810b5c68c4fcb2a1e2971710eea2681769998/pylunch-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e7e4213213354e1f3d6f6b2c38399a99", "sha256": "867da13382adbca7fd92dd90124fe94ff0873f62bca73a4b7cc2fafc32cfceac" }, "downloads": -1, "filename": "pylunch-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e7e4213213354e1f3d6f6b2c38399a99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16598, "upload_time": "2019-08-15T10:49:51", "url": "https://files.pythonhosted.org/packages/e7/f9/7984120507e620ece8159b8e863480dbcabc68fb9736f27f6dd18a54829a/pylunch-0.1.1.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "76186efc3fff50eda70560252a7af7f5", "sha256": "269a6fee4e4bed3c25f35a16771bb3d826e091b347c79ef89e39381b95e50404" }, "downloads": -1, "filename": "pylunch-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "76186efc3fff50eda70560252a7af7f5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25094, "upload_time": "2019-09-20T12:31:39", "url": "https://files.pythonhosted.org/packages/c7/30/e45729885544a673d4cea3abdc7eef0cd46813a7de2e4433b99558f9ca84/pylunch-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8a05b4da3efcb3480fa37e448b380b7f", "sha256": "df4a392a725f7253af8bee78fbbe1d650e47ec0003aeee45a72d94e0b6e53ed5" }, "downloads": -1, "filename": "pylunch-0.1.3.tar.gz", "has_sig": false, "md5_digest": "8a05b4da3efcb3480fa37e448b380b7f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23716, "upload_time": "2019-09-20T12:31:43", "url": "https://files.pythonhosted.org/packages/3c/98/356de1521d2353e7e99f885a5e97a4d1303d81c1e103970e50b92076aebb/pylunch-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "27179e8309b8ffa564d87e2808d2f1fe", "sha256": "e221c359ba2786d795e5e946c55eb764bb4bea4f2d1ed40927c1d544374da2b2" }, "downloads": -1, "filename": "pylunch-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "27179e8309b8ffa564d87e2808d2f1fe", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25083, "upload_time": "2019-09-20T12:39:16", "url": "https://files.pythonhosted.org/packages/e1/4c/c6b8eaffc86388ed37442000a44c1aa3f3344d9a77b15781e6c8801345c5/pylunch-0.1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6355cdc1225ba4f1b84ce0de5fe92ae3", "sha256": "15fcb7e7994054b863383d0ac3746b7735fee7c0ed39269a1529a74afc8bbcf4" }, "downloads": -1, "filename": "pylunch-0.1.4.tar.gz", "has_sig": false, "md5_digest": "6355cdc1225ba4f1b84ce0de5fe92ae3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23713, "upload_time": "2019-09-20T12:39:20", "url": "https://files.pythonhosted.org/packages/c8/87/2177c8884dfe187ef644b7e10a29e4616583146e3e78caeb2835191c5cec/pylunch-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "20292bc6e5b84a3d0fc793f842d64abd", "sha256": "70b13f18320e362aea246bd53319691b45e663f016cdf708a931a395e64264f3" }, "downloads": -1, "filename": "pylunch-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "20292bc6e5b84a3d0fc793f842d64abd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25087, "upload_time": "2019-09-20T12:57:31", "url": "https://files.pythonhosted.org/packages/51/38/1fe6a74738c227d8162f7a8756f9162c1c9872ff3e3bf83d82b55b1206ed/pylunch-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5f99541438411b15218184ada3d708e", "sha256": "3843855b2cb8094f427c0bff84d6fb76f0b4315aa1229e402c2430c6484f6205" }, "downloads": -1, "filename": "pylunch-0.1.5.tar.gz", "has_sig": false, "md5_digest": "e5f99541438411b15218184ada3d708e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23715, "upload_time": "2019-09-20T12:57:37", "url": "https://files.pythonhosted.org/packages/fb/61/c794ef0f9d9d27f141f2a25a48e1bd21d1286553534215aad8c26ca887fc/pylunch-0.1.5.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d2d053e5cf54c640584e0d24f78f34bc", "sha256": "e93067b00671cbaaebf65629592704ee388da58be0b7bb1a93f9f33c83c92701" }, "downloads": -1, "filename": "pylunch-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d2d053e5cf54c640584e0d24f78f34bc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7,<4.0", "size": 37231, "upload_time": "2019-10-03T11:38:53", "url": "https://files.pythonhosted.org/packages/b0/94/cf53c8b6c8928973b5c1352a2bac613e7bd48b7f5e18f5ab23b995e259fa/pylunch-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba6b70fc2abf727e1b5241af84ccba4c", "sha256": "d26fab41e2a61d17b64f493eb7d2e5391e223fb5611f5e1065d5190d276a81d3" }, "downloads": -1, "filename": "pylunch-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ba6b70fc2abf727e1b5241af84ccba4c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7,<4.0", "size": 31666, "upload_time": "2019-10-03T11:38:55", "url": "https://files.pythonhosted.org/packages/bd/df/9040d3b0355a1e502bacdb91ae474600c133b04b883c5d7211614cf2212c/pylunch-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "d172d7d9a155814e1563f20419db9105", "sha256": "dc3867c9cbf1457cab37dd0a8c80be7cf1340354491ea4f45d8f10c846b15692" }, "downloads": -1, "filename": "pylunch-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d172d7d9a155814e1563f20419db9105", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 37237, "upload_time": "2019-10-03T11:55:32", "url": "https://files.pythonhosted.org/packages/5e/3f/993bebcafd78820bfff7b24bf7dc1f9a02d88abb8b151817d6e63de77a68/pylunch-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "56e7fcbc9b2c83fcffc5b98933516931", "sha256": "8795080103a8d380cb62892dbe7af8ed573d1cf276cc56a148d1130d355adb45" }, "downloads": -1, "filename": "pylunch-0.2.1.tar.gz", "has_sig": false, "md5_digest": "56e7fcbc9b2c83fcffc5b98933516931", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 31667, "upload_time": "2019-10-03T11:55:34", "url": "https://files.pythonhosted.org/packages/9b/25/2bc1b849d4d3e159bd5b3b422f3a2dc01dbb0f7a23bbbab9a6fe67d961a7/pylunch-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "b7cd3267d9be09c343951f993b6aeb21", "sha256": "6bfab115ab3f59df4cb088beb6e410a3cfddddc31404dd7e42f74074f414118e" }, "downloads": -1, "filename": "pylunch-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "b7cd3267d9be09c343951f993b6aeb21", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 37296, "upload_time": "2019-10-03T12:04:35", "url": "https://files.pythonhosted.org/packages/de/0d/c694ad88f5b5b452cd68bbfc0b4afca3bfe5fa5e513e5c6657933237514e/pylunch-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05d5b2d5233f6353297772317f6720a1", "sha256": "55a6daabef79910efe997e5e1bf78d1e5627cc0a614f5ab1a3a80272862b75df" }, "downloads": -1, "filename": "pylunch-0.2.2.tar.gz", "has_sig": false, "md5_digest": "05d5b2d5233f6353297772317f6720a1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 31705, "upload_time": "2019-10-03T12:04:37", "url": "https://files.pythonhosted.org/packages/91/1d/97b8c61f7e22c43379a3c658ac0855a652383c051221e8a3352917ccf818/pylunch-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "6d59718702c648b96ea22e745f4c0b4c", "sha256": "8a7d5535d4b7df59d342ac3773f80be410e18901c9bccc00d79094d17af92d1f" }, "downloads": -1, "filename": "pylunch-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "6d59718702c648b96ea22e745f4c0b4c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 37303, "upload_time": "2019-10-03T12:06:54", "url": "https://files.pythonhosted.org/packages/fd/d3/bb0f0fceea28b0641b5571df977002a7fcd1d4713405468a44ae7bfe7982/pylunch-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "be9310634f5ba0bff8c00f09985fde35", "sha256": "8018d9e26d00991527fa79d9f3c660f2e942a884799f71d344c65259a0fc726e" }, "downloads": -1, "filename": "pylunch-0.2.3.tar.gz", "has_sig": false, "md5_digest": "be9310634f5ba0bff8c00f09985fde35", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 31713, "upload_time": "2019-10-03T12:06:56", "url": "https://files.pythonhosted.org/packages/be/08/801dc7b2392a8322d16080464b43290015ac9baa46b2be782e53f00cb077/pylunch-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "4f8673064f47714000ff6d7faf85f9e5", "sha256": "d8d2b9ce14a33f23a8d2b19a6c5c2f8f481373ed4b161b3d9084e08257f0504b" }, "downloads": -1, "filename": "pylunch-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "4f8673064f47714000ff6d7faf85f9e5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 37304, "upload_time": "2019-10-03T12:08:38", "url": "https://files.pythonhosted.org/packages/a7/b6/afaa820648d94a6aee007915e089def0fc8ac6a4cfa2baae2c812e44382b/pylunch-0.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d819a05446b9c27f3ddceb8abdab110f", "sha256": "8cd78d8cbb0216b056937d8f77f6d9a81565f6ffa847826dc169e7f15bbaca5d" }, "downloads": -1, "filename": "pylunch-0.2.4.tar.gz", "has_sig": false, "md5_digest": "d819a05446b9c27f3ddceb8abdab110f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 31717, "upload_time": "2019-10-03T12:08:40", "url": "https://files.pythonhosted.org/packages/70/14/89fcc44380c2e2cecf0812ce6a145c76ad72009b294ecfc069950f3457e1/pylunch-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4f8673064f47714000ff6d7faf85f9e5", "sha256": "d8d2b9ce14a33f23a8d2b19a6c5c2f8f481373ed4b161b3d9084e08257f0504b" }, "downloads": -1, "filename": "pylunch-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "4f8673064f47714000ff6d7faf85f9e5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 37304, "upload_time": "2019-10-03T12:08:38", "url": "https://files.pythonhosted.org/packages/a7/b6/afaa820648d94a6aee007915e089def0fc8ac6a4cfa2baae2c812e44382b/pylunch-0.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d819a05446b9c27f3ddceb8abdab110f", "sha256": "8cd78d8cbb0216b056937d8f77f6d9a81565f6ffa847826dc169e7f15bbaca5d" }, "downloads": -1, "filename": "pylunch-0.2.4.tar.gz", "has_sig": false, "md5_digest": "d819a05446b9c27f3ddceb8abdab110f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 31717, "upload_time": "2019-10-03T12:08:40", "url": "https://files.pythonhosted.org/packages/70/14/89fcc44380c2e2cecf0812ce6a145c76ad72009b294ecfc069950f3457e1/pylunch-0.2.4.tar.gz" } ] }