locale-customise


Namelocale-customise JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-12-17 11:13:19
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # locale-customise

[![PyPI version](https://badge.fury.io/py/locale-customise.svg)](https://badge.fury.io/py/locale-customise)

`locale-customise` is a Python package that allows developers to easily customize and manage locale-specific settings, including date, time, currency, and number formatting. It provides a simple API to tailor locale settings for different regions, making it ideal for internationalization (i18n) projects.

## Features

- **Flexible Locale Configuration**: Easily configure locale formats for dates, numbers, and currencies.
- **Multi-Region Support**: Supports multiple locales for global applications.
- **Customizable Options**: Override default locale settings with custom formats.
- **Lightweight**: Minimal dependencies and fast performance.

## Installation

Install `locale-customise` using pip:

```bash
pip install locale-customise
```

## Usage

Here's a basic example to get started:

```python
from locale_customise import LocaleCustomiser

# Initialize LocaleCustomiser with a locale
customiser = LocaleCustomiser("en_US")

# Format a number
formatted_number = customiser.format_number(1234567.89)
print(formatted_number)  # Outputs: 1,234,567.89

# Format a date
formatted_date = customiser.format_date("2024-08-01")
print(formatted_date)  # Outputs: Aug 1, 2024

# Change to a different locale
customiser.set_locale("fr_FR")
formatted_number = customiser.format_number(1234567.89)
print(formatted_number)  # Outputs: 1 234 567,89
```

## Contributing

Contributions are welcome! To contribute:

1. Fork the repository.
2. Create a new branch for your feature: `git checkout -b feature-name`.
3. Commit your changes: `git commit -m 'Add some feature'`.
4. Push to the branch: `git push origin feature-name`.
5. Open a pull request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Contact

If you have any questions or feedback, feel free to reach out to [Your Email or GitHub Profile].

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "locale-customise",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "None",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/c3/0a/48d96cee72a55b4399cb18a8efa6e26d521d6283d91e9ccd4e8abff8ccfd/locale_customise-1.0.0.tar.gz",
    "platform": null,
    "description": "# locale-customise\n\n[![PyPI version](https://badge.fury.io/py/locale-customise.svg)](https://badge.fury.io/py/locale-customise)\n\n`locale-customise` is a Python package that allows developers to easily customize and manage locale-specific settings, including date, time, currency, and number formatting. It provides a simple API to tailor locale settings for different regions, making it ideal for internationalization (i18n) projects.\n\n## Features\n\n- **Flexible Locale Configuration**: Easily configure locale formats for dates, numbers, and currencies.\n- **Multi-Region Support**: Supports multiple locales for global applications.\n- **Customizable Options**: Override default locale settings with custom formats.\n- **Lightweight**: Minimal dependencies and fast performance.\n\n## Installation\n\nInstall `locale-customise` using pip:\n\n```bash\npip install locale-customise\n```\n\n## Usage\n\nHere's a basic example to get started:\n\n```python\nfrom locale_customise import LocaleCustomiser\n\n# Initialize LocaleCustomiser with a locale\ncustomiser = LocaleCustomiser(\"en_US\")\n\n# Format a number\nformatted_number = customiser.format_number(1234567.89)\nprint(formatted_number)  # Outputs: 1,234,567.89\n\n# Format a date\nformatted_date = customiser.format_date(\"2024-08-01\")\nprint(formatted_date)  # Outputs: Aug 1, 2024\n\n# Change to a different locale\ncustomiser.set_locale(\"fr_FR\")\nformatted_number = customiser.format_number(1234567.89)\nprint(formatted_number)  # Outputs: 1\u202f234\u202f567,89\n```\n\n## Contributing\n\nContributions are welcome! To contribute:\n\n1. Fork the repository.\n2. Create a new branch for your feature: `git checkout -b feature-name`.\n3. Commit your changes: `git commit -m 'Add some feature'`.\n4. Push to the branch: `git push origin feature-name`.\n5. Open a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nIf you have any questions or feedback, feel free to reach out to [Your Email or GitHub Profile].\n",
    "bugtrack_url": null,
    "license": "GPL-3",
    "summary": null,
    "version": "1.0.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c30a48d96cee72a55b4399cb18a8efa6e26d521d6283d91e9ccd4e8abff8ccfd",
                "md5": "ff5f4744c2a91a8313cbe78d0d98fdc2",
                "sha256": "8a3cff03ec649eae6341f2613f33750427d2742a8c6f5e4e24cf3d9a7bf8e3a1"
            },
            "downloads": -1,
            "filename": "locale_customise-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ff5f4744c2a91a8313cbe78d0d98fdc2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 107445,
            "upload_time": "2024-12-17T11:13:19",
            "upload_time_iso_8601": "2024-12-17T11:13:19.992097Z",
            "url": "https://files.pythonhosted.org/packages/c3/0a/48d96cee72a55b4399cb18a8efa6e26d521d6283d91e9ccd4e8abff8ccfd/locale_customise-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-17 11:13:19",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "locale-customise"
}
        
Elapsed time: 0.42974s