phx-filters-iso


Namephx-filters-iso JSON
Version 3.1.0 PyPI version JSON
download
home_page
SummaryExtends phx-filters, adding filters for interpreting ISO codes.
upload_time2023-10-06 03:06:43
maintainer
docs_urlNone
author
requires_python>=3.10
licenseMIT License Copyright (c) 2016 EFL Global Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords bcp 47 data validation i18n ietf language tags internationalisation internationalization iso iso-3166 iso-4217 l10n localisation localization standards
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://github.com/todofixthis/filters-iso/actions/workflows/build.yml/badge.svg
   :target: https://github.com/todofixthis/filters-iso/actions/workflows/build.yml
.. image:: https://readthedocs.org/projects/filters/badge/?version=latest
   :target: https://filters.readthedocs.io/en/latest/extension_filters.html#iso-filters

ISO Filters
===========
Adds `filters`_ for interpreting standard codes and identifiers, including:

- ISO 3166-1 alpha-2 and alpha-3 country codes.
- ISO 4217 currency codes.
- IETF Language Tags (aka BCP 47).

Requirements
------------
ISO Filters is known to be compatible with the following Python versions:

- 3.12
- 3.11
- 3.10

.. note::
   I'm only one person, so to keep from getting overwhelmed, I'm only committing
   to supporting the 3 most recent versions of Python.  ISO Filters may work in
   versions not listed here — there just won't be any test coverage to prove it
   😇

Installation
------------
This package is an extension for the `Filters library`_, so you can install it
as an extra to ``phx-filters``::

   pip install phx-filters[iso]

.. important::
   Make sure to install `phx-filters`, **not** `filters`.  I created the latter
   at a previous job years ago, and after I left they never touched that project
   again and stopped responding to my emails — so in the end I had to fork it 🤷

If desired, you can install this package separately.  This allows you to control
the package version separately from ``phx-filters``::

   pip install phx-filters-iso

Running Unit Tests
------------------
Install the package with the ``test-runner`` extra to set up the necessary
dependencies, and then you can run the tests with the ``tox`` command::

   pip install -e .[test-runner]
   tox -p

To run tests in the current virtualenv::

   python -m unittest

Documentation
-------------
Documentation is available on `ReadTheDocs`_.

Source files for this project's documentation can be found in the
`phx-filters repo`_.

Releases
--------
Steps to build releases are based on `Packaging Python Projects Tutorial`_

.. important::

   Make sure to build releases off of the ``main`` branch, and check that all
   changes from ``develop`` have been merged before creating the release!

1. Build the Project
~~~~~~~~~~~~~~~~~~~~
#. Install extra dependencies (you only have to do this once)::

    pip install -e '.[build-system]'

