{ "info": { "author": "Micah Denbraver", "author_email": "macromicah@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: ISC License (ISCL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3" ], "description": "# usps-client\n\n[![CircleCI](https://img.shields.io/circleci/project/github/macro1/usps-client.svg)](https://circleci.com/gh/macro1/usps-client)\n[![Known Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/github/macro1/usps-client.svg)](https://snyk.io/test/github/macro1/usps-client?targetFile=requirements.txt)\n\nPython client for the USPS Web Tools API.\n\n## Usage\n\nImport the client, instantiate with your user id (register at https://registration.shippingapis.com/)\nand call the standardize method:\n```python\n>>> import usps_client\n>>> usps = usps_client.Client('[your user id]')\n>>> standardized = usps.standardize_address(\n... firm_name=\"USPS Office of the Consumer Advocate\",\n... address1=\"475 LENFANT PLZ SW RM 4012\",\n... city=\"Washington\",\n... state=\"DC\",\n... zip5=\"20260\",\n... )\n```\nAn Address object will be returned, containing data returned from the USPS Web Tools API.\n\nSince the return classes are defined using the attrs model, it is possible to convert into generic types:\n```python\n>>> import attr\n>>> attr.asdict(standardized)\n{'firm_name': 'USPS OFFICE OF THE CONSUMER ADVOCATE', 'address1': None, 'address2': '475 LENFANT PLZ SW RM 4012', 'city': 'WASHINGTON', 'state': 'DC', 'zip5': '20260', 'zip4': '0004'}\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/macro1/usps-client", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "usps-client", "package_url": "https://pypi.org/project/usps-client/", "platform": "", "project_url": "https://pypi.org/project/usps-client/", "project_urls": { "Homepage": "https://github.com/macro1/usps-client" }, "release_url": "https://pypi.org/project/usps-client/0.2/", "requires_dist": [ "attrs (>=17)", "inflection", "urllib3[secure] (<2,>=1.9)" ], "requires_python": "", "summary": "An unofficial client for the USPS Web Tools APIs", "version": "0.2" }, "last_serial": 5364916, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "916a01e6cc2eaae9f6eb3ee3bd21c3c2", "sha256": "a4e36ff6848735d69b69c85bc6cef72e102a3eadbc9190448c4890d7216ad29f" }, "downloads": -1, "filename": "usps_client-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "916a01e6cc2eaae9f6eb3ee3bd21c3c2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7606, "upload_time": "2019-05-06T02:00:02", "url": "https://files.pythonhosted.org/packages/10/76/4953520ff3f97ba7575d132cce9b21df513d82286185d26a99b4d3e36655/usps_client-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d21495176f2c99695f088d9eb72fb160", "sha256": "a7274a0dc233c7de6c49799b8f12c2cdc6b7d212cd6facfe983575f1bc349d4a" }, "downloads": -1, "filename": "usps-client-0.1.tar.gz", "has_sig": false, "md5_digest": "d21495176f2c99695f088d9eb72fb160", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5261, "upload_time": "2019-05-06T02:00:04", "url": "https://files.pythonhosted.org/packages/15/a8/7e353637e385b62ca2ae6076f7c4fa7b36c2ac0fa85e026106b1334891e0/usps-client-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "d7f38248198a89a0cbe433f3e31c9586", "sha256": "3d9e085debfe6e60c0cee671a5f47cea64a67187bb26a88461d5addf5c367920" }, "downloads": -1, "filename": "usps_client-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "d7f38248198a89a0cbe433f3e31c9586", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7691, "upload_time": "2019-06-06T00:52:23", "url": "https://files.pythonhosted.org/packages/65/4e/9b3cd50808735a153bbe5888e3c781921c451a56000f32c12386f918cbc4/usps_client-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ccba7c563e51b140781e37f79a9760d4", "sha256": "3cf9118744f0d4782f11d17ed4a2b34d3a02046f30e1d8b00538de89b19c948d" }, "downloads": -1, "filename": "usps-client-0.2.tar.gz", "has_sig": false, "md5_digest": "ccba7c563e51b140781e37f79a9760d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5358, "upload_time": "2019-06-06T00:52:25", "url": "https://files.pythonhosted.org/packages/47/ac/603e95b86060d4253571978cbe64944b4d32c35a77631ae9c5af29976447/usps-client-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d7f38248198a89a0cbe433f3e31c9586", "sha256": "3d9e085debfe6e60c0cee671a5f47cea64a67187bb26a88461d5addf5c367920" }, "downloads": -1, "filename": "usps_client-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "d7f38248198a89a0cbe433f3e31c9586", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7691, "upload_time": "2019-06-06T00:52:23", "url": "https://files.pythonhosted.org/packages/65/4e/9b3cd50808735a153bbe5888e3c781921c451a56000f32c12386f918cbc4/usps_client-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ccba7c563e51b140781e37f79a9760d4", "sha256": "3cf9118744f0d4782f11d17ed4a2b34d3a02046f30e1d8b00538de89b19c948d" }, "downloads": -1, "filename": "usps-client-0.2.tar.gz", "has_sig": false, "md5_digest": "ccba7c563e51b140781e37f79a9760d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5358, "upload_time": "2019-06-06T00:52:25", "url": "https://files.pythonhosted.org/packages/47/ac/603e95b86060d4253571978cbe64944b4d32c35a77631ae9c5af29976447/usps-client-0.2.tar.gz" } ] }