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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file infokannegara-0.0.1.tar.gz.
File metadata
- Download URL: infokannegara-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38626716e847c28c2a31e43c8b7a9c1744fa69941edbb8caf45f18ce34efffe7
|
|
| MD5 |
74fb4b70aed40990b7aac0550f62aee3
|
|
| BLAKE2b-256 |
6ffaaca73ee75a0019ba58cde1b2dbd26f5088911a9ef9ec436d9f91a737029e
|
File details
Details for the file infokannegara-0.0.1-py3-none-any.whl.
File metadata
- Download URL: infokannegara-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b48b71001b0dd4d8ba81327e0c8bac0dc4972356d977025734da03f3aabf6cc
|
|
| MD5 |
881f50e531414b4422b65b73c8acd1f7
|
|
| BLAKE2b-256 |
aafc1a4a9c60cabd2585da2d09b76c35577ab7126d1a506cb0e7bcbb5dd7e50e
|