Skip to main content

Extends phx-filters, adding filters for interpreting ISO codes.

Project description

https://github.com/todofixthis/filters-iso/actions/workflows/build.yml/badge.svg https://readthedocs.org/projects/filters/badge/?version=latest

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.14

  • 3.13

  • 3.12

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]

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

Maintainers

To set up a local development environment:

  1. Install uv (once per machine).

  2. Install dependencies:

    uv sync
  3. Activate pre-commit hooks:

    uv run autohooks activate --mode=pythonpath

Run tests for all supported Python versions using tox:

uv run tox -p

To run tests in the current virtualenv:

uv run 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

1. One-time setup

Create a PyPI API token if you don’t have one, then install keyring as a global tool and store the token:

uv tool install keyring
uv tool update-shell
keyring set https://upload.pypi.org/legacy/ __token__

Paste your pypi-... token when prompted.

2. Publish to PyPI

  1. Bump the version (updates pyproject.toml and uv.lock):

    uv version <version>
  2. Commit the changes:

    git add pyproject.toml uv.lock
    git commit
  3. Publish to PyPI:

    uv publish --username __token__

3. Create GitHub Release

  1. Create an annotated tag and push to GitHub:

    git tag -a <version> -m "Release <version>"
    git push origin <version>

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

  2. Go to the Releases page for the repo.

  3. Click Draft a new release.

  4. Select the tag that you created in step 1.

  5. Specify the title of the release (e.g., ISO Filters v1.2.3).

  6. 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.

  7. GPG-sign the description for the release (ASCII-armoured).

  8. Attach the build artefacts to the release.

  9. Click Publish release.

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

phx_filters_iso-3.2.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phx_filters_iso-3.2.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file phx_filters_iso-3.2.0.tar.gz.

File metadata

  • Download URL: phx_filters_iso-3.2.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for phx_filters_iso-3.2.0.tar.gz
Algorithm Hash digest
SHA256 716ceb3f88f07e81191377c567cf00bf208be3c55191e2e5cf7d71ba9dd81947
MD5 f1ca990cdcdb9903d11baf3e1e662acf
BLAKE2b-256 fddc02e6689928437565c849711ad22a3f9283d1ed05d25bdfe50778fac53c05

See more details on using hashes here.

File details

Details for the file phx_filters_iso-3.2.0-py3-none-any.whl.

File metadata

  • Download URL: phx_filters_iso-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for phx_filters_iso-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96d07670d545639a63c3695d80a3ce77181f9d69a89432bb29424f486c3f1e84
MD5 1889e4074af1b4e5fdac7e9206e1e8fc
BLAKE2b-256 628277f4d909c7e4f48c027506b60826ae60151ee311b3a2c936a244e3d9c82c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page