{ "info": { "author": "clintval", "author_email": "valentine.clint@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "

sample-sheet

\n\n

A Python 3.6 library for discovering Seattle Food Truck schedules

\n\n

\n Installation\n \u00b7\n Tutorial\n \u00b7\n Command Line Utility\n \u00b7\n Contributing\n

\n\n

\n \"PyPI\n \n \n

\n\n
\n\n

Installation

\n\n```bash\n\u276f pip install seattle-food-truck\n```\n\n
\n\n

Tutorial

\n\nThe `Client` allows you to discover convenient or nearby locations where food trucks are scheduled to visit! After finding a suitable `Location` we can query it for a schedule of trucks.\n\n```python\nfrom seattle_food_truck import Client\n\nsft = Client()\n```\n\nYou can discover locations through listing them all. All locations are memoized once they are discovered to speedup all future queries.\n\n```python\nprint(f'There are {len(sft.locations)} locations.\\n')\nprint(sft.locations)\n```\n\n```\nThere are 300 locations.\n\n[\n Location(name=\"10109 Lakewood Towne Center Boulevard Southwest, Lakewood, WA, USA\", address=\"10109 Lakewood Towne Center Boulevard Southwest, Lakewood, WA, USA\", uid=377),\n Location(name=\"110 9th Avenue So\n uthwest, Puyallup, WA, USA\", address=\"110 9th Avenue Southwest, Puyallup, WA, USA\", uid=375),\n Location(name=\"11211 Main Street, Bellevue, WA, USA\", address=\"11211 Main Street, Bellevue, WA, USA\", uid=368),\n Location(name=\"1201 Main Street, Sumner, WA, USA\", address=\"1201 Main Street, Sumner, WA, USA\", uid=382),\n Location(name=\"1208 10th St, Snohomish, WA, USA\", address=\"1208 10th St, Snohomish, WA, USA\", uid=390),\n Location(name=\"1208 10th Street, Snohomish, WA, USA\", address=\"1208 10th Street, Snohomish, WA, USA\", uid=397),\n ...\n]\n```\n\nIt would be easier if we could sort the list of locations by their proximity to my home or job site! The `Client` provides two functions for this purpose.\n\nThe first discovers all locations ranked by their direct distance away.\n\n```python\nwork_address = '3131 Elliot Ave. Seattle WA'\n\nfor distance, location in sft.locations_closest_to(work_address):\n print(f'{distance:0.2f} miles away: {location.name}\\n\\t{location.address}')\n```\n\n```\n0.11 miles away: PI Building\n 101 Elliott Ave W, Seattle, WA, United States\n0.27 miles away: Olympic Sculpture Park\n 2901 Western Avenue, Seattle, WA, United States\n0.43 miles away: F5 Networks\n 401 Elliott Ave W, Seattle, WA 98119, United States\n0.66 miles away: Memorial Stadium\n 401 5th Avenue North, Seattle, WA, United States\n...\n```\n\nThe second simply returns the location nearest to me.\n\n```python\nlocation = sft.nearest_location_to(work_address)\n\nfor truck in location.trucks_today():\n print(truck)\n```\n\n```\nTruck(\"NOSH\", style=\"Seafood\")\nTruck(\"Raney Brothers BBQ\", style=\"BBQ\")\n```\n\n
\n\n

Command Line Utility

\n\nA primitive CLI tool is installed with this library.\n\n```bash\n$ sft\nUsage: sft [OPTIONS] COMMAND [ARGS]...\n\n Tool to get you the food trucks scheduled near you in Seattle.\n\nOptions:\n --help Show this message and exit.\n\nCommands:\n locations Print the locations with food truck bookings.\n trucks_today Print the truck bookings today.\n trucks_tomorrow Print the truck bookings tomorrow\n```\n\n```bash\n\u276f sft trucks_tomorrow --location-uid 69\nTruck(\"Sam Choy's Poke To The Max\", style=\"Hawaiian\")\nTruck(\"Bumbu Truck\", style=\"Asian\")\n```\n\n
\n\n

Contributing

\n\nPull requests, feature requests, and issues welcome!\n\n> This library uses the undocumented API at www.seattlefoodtruck.com\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/clintval/seattle-food-truck/archive/v0.1.3.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/clintval/seattle-food-truck", "keywords": "seattle food truck", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "seattle-food-truck", "package_url": "https://pypi.org/project/seattle-food-truck/", "platform": "", "project_url": "https://pypi.org/project/seattle-food-truck/", "project_urls": { "Download": "https://github.com/clintval/seattle-food-truck/archive/v0.1.3.tar.gz", "Homepage": "https://github.com/clintval/seattle-food-truck" }, "release_url": "https://pypi.org/project/seattle-food-truck/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Python client for the glorious food trucks in Seattle", "version": "0.1.3" }, "last_serial": 3950823, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "73b80cd460f89992596d20a5b9e1ce8f", "sha256": "95b0c3c0c06eb9f8fd33bdb12e03f3fe20bcb5c9ab455d4cea96f2852573e8b5" }, "downloads": -1, "filename": "seattle_food_truck-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "73b80cd460f89992596d20a5b9e1ce8f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6098, "upload_time": "2017-11-26T22:18:36", "url": "https://files.pythonhosted.org/packages/b0/af/0cb666fe3d9ef480a065a0040c9a215768a2e4daecc24a652166775cc37b/seattle_food_truck-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "76b5178ea21eb1a703fba4ed4363a339", "sha256": "cdd8987ed136c47b9903ef523f840fb6d7fb241ce20d892c93e2208a605d5f5f" }, "downloads": -1, "filename": "seattle_food_truck-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "76b5178ea21eb1a703fba4ed4363a339", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6095, "upload_time": "2017-11-26T22:18:37", "url": "https://files.pythonhosted.org/packages/b3/46/3b0f5f434b677f17bcffe173c07c861339b145a33650d53f048677228d26/seattle_food_truck-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f83ed55ca9fdcde1c76c1058ce6ed493", "sha256": "5ab69588a7cd601b4fe6d6855a09cf1da57a1469d19bb3aa034d1d337907618c" }, "downloads": -1, "filename": "seattle_food_truck-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f83ed55ca9fdcde1c76c1058ce6ed493", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5017, "upload_time": "2017-11-26T22:18:40", "url": "https://files.pythonhosted.org/packages/ca/de/c87c82457dcc30ac05a970b6152c84d2f385d4c08bf33f95c0e539c77fe2/seattle_food_truck-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1c27d3f85c0e4f258396aa5dc5bbb1bb", "sha256": "e78e1d3690df5d8f3092256a759fa874402a2d859790dbdd36ff00ee90f86e24" }, "downloads": -1, "filename": "seattle_food_truck-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1c27d3f85c0e4f258396aa5dc5bbb1bb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6107, "upload_time": "2017-11-26T22:25:02", "url": "https://files.pythonhosted.org/packages/aa/48/f5761156ae87f96d63b0ec4ef69c6c6c307ed391f52dc755ca7c241d2e90/seattle_food_truck-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "28d175a768ddf0b27301f5a4e32e31bc", "sha256": "7532a81c70a25d80f131c9b4496e9e4ee5b806cfa5f437fc8428ff2cafbab06f" }, "downloads": -1, "filename": "seattle_food_truck-0.1.1.tar.gz", "has_sig": false, "md5_digest": "28d175a768ddf0b27301f5a4e32e31bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5004, "upload_time": "2017-11-26T22:25:05", "url": "https://files.pythonhosted.org/packages/1a/d4/e271e8c818e87795261ad6444cb9f8f653f1961b87894617dcd02cbd90f9/seattle_food_truck-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "775a0a9389ef1d749b1520e5a02d72ea", "sha256": "111f195da7244e6527a7e427c19152d45c01c6fc9905d8d3dd6c1244bd766534" }, "downloads": -1, "filename": "seattle_food_truck-0.1.2.tar.gz", "has_sig": false, "md5_digest": "775a0a9389ef1d749b1520e5a02d72ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6774, "upload_time": "2018-06-10T21:26:06", "url": "https://files.pythonhosted.org/packages/cf/c7/0e2e8560877ac1393188fbb6f9dfa4459de59a1dda6891584972c2dd8a8d/seattle_food_truck-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "5b944bcc16e9357c06901bf1cae5a5a4", "sha256": "70407e6c2a13ed56c4f1eca5b7055b5e2df81bb58458d65c04a6f4e692b27718" }, "downloads": -1, "filename": "seattle_food_truck-0.1.3.tar.gz", "has_sig": false, "md5_digest": "5b944bcc16e9357c06901bf1cae5a5a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6782, "upload_time": "2018-06-11T16:00:45", "url": "https://files.pythonhosted.org/packages/c7/c7/9f404dd5d008aaaa8d6af06b927ec3a6f6818e70cc62f6037a1bd4524d78/seattle_food_truck-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5b944bcc16e9357c06901bf1cae5a5a4", "sha256": "70407e6c2a13ed56c4f1eca5b7055b5e2df81bb58458d65c04a6f4e692b27718" }, "downloads": -1, "filename": "seattle_food_truck-0.1.3.tar.gz", "has_sig": false, "md5_digest": "5b944bcc16e9357c06901bf1cae5a5a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6782, "upload_time": "2018-06-11T16:00:45", "url": "https://files.pythonhosted.org/packages/c7/c7/9f404dd5d008aaaa8d6af06b927ec3a6f6818e70cc62f6037a1bd4524d78/seattle_food_truck-0.1.3.tar.gz" } ] }