countrywrangler


Namecountrywrangler JSON
Version 0.2.7 PyPI version JSON
download
home_pagehttps://github.com/TheHenryWills/CountryWrangler
SummaryA library that simplifies the handling of country-related data. Easily standardize your data according to ISO 3166-1 and make it consistent across your project.
upload_time2023-04-15 14:58:49
maintainer
docs_urlNone
authorHenry Wills
requires_python
licenseMIT
keywords iso-3166 iso-3166-1 normalize countries-data country data-normalization data-cleaning
VCS
bugtrack_url
requirements mkdocs-material mkdocstrings
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <a name="readme-top"></a>

<!-- PROJECT SHIELDS -->
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]



<!-- PROJECT LOGO -->
<br />
<div align="center">
  <a href="https://github.com/TheHenryWills/CountryWrangler">
    <img src="https://github.com/TheHenryWills/CountryWrangler/blob/main/assets/logo.png?raw=true" alt="Logo">
  </a>

  <h3 align="center">CountryWrangler</h3>

  <p align="center">
CountryWrangler is a Python library that simplifies the handling of country-related data by converting country codes, names, TLDs, phone numbers, timezones, currencies, and languages to proper ISO 3166-1 Alpha-2 country codes. With CountryWrangler, you can easily standardize your data and make it consistent across your project. The library is designed for speed and efficiency, making it easy to process large datasets in no time. 
    <br />
    <br />
    <a href="https://countrywrangler.readthedocs.io/en/latest/"><strong>Explore the docs »</strong></a>
    <br />
    <br />
    <a href="https://github.com/TheHenryWills/CountryWrangler/issues/new">Report Bug</a>
    ·
    <a href="https://github.com/TheHenryWills/CountryWrangler/issues/new">Request Feature</a>
  </p>
</div>




<!-- ABOUT THE PROJECT -->
## About The Project
CountryWrangler is a high-performance Python library that has taken inspiration from `pycountry` and has surpassed it in terms of speed. With CountryWrangler, converting an Alpha-3 to an Alpha-2 (USA -> US) country code takes a mere 8900 nanoseconds, while the same conversion with `pycountry` on an Intel i7-10700K CPU @ 3.80GHz takes 282.636.700 nanoseconds. 

While `pycountry` is primarily designed to serve as a database for ISO standards, CountryWrangler is specifically developed to normalize country data. Both libraries cater to their respective use cases. Additionally, CountryWrangler offers extra functions that are designed to handle messy country data with ease.

<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- GETTING STARTED -->
## Getting Started

### Installation
Binary installers for the latest released version are available at the Python Package Index (PyPI)
 ```sh
 pip install countrywrangler
 ```

 
 
 <p align="right">(<a href="#readme-top">back to top</a>)</p>
 
 
 

<!-- USAGE EXAMPLES -->
## Basic Usage

### Country Name to Alpha-2
`name_to_alpha2` takes in a string and searches for a corresponding alpha-2 code in the database for both common and official country names in 34 different languages. If no match is found, `None` is returned.

Full documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/country_name/

```python
import countrywrangler as cw

alpha2 = cw.Normalize.name_to_alpha2("Germany")
print(alpha2)

>>> DE
```

The `use_fuzzy=True` option captures and matches virtually all variations of country names. Although using fuzzy lookup may incur a significant performance cost of approximately 100x slower than the normal lookup.

```python
import countrywrangler as cw

alpha2 = cw.Normalize.name_to_alpha2("Germany Federal Republic of", use_fuzzy=True)
print(alpha2)

>>> DE
```


### Country Code to Alpha-2
`code_to_alpha2` converts both alpha-3 and alpha-2 codes to alpha-2 format, and returning None in the absence of a match.
This can also be used to validate if a given string is a country code.

Full documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/country_code/

```python
import countrywrangler as cw

alpha2 = cw.Normalize.code_to_alpha2("GBR")
print(alpha2)

>>> GB
```


