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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langtimezone-0.1.2-py3-none-any.whl.
File metadata
- Download URL: langtimezone-0.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f91f30dbd2b4eedfe5458f3bf76aa27792fdd1dfaae8790f8fb9e64373500421
|
|
| MD5 |
e9fcfec5e01ce34fe288c85834bd1498
|
|
| BLAKE2b-256 |
b6bcc6e980b4b65c1a297939a92608e8a0f4d788bd79a521d47b4113c7d4ef67
|