{ "info": { "author": "Manuel Ochoa", "author_email": "dev@manuelochoa.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7" ], "description": "# la-businesses\n\n## Description\nThis script downloads and processes the listing of all active businesses \ncurrently registered with the City of Los Angeles Office of Finance. \nAn 'active' business is defined as a registered business whose owner has not \nnotified the Office of Finance of a cease of business operations. \nUpdate Interval: Monthly.\n\nData source: https://data.lacity.org/A-Prosperous-City/Listing-of-Active-Businesses/6rrh-rzua\n\nThis script fetches the data and saves it locally as a CSV file. It also selects\na subset of businesses with operation starting date within the last NDAYS days\n(default 30) and saves this as a separate CSV file. Finally, it creates and \nsaves a KML file from the subset, useful for importing into Google Maps or\nsimilar software to visualize the distribution of recent businesses opened in\nthe Los Angeles area. \n\n\n## Installation\nInstall with pip. The package installs as a command-line script. \n```\npip install la-businesses\n```\n\n## Usage\nRun from the command line (it installs as as script). All downloaded and \ngenerated files will be stored in a directory `files` inside the current \nworking directory.\n```\nusage: la-businesses [-h] [-u] [-d NDAYS]\n\noptional arguments:\n -h, --help show this help message and exit\n -u, --update update data (default: False)\n -d NDAYS, --days NDAYS started since NDAYS days ago (default: 30)\n```\n \n## Known issues\n#### Locations with missing coordinates are omitted from KML file\nThe script relies on coordinate data already provided in the downloaded dataset. \nSome businesses contain addresses but no coordinates; in these cases, the \nbusiness is ignored when creating the KML (but is included in any saved CSV \nfile). Future implementations should include a function to look up location\ncoordinates from a given address (e.g., using the Open Street Maps API). \n\n#### Locations with no DBA name simply show NaN in the KML file\nThe script could use better handling of business name / DBA combinations to \nomit NaN from KML when it does not have a business name. \n\n#### No phone numbers\nThe data does not include any phone or email contact information; merging this\ndataset with one that includes contact information would be more useful for \nmarket research. \n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT", "maintainer": "Manuel Ochoa", "maintainer_email": "dev@manuelochoa.com", "name": "la-businesses", "package_url": "https://pypi.org/project/la-businesses/", "platform": "", "project_url": "https://pypi.org/project/la-businesses/", "project_urls": null, "release_url": "https://pypi.org/project/la-businesses/0.1.1/", "requires_dist": [ "requests (>=2.21,<3.0)", "pandas (>=0.24.2,<0.25.0)", "simplekml (>=1.3,<2.0)", "pytz (>=2018.9,<2019.0)" ], "requires_python": ">=3.7,<4.0", "summary": "Save the latest database of businesses in Los Angeles as CSV and KML.", "version": "0.1.1" }, "last_serial": 5121550, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d333fc7432851870eb5b05c6884d5fd3", "sha256": "7dc7a49dcb319bb26045143b711b331199ae922ad19e34d144980dc0c070437a" }, "downloads": -1, "filename": "la_businesses-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d333fc7432851870eb5b05c6884d5fd3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7,<4.0", "size": 13234, "upload_time": "2019-04-10T00:49:50", "url": "https://files.pythonhosted.org/packages/ec/4e/d12f37bf1228dd4d4f9b6ae63fd82b0dbb76028502076073700e7c417695/la_businesses-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63f746d60ee831e88c119d6e231c0e82", "sha256": "fc5945da9c495f06499926459189404c1a60a56ecc0290bcb59a014783d7aad1" }, "downloads": -1, "filename": "la-businesses-0.1.0.tar.gz", "has_sig": false, "md5_digest": "63f746d60ee831e88c119d6e231c0e82", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7,<4.0", "size": 7041, "upload_time": "2019-04-10T00:49:48", "url": "https://files.pythonhosted.org/packages/4f/cf/eab2022760000d783888867636d124b4680ba8fa4ea4e66baa12737fd86d/la-businesses-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "cba0b2eb5dc619fe8aec5966af4dc7ae", "sha256": "06ee44a887d1e944ed82ddfd6fcf4ccbdaa0a132242046b64557766513e161fb" }, "downloads": -1, "filename": "la_businesses-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "cba0b2eb5dc619fe8aec5966af4dc7ae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7,<4.0", "size": 14377, "upload_time": "2019-04-10T00:59:12", "url": "https://files.pythonhosted.org/packages/15/eb/09611ebddd9833d0e483cae093544b9ffde82e058e7d3e6930b31b8be341/la_businesses-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2c41fea893f81036a160ac7b8d9a97a7", "sha256": "5624a89caa4c0a3ce8d908c21f780858d5ab77578aba39f08004a96b597e6041" }, "downloads": -1, "filename": "la-businesses-0.1.1.tar.gz", "has_sig": false, "md5_digest": "2c41fea893f81036a160ac7b8d9a97a7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7,<4.0", "size": 7439, "upload_time": "2019-04-10T00:59:11", "url": "https://files.pythonhosted.org/packages/7e/d2/4755091e0b27fbe83b77572e0a3ca273c8c5c272aecef8bfc6c9eaee8b65/la-businesses-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cba0b2eb5dc619fe8aec5966af4dc7ae", "sha256": "06ee44a887d1e944ed82ddfd6fcf4ccbdaa0a132242046b64557766513e161fb" }, "downloads": -1, "filename": "la_businesses-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "cba0b2eb5dc619fe8aec5966af4dc7ae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7,<4.0", "size": 14377, "upload_time": "2019-04-10T00:59:12", "url": "https://files.pythonhosted.org/packages/15/eb/09611ebddd9833d0e483cae093544b9ffde82e058e7d3e6930b31b8be341/la_businesses-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2c41fea893f81036a160ac7b8d9a97a7", "sha256": "5624a89caa4c0a3ce8d908c21f780858d5ab77578aba39f08004a96b597e6041" }, "downloads": -1, "filename": "la-businesses-0.1.1.tar.gz", "has_sig": false, "md5_digest": "2c41fea893f81036a160ac7b8d9a97a7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7,<4.0", "size": 7439, "upload_time": "2019-04-10T00:59:11", "url": "https://files.pythonhosted.org/packages/7e/d2/4755091e0b27fbe83b77572e0a3ca273c8c5c272aecef8bfc6c9eaee8b65/la-businesses-0.1.1.tar.gz" } ] }