Skip to main content

A Python library for extracting language and timezone based on country code.

Project description

LangTimezone

LangTimezone is a Python library to extract language and timezone based on country code.

Installation

You can install this package using pip:

pip install langtimezone

#How to Use Here's a simple example of how to use the LanguageTimezoneExtractor class to get the language and timezone based on a country code:

from langtimezone import LanguageTimezoneExtractor

# Create an instance of the extractor
extractor = LanguageTimezoneExtractor()

# Get language and timezone for a given country code
result = extractor.get_language_and_timezone(98)  # 98 is the country code for Iran

# Print the results
print(f"Language Code: {result['lang_code']}")
print(f"System Language Code: {result['system_lang_code']}")
print(f"Timezone: {result['timezone']}")

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

langtimezone-0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

langtimezone-0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file langtimezone-0.1.tar.gz.

File metadata

  • Download URL: langtimezone-0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for langtimezone-0.1.tar.gz
Algorithm Hash digest
SHA256 5ee527c920bd5328a68638ac59a6a462af8badc729b8d73f962121d0ba1759dd
MD5 7ecb505b6bcf2e3790b146e51320b037
BLAKE2b-256 953a930ddaf64bc87d9bea0ac15eb7f213fbae44a4ab8f03794fdcda40c1b923

See more details on using hashes here.

File details

Details for the file langtimezone-0.1-py3-none-any.whl.

File metadata

  • Download URL: langtimezone-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for langtimezone-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c66d20c914cf30473195f5a134a6b8c33804c348863bd9d337a8166dcaecb2d7
MD5 f2d40440813951b7dd1eee4300971298
BLAKE2b-256 13e369d71a024a7964523cb3c41b9630e6ac2ee1b12989def257470384ad9da8

See more details on using hashes here.

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