countries-info


Namecountries-info JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/iqbull2244/negara
SummarySimple library to get information about country
upload_time2023-11-24 07:44:50
maintainer
docs_urlNone
authoriqballl
requires_python
license
keywords countries negara
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PokePoke

The PokeAPI is a RESTful API that serves as a comprehensive database for Pokémon-related data. It offers a wide range of information about Pokémon species, their abilities, moves, types, evolutions, and more. By providing endpoints for various queries, such as retrieving details about specific Pokémon or abilities, the PokeAPI allows developers to access and utilize Pokémon-related data in their applications. It serves as a valuable resource for enthusiasts, developers, and researchers interested in integrating Pokémon-related information into their projects.

## API 
Python Basic API wrapper
```http
  https://restcountries.com/v3.1
```

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.

```bash
pip install countries_info
```

## Usage

```python
from countries import restcountries

def get_user_input():
    country_code = input("Masukkan kode negara (contoh: usa): ")
    return country_code

def main():
    rest_countries_api = restcountries()

    # Mendapatkan input dari pengguna
    country_code = get_user_input()

    # Memanggil fungsi untuk mendapatkan informasi negara berdasarkan kode negara
    country_info = rest_countries_api.get_country_info(country_code)
    
    if "error" in country_info:
        print(country_info["error"])
    else:
        print(f"Informasi Negara untuk {country_code.upper()}:")
        print(country_info)

if __name__ == "__main__":
    main()

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/iqbull2244/negara",
    "name": "countries-info",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "countries,negara",
    "author": "iqballl",
    "author_email": "<rafiiqbal2407@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/9d/4a/9cc7ceec87ef9089565a72aaf1fa8739c9d87af913de8e42a23413c292e4/countries_info-0.0.1.tar.gz",
    "platform": null,
    "description": "# PokePoke\r\n\r\nThe PokeAPI is a RESTful API that serves as a comprehensive database for Pok\u00c3\u00a9mon-related data. It offers a wide range of information about Pok\u00c3\u00a9mon species, their abilities, moves, types, evolutions, and more. By providing endpoints for various queries, such as retrieving details about specific Pok\u00c3\u00a9mon or abilities, the PokeAPI allows developers to access and utilize Pok\u00c3\u00a9mon-related data in their applications. It serves as a valuable resource for enthusiasts, developers, and researchers interested in integrating Pok\u00c3\u00a9mon-related information into their projects.\r\n\r\n## API \r\nPython Basic API wrapper\r\n```http\r\n  https://restcountries.com/v3.1\r\n```\r\n\r\n## Installation\r\n\r\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.\r\n\r\n```bash\r\npip install countries_info\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nfrom countries import restcountries\r\n\r\ndef get_user_input():\r\n    country_code = input(\"Masukkan kode negara (contoh: usa): \")\r\n    return country_code\r\n\r\ndef main():\r\n    rest_countries_api = restcountries()\r\n\r\n    # Mendapatkan input dari pengguna\r\n    country_code = get_user_input()\r\n\r\n    # Memanggil fungsi untuk mendapatkan informasi negara berdasarkan kode negara\r\n    country_info = rest_countries_api.get_country_info(country_code)\r\n    \r\n    if \"error\" in country_info:\r\n        print(country_info[\"error\"])\r\n    else:\r\n        print(f\"Informasi Negara untuk {country_code.upper()}:\")\r\n        print(country_info)\r\n\r\nif __name__ == \"__main__\":\r\n    main()\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Simple library to get information about country",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/iqbull2244/negara"
    },
    "split_keywords": [
        "countries",
        "negara"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21e093ffafd903974481b3c68f9487536617d0d4f0f32e0444f842bd95446e01",
                "md5": "6ec1c10f3cdc3d56abb140c7f7bc193f",
                "sha256": "544d8d90e69f71da7bc1ea73218aa9ce69a665d5032f0a051fbfc0944bd55fc1"
            },
            "downloads": -1,
            "filename": "countries_info-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6ec1c10f3cdc3d56abb140c7f7bc193f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3349,
            "upload_time": "2023-11-24T07:44:49",
            "upload_time_iso_8601": "2023-11-24T07:44:49.192261Z",
            "url": "https://files.pythonhosted.org/packages/21/e0/93ffafd903974481b3c68f9487536617d0d4f0f32e0444f842bd95446e01/countries_info-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9d4a9cc7ceec87ef9089565a72aaf1fa8739c9d87af913de8e42a23413c292e4",
                "md5": "a5c324428cef36de3a3cb080b0282160",
                "sha256": "0f7619bc2ed56dfae99c284588f511545ba9f4744a84fd891460e61fcbffec1e"
            },
            "downloads": -1,
            "filename": "countries_info-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "a5c324428cef36de3a3cb080b0282160",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2968,
            "upload_time": "2023-11-24T07:44:50",
            "upload_time_iso_8601": "2023-11-24T07:44:50.571770Z",
            "url": "https://files.pythonhosted.org/packages/9d/4a/9cc7ceec87ef9089565a72aaf1fa8739c9d87af913de8e42a23413c292e4/countries_info-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-24 07:44:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "iqbull2244",
    "github_project": "negara",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "countries-info"
}
        
Elapsed time: 0.14590s