Skip to main content

A Python module to detect and format system localization information.

Project description

localemembers Module Documentation

Welcome to the documentation for the localemembers module. This Python module is designed to detect and format system localization information using the locale module. It also provides an elegant and sleek graphical interface to display this information to the user.

Table of Contents

Installation

You can install the localemembers module using pip:

pip install localemembers

For a local installation, you can clone the GitHub repository and install the module in development mode:

git clone https://github.com/yourusername/localemembers.git
cd localemembers
pip install -e .

Usage

Here is an example of how to use the localemembers module to obtain and display system localization information:

import localemembers

# To run the main function
localemembers.main()

# To run the graphical interface
localemembers.gui_main()

Features

The localemembers module provides the following features:

  • Detection and formatting of localization information:
    • system_locale: System locale.
    • locale_encoding: Locale encoding.
    • friendly_language: Locale language.
    • locale_country: Locale country.
    • language_code: Language code.
    • country_code: Country code.
    • formatted_language_code: Formatted language code.
    • currency_symbol: Currency symbol.
    • decimal_point: Decimal point.
    • thousands_separator: Thousands separator.
    • date_format: Date format.
    • time_format: Time format.
    • radix_char: Radix character.
    • thousands_sep: Thousands separator.
    • yes_expr: Regular expression for "yes".
    • no_expr: Regular expression for "no".
    • currency_str: Currency string.
    • era: Era.
    • era_d_t_fmt: Era-based date/time format.
    • era_d_fmt: Era-based date format.
    • era_t_fmt: Era-based time format.
    • alt_digits: Alternative digits.

Graphical Interface

The localemembers module includes an elegant and sleek graphical interface, created with PyQt5, to display localization information to the user. The graphical interface is maximized at startup and the components are dynamic.

Example of the Graphical Interface

import localemembers

# To run the graphical interface
localemembers.gui_main()

Contributing

Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.


With this comprehensive documentation, you are ready to use and contribute to the localemembers module. If you need further assistance or modifications, feel free to let me know! 😊

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

localemembers-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

localemembers-1.0.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file localemembers-1.0.0.tar.gz.

File metadata

  • Download URL: localemembers-1.0.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for localemembers-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d9bd4f85eef6392208ef8d91da3176e2777657cede880c7a948f5fae2300874c
MD5 92475266e878d21c520506489781f514
BLAKE2b-256 b45b95936455463c981241517eebe2590abff7b67be570f3ea57fa5887fc4282

See more details on using hashes here.

File details

Details for the file localemembers-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for localemembers-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76aa506d6c46b5ea529548adc8fa620cffca0fad777fb87b566bd7b937e6cc7a
MD5 14cffee1631256b01a492dbcda3e3409
BLAKE2b-256 b1242b531b14bf3412a1bfaf72eb1c4546a09a86ef78b2f9c90e607dc8179fc3

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