Socket
Book a DemoInstallSign in
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
pipPyPI
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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.