### Phone Number to Alpha-2
`phone_to_alpha2` accepts a string or integer representing a phone number in international format (E.164) and returns the corresponding ISO-3166-1 alpha-2 country code of the phone number's origin. If the input is not a valid phone number, the function returns `None`.

> **Warning**
> Please ensure that the input provided is a valid phone number, as almost any numerical input can be matched to an alpha-2 country code. This function does not validate whether the input is a phone number.

Full documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/phone/

```python
import countrywrangler as cw

alpha2 = cw.Normalize.phone_to_alpha2("+1 (222) 333-4444 ")
print(alpha2)

>>> US
```



### TLD to Alpha-2
`tld_to_alpha2` retrieves the country code associated with a given Top-Level Domain (TLD). If a match is found, the function returns the country code in ISO-3166-1 alpha-2 format. Otherwise, it returns None.

Full documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/tld/

```python
import countrywrangler as cw

alpha2 = cw.Normalize.tld_to_alpha2(".co.uk")
print(alpha2)

>>> GB
```

### Timezone to Alpha-2
`timezone_to_alpha2` takes a geographic timezone name such as `Europe/Vienna` and returns the corresponding alpha-2 country code e.g., `AT` if it's an exact match. If there's no exact match, the function returns `None` instead.

Full documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/timezone/

```python
import countrywrangler as cw

alpha2 = cw.Normalize.timezone_to_alpha2("Europe/Vienna")
print(alpha2)

>>> AT
```


### Language to Alpha-2
`language_to_alpha2` matches ISO 639-1, ISO 639-2 language codes and IETF language tags to an ISO-3361-1 Alpha-2 country code. 
It is important to note that while IETF language tags will always be unambiguous, ISO codes may not be. For instance, 
the code `ES` can produce a list of country codes corresponding to all countries where Spanish is spoken.

> **Warning**
>   If it is not desired that ambiguous country codes are being returned as a list, the option `allow_ambiguous=False` can be 
    passed as a parameter. This will restrict the output to a single, unambiguous country code. I case matching ambiguous countries is not turned off the function either returns a string (uambiguous) or a list (ambiguous), you code must be able to handle the different types.

Full documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/language/

```python
import countrywrangler as cw

alpha2 = cw.Normalize.language_to_alpha2("en-US")
print(alpha2)

>>> US
```



<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- ROADMAP -->
## Roadmap

- [x] Fuzzy lookup for country names
- [x] Support language code to to alpha2
- [ ] Option to exclude languages from country name matching
- [ ] Support for subdivisions to alpha2
- [ ] Support for city to to alpha2
- [ ] Add more alternative country names

