countrypy


Namecountrypy JSON
Version 1.1.0 PyPI version JSON
download
home_pageNone
SummaryA modern Python library for country data
upload_time2024-08-24 16:39:18
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseMIT License Copyright (c) 2024 Arjun Sharda 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.
keywords country languages nation currency world lightweight efficient
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            CountryPy
=========

<img align="left" src="http://estruyf-github.azurewebsites.net/api/VisitorHit?user=ArjunSharda&repo=CountryPy&countColorcountColor&countColor=%237B1E7B"/>
<img align="right" src="https://img.shields.io/github/repo-size/ArjunSharda/CountryPy?style=for-the-badge&logo=appveyor" alt="GitHub repo size"/>

![CountryPy](https://socialify.git.ci/ArjunSharda/CountryPy/image?description=1&descriptionEditable=%F0%9F%97%BA%EF%B8%8F%20A%20lightweight%20%26%20efficient%20library%20for%20fetching%20country%20data.&font=Raleway&forks=1&issues=1&language=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2FArjunSharda%2FCountryPy%2Fmain%2Fext%2FCountryPy.png&name=1&owner=1&pattern=Signal&pulls=1&stargazers=1&theme=Auto)

# Description

CountryPy is a lightweight & efficient modern country data library, used for fetching information about a variety of countries with support for command-line interface (CLI).

Installation
------------
**[Python 3.6+](https://www.python.org/downloads/) is required**
```bash
# MacOS / Linux (via Terminal)
python3 -m pip install -U countrypy

# Windows (via CMD Prompt)
py -3 -m pip install -U countrypy
```

Quick Start
-----------
```python
>>> from countrypy import Country
>>> country = Country("United States of America")
>>> print(f"Capital: {country.capital}")
'Washington, D.C'
```

Search
-----------
```python
>>> from countrypy import Search
>>> searching = Search(Search.timezones, "UTC-12:00")
>>> print(searching)
'United States'
```

CLI Quick Start
---------------
```bash
$ countrypy quickinfo US
```
Take a look at more examples in the [examples](https://github.com/ArjunSharda/CountryPy/tree/main/examples) folder!

v1.1.0 Changes
--------------
v1.1.0
- **[ADDED]** Added `Search` option & `search_by` for CLI - you can now sort countries by data such as timezones & languages!
- **[ADDED]** Added more error handling
- **[MODIFIED]** Changed API URL to use filters to reduce load time
- **[PATCH]** Fixed a bug for both CLI and non-cli with phone country codes and their suffixes


## Want to contribute?
Take a look at the [contributing guidelines](CONTRIBUTING.md)!

<hr>
<h6 align="center">© Arjun Sharda 2024-present
<br>
All Rights Reserved</h6>

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "countrypy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "country, languages, nation, currency, world, lightweight, efficient",
    "author": null,
    "author_email": "Arjun Sharda <sharda.aj17@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/8a/68/75c94274baf28ddd302e9e8290d3d1b9dcc10cbcdf3b930b2dbda4d2219f/countrypy-1.1.0.tar.gz",
    "platform": null,
    "description": "CountryPy\n=========\n\n<img align=\"left\" src=\"http://estruyf-github.azurewebsites.net/api/VisitorHit?user=ArjunSharda&repo=CountryPy&countColorcountColor&countColor=%237B1E7B\"/>\n<img align=\"right\" src=\"https://img.shields.io/github/repo-size/ArjunSharda/CountryPy?style=for-the-badge&logo=appveyor\" alt=\"GitHub repo size\"/>\n\n![CountryPy](https://socialify.git.ci/ArjunSharda/CountryPy/image?description=1&descriptionEditable=%F0%9F%97%BA%EF%B8%8F%20A%20lightweight%20%26%20efficient%20library%20for%20fetching%20country%20data.&font=Raleway&forks=1&issues=1&language=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2FArjunSharda%2FCountryPy%2Fmain%2Fext%2FCountryPy.png&name=1&owner=1&pattern=Signal&pulls=1&stargazers=1&theme=Auto)\n\n# Description\n\nCountryPy is a lightweight & efficient modern country data library, used for fetching information about a variety of countries with support for command-line interface (CLI).\n\nInstallation\n------------\n**[Python 3.6+](https://www.python.org/downloads/) is required**\n```bash\n# MacOS / Linux (via Terminal)\npython3 -m pip install -U countrypy\n\n# Windows (via CMD Prompt)\npy -3 -m pip install -U countrypy\n```\n\nQuick Start\n-----------\n```python\n>>> from countrypy import Country\n>>> country = Country(\"United States of America\")\n>>> print(f\"Capital: {country.capital}\")\n'Washington, D.C'\n```\n\nSearch\n-----------\n```python\n>>> from countrypy import Search\n>>> searching = Search(Search.timezones, \"UTC-12:00\")\n>>> print(searching)\n'United States'\n```\n\nCLI Quick Start\n---------------\n```bash\n$ countrypy quickinfo US\n```\nTake a look at more examples in the [examples](https://github.com/ArjunSharda/CountryPy/tree/main/examples) folder!\n\nv1.1.0 Changes\n--------------\nv1.1.0\n- **[ADDED]** Added `Search` option & `search_by` for CLI - you can now sort countries by data such as timezones & languages!\n- **[ADDED]** Added more error handling\n- **[MODIFIED]** Changed API URL to use filters to reduce load time\n- **[PATCH]** Fixed a bug for both CLI and non-cli with phone country codes and their suffixes\n\n\n## Want to contribute?\nTake a look at the [contributing guidelines](CONTRIBUTING.md)!\n\n<hr>\n<h6 align=\"center\">\u00a9 Arjun Sharda 2024-present\n<br>\nAll Rights Reserved</h6>\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Arjun Sharda  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. ",
    "summary": "A modern Python library for country data",
    "version": "1.1.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/ArjunSharda/countrypy/issues",
        "Homepage": "https://github.com/ArjunSharda/countrypy"
    },
    "split_keywords": [
        "country",
        " languages",
        " nation",
        " currency",
        " world",
        " lightweight",
        " efficient"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4d2ac3354913b43bd9c4113490b9aff4b74ef358f8963fbec2d27ae26311522f",
                "md5": "07b8da924f494f535c1bf669be3e7463",
                "sha256": "1f0f703f06c758f2c03e123384b2420dd8f1b5f9cd5e1f1e2aa268f6128656f1"
            },
            "downloads": -1,
            "filename": "countrypy-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "07b8da924f494f535c1bf669be3e7463",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 11449,
            "upload_time": "2024-08-24T16:39:17",
            "upload_time_iso_8601": "2024-08-24T16:39:17.203627Z",
            "url": "https://files.pythonhosted.org/packages/4d/2a/c3354913b43bd9c4113490b9aff4b74ef358f8963fbec2d27ae26311522f/countrypy-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a6875c94274baf28ddd302e9e8290d3d1b9dcc10cbcdf3b930b2dbda4d2219f",
                "md5": "a4e265bbe3a2106642af33c03607ed58",
                "sha256": "0136ba116b678165a9d30fc91a0678ba7a0b5791473e4fc71eb89e6c9b26b61f"
            },
            "downloads": -1,
            "filename": "countrypy-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a4e265bbe3a2106642af33c03607ed58",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 11243,
            "upload_time": "2024-08-24T16:39:18",
            "upload_time_iso_8601": "2024-08-24T16:39:18.089681Z",
            "url": "https://files.pythonhosted.org/packages/8a/68/75c94274baf28ddd302e9e8290d3d1b9dcc10cbcdf3b930b2dbda4d2219f/countrypy-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-24 16:39:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ArjunSharda",
    "github_project": "countrypy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "countrypy"
}
        
Elapsed time: 3.62940s