infokannegara


Nameinfokannegara JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/codewithwan/infokannegara
SummaryPython library leveraging REST Countries API to fetch and display country-specific data such as capitals, populations, currencies, and languages.
upload_time2023-11-17 10:36:24
maintainer
docs_urlNone
authorapaya
requires_python
licenseMIT
keywords info negara
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# SC-Movie
Python library leveraging REST Countries API to fetch and display country-specific data such as capitals, populations, currencies, and languages



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

## Installation

Install my-project with npm

```bash
  pip install infokannegara
```
    

## Usage

Basic Usage :

```python
from countryinfo.negara import CountryInfo

country_data = CountryInfo()
country_name = input("Masukkan nama negara: ")

capital = country_data.get_country_capital(country_name)
population = country_data.get_country_population(country_name)

if capital and population:
    print(f"Ibu kota dari {country_name} adalah {capital}")
    print(f"Populasi {country_name} adalah {population}")
else:
    print("Data negara tidak ditemukan.")
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/codewithwan/infokannegara",
    "name": "infokannegara",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "info,negara",
    "author": "apaya",
    "author_email": "<heyowassap@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/6f/fa/aca73ee75a0019ba58cde1b2dbd26f5088911a9ef9ec436d9f91a737029e/infokannegara-0.0.1.tar.gz",
    "platform": null,
    "description": "\r\n# SC-Movie\r\nPython library leveraging REST Countries API to fetch and display country-specific data such as capitals, populations, currencies, and languages\r\n\r\n\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\nInstall my-project with npm\r\n\r\n```bash\r\n  pip install infokannegara\r\n```\r\n    \r\n\r\n## Usage\r\n\r\nBasic Usage :\r\n\r\n```python\r\nfrom countryinfo.negara import CountryInfo\r\n\r\ncountry_data = CountryInfo()\r\ncountry_name = input(\"Masukkan nama negara: \")\r\n\r\ncapital = country_data.get_country_capital(country_name)\r\npopulation = country_data.get_country_population(country_name)\r\n\r\nif capital and population:\r\n    print(f\"Ibu kota dari {country_name} adalah {capital}\")\r\n    print(f\"Populasi {country_name} adalah {population}\")\r\nelse:\r\n    print(\"Data negara tidak ditemukan.\")\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python library leveraging REST Countries API to fetch and display country-specific data such as capitals, populations, currencies, and languages.",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/codewithwan/infokannegara"
    },
    "split_keywords": [
        "info",
        "negara"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aafc1a4a9c60cabd2585da2d09b76c35577ab7126d1a506cb0e7bcbb5dd7e50e",
                "md5": "881f50e531414b4422b65b73c8acd1f7",
                "sha256": "8b48b71001b0dd4d8ba81327e0c8bac0dc4972356d977025734da03f3aabf6cc"
            },
            "downloads": -1,
            "filename": "infokannegara-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "881f50e531414b4422b65b73c8acd1f7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3053,
            "upload_time": "2023-11-17T10:36:22",
            "upload_time_iso_8601": "2023-11-17T10:36:22.788119Z",
            "url": "https://files.pythonhosted.org/packages/aa/fc/1a4a9c60cabd2585da2d09b76c35577ab7126d1a506cb0e7bcbb5dd7e50e/infokannegara-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6ffaaca73ee75a0019ba58cde1b2dbd26f5088911a9ef9ec436d9f91a737029e",
                "md5": "74fb4b70aed40990b7aac0550f62aee3",
                "sha256": "38626716e847c28c2a31e43c8b7a9c1744fa69941edbb8caf45f18ce34efffe7"
            },
            "downloads": -1,
            "filename": "infokannegara-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "74fb4b70aed40990b7aac0550f62aee3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2731,
            "upload_time": "2023-11-17T10:36:24",
            "upload_time_iso_8601": "2023-11-17T10:36:24.393635Z",
            "url": "https://files.pythonhosted.org/packages/6f/fa/aca73ee75a0019ba58cde1b2dbd26f5088911a9ef9ec436d9f91a737029e/infokannegara-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-17 10:36:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "codewithwan",
    "github_project": "infokannegara",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "infokannegara"
}
        
Elapsed time: 0.14062s