Skip to main content

A Python package for Lebanon.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

pylebanon

A Python package for ... Lebanon. And yes I had nothing better to do.

from pylebanon import Lebanon
lb = Lebanon()
Habibi welcome to Lebanon 🇱🇧
import random 

print("Flag:", lb.get_flag())
print("Names:", lb.get_names())
print("Capital:", lb.get_capital())
print("Area:", lb.get_area())
print("Location:", lb.get_location())
print("Timezone:", lb.get_timezone())
governorates =  lb.get_governorates()
print("Governorates:", governorates)
idx = random.randint(0, len(governorates)-1)
print(f"Cities in {governorates[idx]}:", lb.get_governorate_cities(governorates[idx]))
print("Phone codes:", lb.get_phone_code())
print("Currency:", lb.get_currency())
print("Languages:", lb.get_languages())
print("Wiki:", lb.get_wiki())
Flag: 🇱🇧
Names: ['LB', 'Lebanese Republic', 'Al-Jumhūrīyah Al-Libnānīyah', 'Lebanon', 'لبنان', 'Líbano', 'Liban', 'レバノン', 'Libano']
Capital: Beirut
Area: 10452
Location: Middle East
Timezone: UTC+02:00
Governorates: ['Akkar Governorate', 'Baalbek-Hermel Governorate', 'Beirut Governorate', 'Beqaa Governorate', 'Mount Lebanon Governorate', 'Nabatieh Governorate', 'North Governorate', 'South Governorate']
Cities in Mount Lebanon Governorate: ['Baabda', 'Bhamdoun', 'Bhamdoûn el Mhatta', 'Caza de Baabda', 'Jbaïl', 'Jounieh']
Phone codes: +961
Currency: LBP
Languages: ['Arabic', 'Armenian', 'French']
Wiki: http://en.wikipedia.org/wiki/lebanon

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

pylebanon-0.1.7.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylebanon-0.1.7-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file pylebanon-0.1.7.tar.gz.

File metadata

  • Download URL: pylebanon-0.1.7.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pylebanon-0.1.7.tar.gz
Algorithm Hash digest
SHA256 3a08189d605afa4d4a2409b94c3d6a5b83e64da6923ff9e271855cc059c81fea
MD5 4dd9f743678d8b3a65110317791f7be5
BLAKE2b-256 1c5a9557452be7a4c77e6a0588980021e01dd807864129fd91ad1b69cb96fd27

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylebanon-0.1.7.tar.gz:

Publisher: python-publish.yml on MohammadElSakka/pylebanon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pylebanon-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: pylebanon-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pylebanon-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a495011de8797f9c68d04f7226cbfbb087f00ec7845cf8507c6056ddb4ff2c6b
MD5 af0720dee97ba36f9ab82d030ab2e325
BLAKE2b-256 731aadd6f0d3ad9c6dcdcf181d5e75393da0fb61066ede38f16b1d0276990aaa

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylebanon-0.1.7-py3-none-any.whl:

Publisher: python-publish.yml on MohammadElSakka/pylebanon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page