Skip to main content

Library buat kasi informasi singkat negara.

Project description

Info Negara

Library Info Negara adalah modul Python yang dirancang untuk berinteraksi dengan REST Countries API. Modul ini menyediakan antarmuka sederhana melalui class libraryNegara untuk mendapatkan informasi penting tentang suatu negara. Dengan memanfaatkan modul requests, library ini mempermudah akses informasi seperti nama negara, ibu kota, mata uang, dan populasi, sehingga memudahkan pengembang untuk mengintegrasikannya ke dalam aplikasi mereka.

API

Python Basic API wrapper

  https://restcountries.com/v2/

Installation

Install my-project with npm

  pip install infonegara

Usage

Basic Usage:

from info_negara import libraryNegara

library_negara = libraryNegara()

nama_negara = input("Masukkan nama negara dengan bahasa inggris: ")
info_negara = library_negara.get_info_negara(nama_negara)

if info_negara:
    print("\nInformasi Negara")
    print(f"Nama Negara: {info_negara.nama}")
    print(f"Ibu Kota: {info_negara.ibukota}")
    print(f"Mata Uang: {info_negara.matauang}")
    print(f"Jumlah Penduduk: {info_negara.populasi}")
    print("")
else:
    print(f"Negara '{nama_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

infonegara-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

infonegara-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file infonegara-0.0.1.tar.gz.

File metadata

  • Download URL: infonegara-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for infonegara-0.0.1.tar.gz
Algorithm Hash digest
SHA256 49a3b108783cb5ebcb8dd9d76ccf32b614534f5ac7f6f53394fd788936aed856
MD5 7fc92306a89253d7d61674016bdac0a5
BLAKE2b-256 4a8ee794dafe3c5d686cc5aaa1998adaccf683ffae93ccb84159bed6053938ad

See more details on using hashes here.

File details

Details for the file infonegara-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: infonegara-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for infonegara-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 edc731bfa8998a9ba0eeaed32af0428885c19e021ae175e5b340bb8632afaeeb
MD5 1f41d9e6fb29350e0072f66e78a0c6ff
BLAKE2b-256 f2f35d8aa8e47f4d12aea30e9607c53d8065318c77bf696f57fb52b701400c9a

See more details on using hashes here.

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