chileanrutify


Namechileanrutify JSON
Version 0.2.0 PyPI version JSON
download
home_page
SummaryChilean rut Python package - Chilean Rut/Run validator and formatter library
upload_time2024-03-01 15:57:01
maintainer
docs_urlNone
authormihailpozarski
requires_python>=3.0
licenseMIT License
keywords python library package chile chilean rut chilean-rut chilean-rut-utils chilean-rutify chilean-id
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Chilean Rutify

Chilean Rutify is a Python library that provides utilities for Chilean RUT (Rol Único Tributario) validation and manipulation.

## Installation

You can install Chilean Rutify via pip:

```bash
pip install chileanrutify
```

## Usage

You can directly use the utility methods provided by the library:

```python
from chileanrutify import normalize_rut, format_rut, valid_rut, valid_rut_verifier, valid_rut_values, get_verifier, dash_only_rut, classic_rut

# Example RUT: '36.408.368-8'
rut = '36408368-8'
chileanrutify.normalize_rut(rut)
# >>> "364083688"
chileanrutify.format_rut(rut)  # alias for chileanrutify.classic_rut(rut)
# >>> "36.408.368-8"
chileanrutify.format_rut(rut, 'dash_only')  # alias for chileanrutify.dash_only_rut(rut)
# >>> "36408368-8"
chileanrutify.format_rut(rut, 'normalized')  # alias for chileanrutify.normalize_rut(rut)
# >>> "364083688"
chileanrutify.valid_rut(rut)
# >>> True
chileanrutify.valid_rut_verifier(rut)
# >>> True
chileanrutify.valid_rut_values(rut)
# >>> True
rut = "36408368"
chileanrutify.get_verifier(rut)
# >>> "8"
```

# Development

After cloning the repository, set up your environment and run tests:

```bash
pip install -r requirements.txt
pytest
```

To install the library locally:

```bash
pip install .
```

To test the library in interactive Python prompt user:
```
python
```

# Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mihailpozarski/chilean-rutify-py. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/mihailpozarski/chilean-rutify-py/blob/master/CODE_OF_CONDUCT.md).

# License

The library is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

# Code of Conduct

Everyone interacting in the Chilean::Rutify project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mihailpozarski/chilean-rutify-py/blob/master/CODE_OF_CONDUCT.md).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "chileanrutify",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.0",
    "maintainer_email": "Mihail Pozarski <mihailpozarski@outlook.com>",
    "keywords": "python,library,package,chile,chilean,rut,chilean-rut,chilean-rut-utils,chilean-rutify,chilean-id",
    "author": "mihailpozarski",
    "author_email": "Mihail Pozarski <mihailpozarski@outlook.com>",
    "download_url": "https://files.pythonhosted.org/packages/1c/97/5c151b8a221edf32d687f4fe5bde4227f4849f3d6439d912dbcb2b836011/chileanrutify-0.2.0.tar.gz",
    "platform": null,
    "description": "# Chilean Rutify\n\nChilean Rutify is a Python library that provides utilities for Chilean RUT (Rol \u00danico Tributario) validation and manipulation.\n\n## Installation\n\nYou can install Chilean Rutify via pip:\n\n```bash\npip install chileanrutify\n```\n\n## Usage\n\nYou can directly use the utility methods provided by the library:\n\n```python\nfrom chileanrutify import normalize_rut, format_rut, valid_rut, valid_rut_verifier, valid_rut_values, get_verifier, dash_only_rut, classic_rut\n\n# Example RUT: '36.408.368-8'\nrut = '36408368-8'\nchileanrutify.normalize_rut(rut)\n# >>> \"364083688\"\nchileanrutify.format_rut(rut)  # alias for chileanrutify.classic_rut(rut)\n# >>> \"36.408.368-8\"\nchileanrutify.format_rut(rut, 'dash_only')  # alias for chileanrutify.dash_only_rut(rut)\n# >>> \"36408368-8\"\nchileanrutify.format_rut(rut, 'normalized')  # alias for chileanrutify.normalize_rut(rut)\n# >>> \"364083688\"\nchileanrutify.valid_rut(rut)\n# >>> True\nchileanrutify.valid_rut_verifier(rut)\n# >>> True\nchileanrutify.valid_rut_values(rut)\n# >>> True\nrut = \"36408368\"\nchileanrutify.get_verifier(rut)\n# >>> \"8\"\n```\n\n# Development\n\nAfter cloning the repository, set up your environment and run tests:\n\n```bash\npip install -r requirements.txt\npytest\n```\n\nTo install the library locally:\n\n```bash\npip install .\n```\n\nTo test the library in interactive Python prompt user:\n```\npython\n```\n\n# Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/mihailpozarski/chilean-rutify-py. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/mihailpozarski/chilean-rutify-py/blob/master/CODE_OF_CONDUCT.md).\n\n# License\n\nThe library is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n# Code of Conduct\n\nEveryone interacting in the Chilean::Rutify project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mihailpozarski/chilean-rutify-py/blob/master/CODE_OF_CONDUCT.md).\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Chilean rut Python package - Chilean Rut/Run validator and formatter library",
    "version": "0.2.0",
    "project_urls": {
        "Repository": "https://github.com/mihailpozarski/chilean-rutify-py"
    },
    "split_keywords": [
        "python",
        "library",
        "package",
        "chile",
        "chilean",
        "rut",
        "chilean-rut",
        "chilean-rut-utils",
        "chilean-rutify",
        "chilean-id"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "88bc7327853c2ac5c8bc03273612b5b291c7f3bce59dbd7ad858e5d8ec467b64",
                "md5": "97c1dfa28daf423fb40b6ab2d8626846",
                "sha256": "4520619a93f21d12f5153285d7e8b1335882ffe02428f9507a8ea6260dc68357"
            },
            "downloads": -1,
            "filename": "chileanrutify-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "97c1dfa28daf423fb40b6ab2d8626846",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0",
            "size": 4758,
            "upload_time": "2024-03-01T15:57:00",
            "upload_time_iso_8601": "2024-03-01T15:57:00.134994Z",
            "url": "https://files.pythonhosted.org/packages/88/bc/7327853c2ac5c8bc03273612b5b291c7f3bce59dbd7ad858e5d8ec467b64/chileanrutify-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1c975c151b8a221edf32d687f4fe5bde4227f4849f3d6439d912dbcb2b836011",
                "md5": "76b235f0a71617f3b743b8c3cdbfa7d3",
                "sha256": "0e76ffbeca4625c5886471ba79e255af63d9f67f1f1ff53ed5ab6797169e7372"
            },
            "downloads": -1,
            "filename": "chileanrutify-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "76b235f0a71617f3b743b8c3cdbfa7d3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.0",
            "size": 4425,
            "upload_time": "2024-03-01T15:57:01",
            "upload_time_iso_8601": "2024-03-01T15:57:01.886083Z",
            "url": "https://files.pythonhosted.org/packages/1c/97/5c151b8a221edf32d687f4fe5bde4227f4849f3d6439d912dbcb2b836011/chileanrutify-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-01 15:57:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mihailpozarski",
    "github_project": "chilean-rutify-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "chileanrutify"
}
        
Elapsed time: 0.68470s