Skip to main content

Python library leveraging REST Countries API to fetch and display country-specific data such as capitals, populations, currencies, and languages.

Project description

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

  https://restcountries.com/v3.1/

Installation

Install my-project with npm

  pip install infokannegara

Usage

Basic Usage :

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.")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infokannegara-0.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

infokannegara-0.0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page