{ "info": { "author": "Django Software Foundation", "author_email": "foundation@djangoproject.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "=====================\r\ndjango_localflavor_us\r\n=====================\r\n\r\nCountry-specific Django helpers for U.S.A.\r\n\r\n.. WARNING::\r\n\r\n Obsolete package You should not use this package any longer. The former django.contrib.localflavor package is now available as the https://pypi.python.org/pypi/django-localflavor package, including the U.S. localflavor.\r\n\r\nWhat's in the U.S.A. localflavor?\r\n=================================\r\n\r\n* forms.USPhoneNumberField: A form field that validates input as a U.S. phone\r\n number.\r\n\r\n* forms.USSocialSecurityNumberField: A form field that validates input as a\r\n U.S. Social Security Number (SSN). A valid SSN must obey the following rules:\r\n\r\n * Format of XXX-XX-XXXX\r\n * No group of digits consisting entirely of zeroes\r\n * Leading group of digits cannot be 666\r\n * Number not in promotional block 987-65-4320 through 987-65-4329\r\n * Number not one known to be invalid due to widespread promotional\r\n use or distribution (e.g., the Woolworth's number or the 1962\r\n promotional number)\r\n\r\n* forms.USStateField: A form field that validates input as a U.S. state name or\r\n abbreviation. It normalizes the input to the standard two-letter postal\r\n service abbreviation for the given state.\r\n\r\n* forms.USZipCodeField: A form field that validates input as a U.S. ZIP code.\r\n Valid formats are XXXXX or XXXXX-XXXX.\r\n\r\n* forms.USStateSelect: A form ``Select`` widget that uses a list of U.S.\r\n states/territories as its choices.\r\n\r\n* forms.USPSSelect: A form ``Select`` widget that uses a list of U.S Postal\r\n Service state, territory and country abbreviations as its choices.\r\n\r\n* models.PhoneNumberField: A ``CharField`` that checks that the value is a\r\n valid U.S.A.-style phone number (in the format ``XXX-XXX-XXXX``).\r\n\r\n* models.USStateField: A model field that forms represent as a\r\n ``forms.USStateField`` field and stores the two-letter U.S. state\r\n abbreviation in the database.\r\n\r\n* models.USPostalCodeField: A model field that forms represent as a\r\n ``forms.USPSSelect`` field and stores the two-letter U.S Postal Service\r\n abbreviation in the database.\r\n\r\nAdditionally, a variety of choice tuples are provided in\r\n``us.us_states``, allowing customized model and form fields, and form\r\npresentations, for subsets of U.S states, territories and U.S Postal Service\r\nabbreviations:\r\n\r\n* us_states.CONTIGUOUS_STATES: A tuple of choices of the postal abbreviations\r\n for the contiguous or \"lower 48\" states (i.e., all except Alaska and Hawaii),\r\n plus the District of Columbia.\r\n\r\n* us_states.US_STATES: A tuple of choices of the postal abbreviations for all\r\n 50 U.S. states, plus the District of Columbia.\r\n\r\n* us_states.US_TERRITORIES: A tuple of choices of the postal abbreviations for\r\n U.S territories: American Samoa, Guam, the Northern Mariana Islands, Puerto\r\n Rico and the U.S. Virgin Islands.\r\n\r\n* us_states.ARMED_FORCES_STATES: A tuple of choices of the postal abbreviations\r\n of the three U.S military postal \"states\": Armed Forces Americas, Armed\r\n Forces Europe and Armed Forces Pacific.\r\n\r\n* us_states.COFA_STATES: A tuple of choices of the postal abbreviations of the\r\n three independent nations which, under the Compact of Free Association,\r\n are served by the U.S. Postal Service: the Federated States of\r\n Micronesia, the Marshall Islands and Palau.\r\n\r\n* us_states.OBSOLETE_STATES: A tuple of choices of obsolete U.S Postal Service\r\n state abbreviations: the former abbreviation for the Northern Mariana\r\n Islands, plus the Panama Canal Zone, the Philippines and the\r\n former Pacific trust territories.\r\n\r\n* us_states.STATE_CHOICES: A tuple of choices of all postal abbreviations\r\n corresponding to U.S states or territories, and the District of Columbia.\r\n\r\n* us_states.USPS_CHOICES: A tuple of choices of all postal abbreviations\r\n recognized by the U.S Postal Service (including all states and territories,\r\n the District of Columbia, armed forces \"states\" and independent nations\r\n serviced by USPS).\r\n\r\nSee the source code for full details.\r\n\r\nAbout localflavors\r\n==================\r\n\r\nDjango's \"localflavor\" packages offer additional functionality for particular\r\ncountries or cultures.\r\n\r\nFor example, these might include form fields for your country's postal codes,\r\nphone number formats or government ID numbers.\r\n\r\nThis code used to live in Django proper -- in django.contrib.localflavor -- but\r\nwas separated into standalone packages in Django 1.5 to keep the framework's\r\ncore clean.\r\n\r\nFor a full list of available localflavors, see https://github.com/django/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/django/django-localflavor-us", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-localflavor-us", "package_url": "https://pypi.org/project/django-localflavor-us/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-localflavor-us/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/django/django-localflavor-us" }, "release_url": "https://pypi.org/project/django-localflavor-us/1.1/", "requires_dist": null, "requires_python": null, "summary": "Country-specific Django helpers for U.S.A.", "version": "1.1" }, "last_serial": 1254671, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "591728a828ade6bc8a7aa775d652dab5", "sha256": "b13d6e57dc800e004888cbb12653ca96c40ff929c7a64f671405c710bb42385b" }, "downloads": -1, "filename": "django-localflavor-us-1.0.tar.gz", "has_sig": false, "md5_digest": "591728a828ade6bc8a7aa775d652dab5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6502, "upload_time": "2013-04-15T21:10:53", "url": "https://files.pythonhosted.org/packages/9c/c3/54d8f30c0975a04f46ce5b34367bf1fcb4385905969818c63eceb8f50c18/django-localflavor-us-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "570efba230dea408d55bccfea86fce33", "sha256": "f975c367e72449cd072371c1f91fa5c410940382e319832e80521d3bd46282c5" }, "downloads": -1, "filename": "django-localflavor-us-1.1.tar.gz", "has_sig": false, "md5_digest": "570efba230dea408d55bccfea86fce33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6671, "upload_time": "2013-05-22T15:54:09", "url": "https://files.pythonhosted.org/packages/e3/39/49139e100b9cf3e468af39f2d8922d03e9343edcc09aefecd9e4c3f7042c/django-localflavor-us-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "570efba230dea408d55bccfea86fce33", "sha256": "f975c367e72449cd072371c1f91fa5c410940382e319832e80521d3bd46282c5" }, "downloads": -1, "filename": "django-localflavor-us-1.1.tar.gz", "has_sig": false, "md5_digest": "570efba230dea408d55bccfea86fce33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6671, "upload_time": "2013-05-22T15:54:09", "url": "https://files.pythonhosted.org/packages/e3/39/49139e100b9cf3e468af39f2d8922d03e9343edcc09aefecd9e4c3f7042c/django-localflavor-us-1.1.tar.gz" } ] }