See the [open issues](https://github.com/TheHenryWills/CountryWrangler/issues) for a full list of proposed features (and known issues).

<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- UPDATEPOLICY -->
## Data Update Policy
Updates to the ISO 3361 standards are monitored and immediately added upon changes or additions.
No changes to the data will be accepted into CountryWrangler unless it is plain simple wrong. 

<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- CONTRIBUTING -->
## Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks you!

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

<p align="right">(<a href="#readme-top">back to top</a>)</p>


<!-- LICENSE -->
## License

CountryWrangler is Open Source and distributed under the MIT License.

Copyright (c) 2023 Henry Wills - https://linktr.ee/thehenrywills

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- CONTACT -->
## Contact

Henry Wills - [Linktree - @TheHenryWills](https://linktr.ee/thehenrywills)

Project Link: [https://github.com/TheHenryWills/CountryWrangler](https://github.com/TheHenryWills/CountryWrangler)

<p align="right">(<a href="#readme-top">back to top</a>)</p>


<!-- DONATIONS -->
## Donations / Monetary Support
Your donation helps support my work in creating high-quality content such as blog articles and tutorials, as well as maintaining my open-source projects. Every penny you donate goes directly towards these efforts, ensuring that these resources remain accessible and free for everyone.

<a href='https://ko-fi.com/Z8Z5JJJ1X' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi1.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>

<p align="right">(<a href="#readme-top">back to top</a>)</p>


<!-- ACKNOWLEDGMENTS -->
## Acknowledgments

* [phone_iso3166 - Map an E.164 (international) phone number to the ISO-3166-1 alpha 2](https://github.com/onlinecity/phone-iso3166)
* [Country names and codes based on world_countries by Stefan Gabos](https://stefangabos.github.io/world_countries/)
* [Inspired by pycountry](https://github.com/flyingcircusio/pycountry)


<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[contributors-shield]: https://img.shields.io/github/contributors/TheHenryWills/CountryWrangler.svg?style=for-the-badge
[contributors-url]: https://github.com/TheHenryWills/CountryWrangler/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/TheHenryWills/CountryWrangler.svg?style=for-the-badge
[forks-url]: https://github.com/TheHenryWills/CountryWrangler/network/members
[stars-shield]: https://img.shields.io/github/stars/TheHenryWills/CountryWrangler.svg?style=for-the-badge
[stars-url]: https://github.com/TheHenryWills/CountryWrangler/stargazers
[issues-shield]: https://img.shields.io/github/issues/TheHenryWills/CountryWrangler.svg?style=for-the-badge
[issues-url]: https://github.com/TheHenryWills/CountryWrangler/issues
[license-shield]: https://img.shields.io/github/license/TheHenryWills/CountryWrangler.svg?style=for-the-badge
[license-url]: https://github.com/TheHenryWills/CountryWrangler/blob/main/LICENSE
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://www.linkedin.com/in/henry-wills
[product-screenshot]: assets/logo.png

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/TheHenryWills/CountryWrangler",
    "name": "countrywrangler",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "iso-3166,iso-3166-1 ,normalize, countries-data,country,data-normalization,data-cleaning",
    "author": "Henry Wills",
    "author_email": "hello@henrywills.com",
    "download_url": "https://files.pythonhosted.org/packages/bf/c9/a7a42115dde822e89663d1b0f777a4fb5169d921ffc2b8f5aac01af54199/countrywrangler-0.2.7.tar.gz",
    "platform": null,
    "description": "<a name=\"readme-top\"></a>\r\n\r\n<!-- PROJECT SHIELDS -->\r\n[![Contributors][contributors-shield]][contributors-url]\r\n[![Forks][forks-shield]][forks-url]\r\n[![Stargazers][stars-shield]][stars-url]\r\n[![Issues][issues-shield]][issues-url]\r\n[![MIT License][license-shield]][license-url]\r\n[![LinkedIn][linkedin-shield]][linkedin-url]\r\n\r\n\r\n\r\n<!-- PROJECT LOGO -->\r\n<br />\r\n<div align=\"center\">\r\n  <a href=\"https://github.com/TheHenryWills/CountryWrangler\">\r\n    <img src=\"https://github.com/TheHenryWills/CountryWrangler/blob/main/assets/logo.png?raw=true\" alt=\"Logo\">\r\n  </a>\r\n\r\n  <h3 align=\"center\">CountryWrangler</h3>\r\n\r\n  <p align=\"center\">\r\nCountryWrangler is a Python library that simplifies the handling of country-related data by converting country codes, names, TLDs, phone numbers, timezones, currencies, and languages to proper ISO 3166-1 Alpha-2 country codes. With CountryWrangler, you can easily standardize your data and make it consistent across your project. The library is designed for speed and efficiency, making it easy to process large datasets in no time. \r\n    <br />\r\n    <br />\r\n    <a href=\"https://countrywrangler.readthedocs.io/en/latest/\"><strong>Explore the docs \u00bb</strong></a>\r\n    <br />\r\n    <br />\r\n    <a href=\"https://github.com/TheHenryWills/CountryWrangler/issues/new\">Report Bug</a>\r\n    \u00b7\r\n    <a href=\"https://github.com/TheHenryWills/CountryWrangler/issues/new\">Request Feature</a>\r\n  </p>\r\n</div>\r\n\r\n\r\n\r\n\r\n<!-- ABOUT THE PROJECT -->\r\n## About The Project\r\nCountryWrangler is a high-performance Python library that has taken inspiration from `pycountry` and has surpassed it in terms of speed. With CountryWrangler, converting an Alpha-3 to an Alpha-2 (USA -> US) country code takes a mere 8900 nanoseconds, while the same conversion with `pycountry` on an Intel i7-10700K CPU @ 3.80GHz takes 282.636.700 nanoseconds. \r\n\r\nWhile `pycountry` is primarily designed to serve as a database for ISO standards, CountryWrangler is specifically developed to normalize country data. Both libraries cater to their respective use cases. Additionally, CountryWrangler offers extra functions that are designed to handle messy country data with ease.\r\n\r\n<p align=\"right\">(<a href=\"#readme-top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- GETTING STARTED -->\r\n## Getting Started\r\n\r\n### Installation\r\nBinary installers for the latest released version are available at the Python Package Index (PyPI)\r\n ```sh\r\n pip install countrywrangler\r\n ```\r\n\r\n \r\n \r\n <p align=\"right\">(<a href=\"#readme-top\">back to top</a>)</p>\r\n \r\n \r\n \r\n\r\n<!-- USAGE EXAMPLES -->\r\n## Basic Usage\r\n\r\n### Country Name to Alpha-2\r\n`name_to_alpha2` takes in a string and searches for a corresponding alpha-2 code in the database for both common and official country names in 34 different languages. If no match is found, `None` is returned.\r\n\r\nFull documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/country_name/\r\n\r\n```python\r\nimport countrywrangler as cw\r\n\r\nalpha2 = cw.Normalize.name_to_alpha2(\"Germany\")\r\nprint(alpha2)\r\n\r\n>>> DE\r\n```\r\n\r\nThe `use_fuzzy=True` option captures and matches virtually all variations of country names. Although using fuzzy lookup may incur a significant performance cost of approximately 100x slower than the normal lookup.\r\n\r\n```python\r\nimport countrywrangler as cw\r\n\r\nalpha2 = cw.Normalize.name_to_alpha2(\"Germany Federal Republic of\", use_fuzzy=True)\r\nprint(alpha2)\r\n\r\n>>> DE\r\n```\r\n\r\n\r\n### Country Code to Alpha-2\r\n`code_to_alpha2` converts both alpha-3 and alpha-2 codes to alpha-2 format, and returning None in the absence of a match.\r\nThis can also be used to validate if a given string is a country code.\r\n\r\nFull documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/country_code/\r\n\r\n```python\r\nimport countrywrangler as cw\r\n\r\nalpha2 = cw.Normalize.code_to_alpha2(\"GBR\")\r\nprint(alpha2)\r\n\r\n>>> GB\r\n```\r\n\r\n\r\n### Phone Number to Alpha-2\r\n`phone_to_alpha2` accepts a string or integer representing a phone number in international format (E.164) and returns the corresponding ISO-3166-1 alpha-2 country code of the phone number's origin. If the input is not a valid phone number, the function returns `None`.\r\n\r\n> **Warning**\r\n> Please ensure that the input provided is a valid phone number, as almost any numerical input can be matched to an alpha-2 country code. This function does not validate whether the input is a phone number.\r\n\r\nFull documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/phone/\r\n\r\n```python\r\nimport countrywrangler as cw\r\n\r\nalpha2 = cw.Normalize.phone_to_alpha2(\"+1 (222) 333-4444 \")\r\nprint(alpha2)\r\n\r\n>>> US\r\n```\r\n\r\n\r\n\r\n### TLD to Alpha-2\r\n`tld_to_alpha2` retrieves the country code associated with a given Top-Level Domain (TLD). If a match is found, the function returns the country code in ISO-3166-1 alpha-2 format. Otherwise, it returns None.\r\n\r\nFull documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/tld/\r\n\r\n```python\r\nimport countrywrangler as cw\r\n\r\nalpha2 = cw.Normalize.tld_to_alpha2(\".co.uk\")\r\nprint(alpha2)\r\n\r\n>>> GB\r\n```\r\n\r\n### Timezone to Alpha-2\r\n`timezone_to_alpha2` takes a geographic timezone name such as `Europe/Vienna` and returns the corresponding alpha-2 country code e.g., `AT` if it's an exact match. If there's no exact match, the function returns `None` instead.\r\n\r\nFull documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/timezone/\r\n\r\n```python\r\nimport countrywrangler as cw\r\n\r\nalpha2 = cw.Normalize.timezone_to_alpha2(\"Europe/Vienna\")\r\nprint(alpha2)\r\n\r\n>>> AT\r\n```\r\n\r\n\r\n### Language to Alpha-2\r\n`language_to_alpha2` matches ISO 639-1, ISO 639-2 language codes and IETF language tags to an ISO-3361-1 Alpha-2 country code. \r\nIt is important to note that while IETF language tags will always be unambiguous, ISO codes may not be. For instance, \r\nthe code `ES` can produce a list of country codes corresponding to all countries where Spanish is spoken.\r\n\r\n> **Warning**\r\n>   If it is not desired that ambiguous country codes are being returned as a list, the option `allow_ambiguous=False` can be \r\n    passed as a parameter. This will restrict the output to a single, unambiguous country code. I case matching ambiguous countries is not turned off the function either returns a string (uambiguous) or a list (ambiguous), you code must be able to handle the different types.\r\n\r\nFull documentation: https://countrywrangler.readthedocs.io/en/latest/normalize/language/\r\n\r\n```python\r\nimport countrywrangler as cw\r\n\r\nalpha2 = cw.Normalize.language_to_alpha2(\"en-US\")\r\nprint(alpha2)\r\n\r\n>>> US\r\n```\r\n\r\n\r\n\r\n<p align=\"right\">(<a href=\"#readme-top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- ROADMAP -->\r\n## Roadmap\r\n\r\n- [x] Fuzzy lookup for country names\r\n- [x] Support language code to to alpha2\r\n- [ ] Option to exclude languages from country name matching\r\n- [ ] Support for subdivisions to alpha2\r\n- [ ] Support for city to to alpha2\r\n- [ ] Add more alternative country names\r\n\r\nSee the [open issues](https://github.com/TheHenryWills/CountryWrangler/issues) for a full list of proposed features (and known issues).\r\n\r\n<p align=\"right\">(<a href=\"#readme-top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- UPDATEPOLICY -->\r\n## Data Update Policy\r\nUpdates to the ISO 3361 standards are monitored and immediately added upon changes or additions.\r\nNo changes to the data will be accepted into CountryWrangler unless it is plain simple wrong. \r\n\r\n<p align=\"right\">(<a href=\"#readme-top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- CONTRIBUTING -->\r\n## Contributing\r\n\r\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\r\n\r\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\r\nDon't forget to give the project a star! Thanks you!\r\n\r\n1. Fork the Project\r\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\r\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\r\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\r\n5. Open a Pull Request\r\n\r\n<p align=\"right\">(<a href=\"#readme-top\">back to top</a>)</p>\r\n\r\n\r\n<!-- LICENSE -->\r\n## License\r\n\r\nCountryWrangler is Open Source and distributed under the MIT License.\r\n\r\nCopyright (c) 2023 Henry Wills - https://linktr.ee/thehenrywills\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n\r\n<p align=\"right\">(<a href=\"#readme-top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- CONTACT -->\r\n## Contact\r\n\r\nHenry Wills - [Linktree - @TheHenryWills](https://linktr.ee/thehenrywills)\r\n\r\nProject Link: [https://github.com/TheHenryWills/CountryWrangler](https://github.com/TheHenryWills/CountryWrangler)\r\n\r\n<p align=\"right\">(<a href=\"#readme-top\">back to top</a>)</p>\r\n\r\n\r\n<!-- DONATIONS -->\r\n## Donations / Monetary Support\r\nYour donation helps support my work in creating high-quality content such as blog articles and tutorials, as well as maintaining my open-source projects. Every penny you donate goes directly towards these efforts, ensuring that these resources remain accessible and free for everyone.\r\n\r\n<a href='https://ko-fi.com/Z8Z5JJJ1X' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi1.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>\r\n\r\n<p align=\"right\">(<a href=\"#readme-top\">back to top</a>)</p>\r\n\r\n\r\n<!-- ACKNOWLEDGMENTS -->\r\n## Acknowledgments\r\n\r\n* [phone_iso3166 - Map an E.164 (international) phone number to the ISO-3166-1 alpha 2](https://github.com/onlinecity/phone-iso3166)\r\n* [Country names and codes based on world_countries by Stefan Gabos](https://stefangabos.github.io/world_countries/)\r\n* [Inspired by pycountry](https://github.com/flyingcircusio/pycountry)\r\n\r\n\r\n<p align=\"right\">(<a href=\"#readme-top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- MARKDOWN LINKS & IMAGES -->\r\n<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->\r\n[contributors-shield]: https://img.shields.io/github/contributors/TheHenryWills/CountryWrangler.svg?style=for-the-badge\r\n[contributors-url]: https://github.com/TheHenryWills/CountryWrangler/graphs/contributors\r\n[forks-shield]: https://img.shields.io/github/forks/TheHenryWills/CountryWrangler.svg?style=for-the-badge\r\n[forks-url]: https://github.com/TheHenryWills/CountryWrangler/network/members\r\n[stars-shield]: https://img.shields.io/github/stars/TheHenryWills/CountryWrangler.svg?style=for-the-badge\r\n[stars-url]: https://github.com/TheHenryWills/CountryWrangler/stargazers\r\n[issues-shield]: https://img.shields.io/github/issues/TheHenryWills/CountryWrangler.svg?style=for-the-badge\r\n[issues-url]: https://github.com/TheHenryWills/CountryWrangler/issues\r\n[license-shield]: https://img.shields.io/github/license/TheHenryWills/CountryWrangler.svg?style=for-the-badge\r\n[license-url]: https://github.com/TheHenryWills/CountryWrangler/blob/main/LICENSE\r\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555\r\n[linkedin-url]: https://www.linkedin.com/in/henry-wills\r\n[product-screenshot]: assets/logo.png\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A library that simplifies the handling of country-related data. Easily standardize your data according to ISO 3166-1 and make it consistent across your project.",
    "version": "0.2.7",
    "split_keywords": [
        "iso-3166",
        "iso-3166-1 ",
        "normalize",
        " countries-data",
        "country",
        "data-normalization",
        "data-cleaning"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bfc9a7a42115dde822e89663d1b0f777a4fb5169d921ffc2b8f5aac01af54199",
                "md5": "f3ba128212ca23b7479d111b2e133fa9",
                "sha256": "162e83888814db03064a50c55e5a9f03c7395bfdb6f92472aebbddd357e2057f"
            },
            "downloads": -1,
            "filename": "countrywrangler-0.2.7.tar.gz",
            "has_sig": false,
            "md5_digest": "f3ba128212ca23b7479d111b2e133fa9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 83872,
            "upload_time": "2023-04-15T14:58:49",
            "upload_time_iso_8601": "2023-04-15T14:58:49.303509Z",
            "url": "https://files.pythonhosted.org/packages/bf/c9/a7a42115dde822e89663d1b0f777a4fb5169d921ffc2b8f5aac01af54199/countrywrangler-0.2.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-15 14:58:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "TheHenryWills",
    "github_project": "CountryWrangler",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "mkdocs-material",
            "specs": []
        },
        {
            "name": "mkdocstrings",
            "specs": []
        }
    ],
    "lcname": "countrywrangler"
}
        
Elapsed time: 0.05899s