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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for infokannegara-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b48b71001b0dd4d8ba81327e0c8bac0dc4972356d977025734da03f3aabf6cc |
|
MD5 | 881f50e531414b4422b65b73c8acd1f7 |
|
BLAKE2b-256 | aafc1a4a9c60cabd2585da2d09b76c35577ab7126d1a506cb0e7bcbb5dd7e50e |