#. Delete artefacts from previous builds, if applicable::

    rm dist/*

#. Run the build::

    python -m build

#. The build artefacts will be located in the ``dist`` directory at the top
   level of the project.

2. Upload to PyPI
~~~~~~~~~~~~~~~~~
#. `Create a PyPI API token`_ (you only have to do this once).
#. Increment the version number in ``pyproject.toml``.
#. Check that the build artefacts are valid, and fix any errors that it finds::

    python -m twine check dist/*

#. Upload build artefacts to PyPI::

    python -m twine upload dist/*


3. Create GitHub Release
~~~~~~~~~~~~~~~~~~~~~~~~
#. Create a tag and push to GitHub::

    git tag <version>
    git push

   ``<version>`` must match the updated version number in ``pyproject.toml``.

#. Go to the `Releases page for the repo`_.
#. Click ``Draft a new release``.
#. Select the tag that you created in step 1.
#. Specify the title of the release (e.g., ``ISO Filters v1.2.3``).
#. Write a description for the release.  Make sure to include:
   - Credit for code contributed by community members.
   - Significant functionality that was added/changed/removed.
   - Any backwards-incompatible changes and/or migration instructions.
   - SHA256 hashes of the build artefacts.
#. GPG-sign the description for the release (ASCII-armoured).
#. Attach the build artefacts to the release.
#. Click ``Publish release``.

.. _Create a PyPI API token: https://pypi.org/manage/account/token/
.. _filters: https://filters.readthedocs.io/
.. _Filters library: https://pypi.python.org/pypi/filters
.. _Packaging Python Projects Tutorial: https://packaging.python.org/en/latest/tutorials/packaging-projects/
.. _phx-filters repo: https://github.com/todofixthis/filters/blob/develop/docs/extension_filters.rst
.. _ReadTheDocs: https://filters.readthedocs.io/en/latest/extension_filters.html#iso-filters
.. _Releases page for the repo: https://github.com/todofixthis/filters-iso/releases

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "phx-filters-iso",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "bcp 47,data validation,i18n,ietf language tags,internationalisation,internationalization,iso,iso-3166,iso-4217,l10n,localisation,localization,standards",
    "author": "",
    "author_email": "Phoenix Zerin <phx@phx.nz>",
    "download_url": "https://files.pythonhosted.org/packages/a0/8c/a916f1ad2e4c907e4a602b8eec365e6c575cff88292ab36516646fd206d5/phx-filters-iso-3.1.0.tar.gz",
    "platform": null,
    "description": ".. image:: https://github.com/todofixthis/filters-iso/actions/workflows/build.yml/badge.svg\n   :target: https://github.com/todofixthis/filters-iso/actions/workflows/build.yml\n.. image:: https://readthedocs.org/projects/filters/badge/?version=latest\n   :target: https://filters.readthedocs.io/en/latest/extension_filters.html#iso-filters\n\nISO Filters\n===========\nAdds `filters`_ for interpreting standard codes and identifiers, including:\n\n- ISO 3166-1 alpha-2 and alpha-3 country codes.\n- ISO 4217 currency codes.\n- IETF Language Tags (aka BCP 47).\n\nRequirements\n------------\nISO Filters is known to be compatible with the following Python versions:\n\n- 3.12\n- 3.11\n- 3.10\n\n.. note::\n   I'm only one person, so to keep from getting overwhelmed, I'm only committing\n   to supporting the 3 most recent versions of Python.  ISO Filters may work in\n   versions not listed here \u2014 there just won't be any test coverage to prove it\n   \ud83d\ude07\n\nInstallation\n------------\nThis package is an extension for the `Filters library`_, so you can install it\nas an extra to ``phx-filters``::\n\n   pip install phx-filters[iso]\n\n.. important::\n   Make sure to install `phx-filters`, **not** `filters`.  I created the latter\n   at a previous job years ago, and after I left they never touched that project\n   again and stopped responding to my emails \u2014 so in the end I had to fork it \ud83e\udd37\n\nIf desired, you can install this package separately.  This allows you to control\nthe package version separately from ``phx-filters``::\n\n   pip install phx-filters-iso\n\nRunning Unit Tests\n------------------\nInstall the package with the ``test-runner`` extra to set up the necessary\ndependencies, and then you can run the tests with the ``tox`` command::\n\n   pip install -e .[test-runner]\n   tox -p\n\nTo run tests in the current virtualenv::\n\n   python -m unittest\n\nDocumentation\n-------------\nDocumentation is available on `ReadTheDocs`_.\n\nSource files for this project's documentation can be found in the\n`phx-filters repo`_.\n\nReleases\n--------\nSteps to build releases are based on `Packaging Python Projects Tutorial`_\n\n.. important::\n\n   Make sure to build releases off of the ``main`` branch, and check that all\n   changes from ``develop`` have been merged before creating the release!\n\n1. Build the Project\n~~~~~~~~~~~~~~~~~~~~\n#. Install extra dependencies (you only have to do this once)::\n\n    pip install -e '.[build-system]'\n\n#. Delete artefacts from previous builds, if applicable::\n\n    rm dist/*\n\n#. Run the build::\n\n    python -m build\n\n#. The build artefacts will be located in the ``dist`` directory at the top\n   level of the project.\n\n2. Upload to PyPI\n~~~~~~~~~~~~~~~~~\n#. `Create a PyPI API token`_ (you only have to do this once).\n#. Increment the version number in ``pyproject.toml``.\n#. Check that the build artefacts are valid, and fix any errors that it finds::\n\n    python -m twine check dist/*\n\n#. Upload build artefacts to PyPI::\n\n    python -m twine upload dist/*\n\n\n3. Create GitHub Release\n~~~~~~~~~~~~~~~~~~~~~~~~\n#. Create a tag and push to GitHub::\n\n    git tag <version>\n    git push\n\n   ``<version>`` must match the updated version number in ``pyproject.toml``.\n\n#. Go to the `Releases page for the repo`_.\n#. Click ``Draft a new release``.\n#. Select the tag that you created in step 1.\n#. Specify the title of the release (e.g., ``ISO Filters v1.2.3``).\n#. Write a description for the release.  Make sure to include:\n   - Credit for code contributed by community members.\n   - Significant functionality that was added/changed/removed.\n   - Any backwards-incompatible changes and/or migration instructions.\n   - SHA256 hashes of the build artefacts.\n#. GPG-sign the description for the release (ASCII-armoured).\n#. Attach the build artefacts to the release.\n#. Click ``Publish release``.\n\n.. _Create a PyPI API token: https://pypi.org/manage/account/token/\n.. _filters: https://filters.readthedocs.io/\n.. _Filters library: https://pypi.python.org/pypi/filters\n.. _Packaging Python Projects Tutorial: https://packaging.python.org/en/latest/tutorials/packaging-projects/\n.. _phx-filters repo: https://github.com/todofixthis/filters/blob/develop/docs/extension_filters.rst\n.. _ReadTheDocs: https://filters.readthedocs.io/en/latest/extension_filters.html#iso-filters\n.. _Releases page for the repo: https://github.com/todofixthis/filters-iso/releases\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2016 EFL Global  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Extends phx-filters, adding filters for interpreting ISO codes.",
    "version": "3.1.0",
    "project_urls": {
        "Changelog": "https://github.com/todofixthis/filters-iso/releases",
        "Documentation": "https://filters.readthedocs.io/en/latest/extension_filters.html#iso-filters",
        "Issues": "https://github.com/todofixthis/filters-iso/issues",
        "Repository": "https://github.com/todofixthis/filters-iso"
    },
    "split_keywords": [
        "bcp 47",
        "data validation",
        "i18n",
        "ietf language tags",
        "internationalisation",
        "internationalization",
        "iso",
        "iso-3166",
        "iso-4217",
        "l10n",
        "localisation",
        "localization",
        "standards"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "73781d0f31f537dbe68c1f6ce0970376903c5173f2ea7dc5fcfc3df350b7ea2e",
                "md5": "2acb6b5fca0a3b015ec9edebb1fca39e",
                "sha256": "dc4d022901d7d788499b217d2a65e8b01faedfb5bd6988f053ca8f1e312e8d67"
            },
            "downloads": -1,
            "filename": "phx_filters_iso-3.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2acb6b5fca0a3b015ec9edebb1fca39e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 6258,
            "upload_time": "2023-10-06T03:06:41",
            "upload_time_iso_8601": "2023-10-06T03:06:41.158357Z",
            "url": "https://files.pythonhosted.org/packages/73/78/1d0f31f537dbe68c1f6ce0970376903c5173f2ea7dc5fcfc3df350b7ea2e/phx_filters_iso-3.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a08ca916f1ad2e4c907e4a602b8eec365e6c575cff88292ab36516646fd206d5",
                "md5": "615bd73135ebb4c57e25428f114f76b1",
                "sha256": "31c1531a53a8fdfcf8ae8f183da7c6ec479e0aa42c7695184112a05f4d7f9508"
            },
            "downloads": -1,
            "filename": "phx-filters-iso-3.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "615bd73135ebb4c57e25428f114f76b1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 7752,
            "upload_time": "2023-10-06T03:06:43",
            "upload_time_iso_8601": "2023-10-06T03:06:43.125015Z",
            "url": "https://files.pythonhosted.org/packages/a0/8c/a916f1ad2e4c907e4a602b8eec365e6c575cff88292ab36516646fd206d5/phx-filters-iso-3.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-06 03:06:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "todofixthis",
    "github_project": "filters-iso",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "phx-filters-iso"
}
        
Elapsed time: 0.11940s