New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

infokannegara

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infokannegara

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

0.0.1
PyPI
Maintainers
1

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

Keywords

info

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts