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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

langtimezone-0.1.2a0-py3-none-any.whl (68.5 kB view details)

Uploaded Python 3

File details

Details for the file langtimezone-0.1.2a0-py3-none-any.whl.

File metadata

  • Download URL: langtimezone-0.1.2a0-py3-none-any.whl
  • Upload date:
  • Size: 68.5 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.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 945869fff1f86366e762b30d51ef335a1ffe96d03db09c7be76d0fe5c7367a94
MD5 2c1700a00546143d71fdc72afcaf2f36
BLAKE2b-256 05bee76f4971aa5b73b18e12ede431bfd09aabe7c9621cd81dfe15fe21a1552a

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