Up to [cvs.NetBSD.org] / pkgsrc / textproc / py-validators
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-validators: updated to 0.36.0
0.36.0 (2026-10-10)
_**Breaking**_
* Drops support for Python `v3.9` and `v3.10`. Python `v3.11` or newer is required.
* Stricter validation: the following inputs, previously accepted by mistake, are now rejected.
* `isin()` now verifies the check digit, which was previously ignored. Lowercase ISINs are still accepted.
* `cusip()` and `sedol()` require a numeric check digit.
* `md5()`, `sha1()`, `sha224()`, `sha256()`, `sha384()`, `sha512()`, `base16()`, `base32()`, `base58()` and `base64()` reject trailing characters, such as a trailing newline.
* `ind_pan()` requires a full-string match.
* `fr_ssn()` no longer accepts a comma as the gender or Corsica department character.
* `domain()` rejects an underscore in the last label
* `mastercard()` accepts only the 2221-2720 range of the 2-series BINs.
* `eth_address()` rejects non-hexadecimal characters.
* `mac_address()` rejects mixed separators.
* `slug()` rejects a trailing newline, and telnet URIs reject control characters.
_**Features**_
* feat(uri): add telnet URI validation per RFC 4248
* Accept `file://` URLs per RFC 8089
* cron: accept a step over a range (e.g. `1-5/2`) and in list items
* Accept lowercase IBANs in `iban()`
* fix(cron): accept day-of-week `7` as a Sunday alias
* Accept a trailing dot on simple hostnames with `rfc_1034`
* fix(crypto_addresses): accept testnet (`tb`) segwit addresses
py-validators: updated to 0.35.0
0.35.0 (2025-05-01)
Breaking
* Drops support for Python `v3.8`.
Features
* Validator russian individual tax number
* feat: allow custom URL scheme validation
* Refactor API: remove print from `ru_inn`, update description, and expose via `__init__`
* Add Mir card validation support
Maintenance
* Update README.md
* fix(domain): accept .onion as a valid TLD
* fix(url): add hashtag to allowed fragment characters
* chore(deps): bump jinja2 from 3.1.4 to 3.1.6 in /package
* Fix email regex issue 140
* fix(uri): replace `lstrip("mailto:")` with manual prefix removal
* running `doctest` failes
* Fix: Allow Special DOI Cases Used in Public Administration Tests
* chore: formatting; sync dependencies
* chore: prepare for new release
* chore: updates changelog
py-validators: updated to 0.34.0 0.34.0 (2024-09-03) _**Breaking**_ > No breaking changes were introduced in this version. _**Features**_ * feat: cache IANA TLDs for faster lookups _**Maintenance**_ * chore: update dependencies * docs: adds configuration info
py-validators: updated to 0.33.0 0.33.0 (2024-07-15) **Breaking** > No breaking changes were introduced in this version. **Features** - feat: adds validator for `bsc` addresses **Maintenance** - chore: bump version 0.32.0 (2024-07-10) **Breaking** > No breaking changes were introduced in this version. **Features** - feat: add validator for `sha384` hash **Maintenance** - maint: bump version 0.31.0 (2024-07-08) **Breaking** > No breaking changes were introduced in this version. **Features** - feat: add validators for `base16` and `base32` encodings
py-validators: updated to 0.30.0 0.30.0 (2024-07-04) Breaking > No breaking changes were introduced in this version. Features - feat: add validator for trx addresses
py-validators: updated to 0.29.0 0.29.0 (2024-07-01) Breaking - patch: moves `btc_address` to `crypto_addresses` Features - feat: add validator for eth addresses Maintenance - chore: update dev deps; adds python EOL info
py-validators: updated to 0.28.3 0.28.3 (2024-05-25) _**Maintenance**_ - hotfix: ensure `_tld.txt` is in `sdist` and `bdist`
py-validators: updated to 0.28.2 0.28.2 (2024-05-24) _**Breaking**_ > No breaking changes were introduced in this version. _**Features**_ > No features were introduced in this version. _**Maintenance**_ - fix: corrects a few typo - build(deps): bump jinja2 from 3.1.3 to 3.1.4 in /package - fix(ip_address): properly handle private is false - chore(url): allow symbols and pictographs in url - build(deps): bump requests from 2.31.0 to 2.32.0 in /package
py-validators: updated to 0.28.1 0.28.1 (2024-04-19) _**Breaking**_ > No breaking changes were introduced in this version. _**Features**_ > No features were introduced in this version. _**Maintenance**_ - fix: reduce memory footprint when loading TLDs - build(deps): bump idna from 3.6 to 3.7 in /package - fix: rfc cases in the `domain` validator - chore: documentation maintenance - chore: update contribution guidelines - chore: updated dev dependencies; bump version
py-validators: updated to 0.28.0 0.28.0 (2024-04-04) _**Breaking**_ ⚠️ - patch: moves `country_code` module to `country` module _**Features**_ - feat: adds indian aadhar and pan validator - feat: adds `finance` validator - feat: adds `consider_tld` parameter to `domain`, `hostname` and `url` modules _**Maintenance**_ - maint: updated dev dependencies, doc links; bump version 0.27.0 (2024-04-03) _**Breaking**_ ⚠️ - patch: moves `base58` and `base64` into `encoding` _**Features**_ - feat: lays foundation for URI validation - feat: adds `private` parameter to `ip_address`, `hostname` & `url` _**Maintenance**_ - patch: adds `encoding` tests and docs
py-validators: updated to 0.26.0 0.26.0 (2024-04-02) _**Breaking**_ > No breaking changes were introduced in this version. _**Features**_ - feat: adds `base58` and `base64` validators _**Maintenance**_ - fix: regex ignore-case uses only `a-z` - patch: supported extended latin in username 0.25.0 (2024-04-02) _**Breaking**_ > No breaking changes were introduced in this version. _**Features**_ - feat: adds basic `cron` validator _**Maintenance**_ - maint: adds quick start docs - fix: `domain` validation is now more consistent across rfcs
py-validators: updated to 0.24.0 0.24.0 (2024-03-24) _**Breaking**_ > No breaking changes were introduced in this version. _**Features**_ - feat: conditionally raises `ValidationError`; bump version _**Maintenance**_ - patch: `domain` & `url` modules - fix: domain name not confirming to rfc_2782 - maint: update dev dependencies; adds favicon to docs
py-validators: updated to 0.23.2 0.23.2 (2024-03-20) Maintenance maint: rectifies changelog fix: packaging as well as rST & md document generation 0.23.1 (2024-03-19) Maintenance maint: fix between & length validators fix: manual nav reference for mkdocs; bumps version 0.23.0 (2024-03-19) Features feat: add french i18n validation Maintenance fix: Valid URLs failing validation - query and fragment parts fix: bug in between module chore: update dependencies, improve packaging Fix fragment check build(deps): bump urllib3 from 2.0.6 to 2.0.7 in /package fix: allow pct-encoded entities in fragments chore: update dev dependencies build(deps): bump gitpython from 3.1.37 to 3.1.41 in /package build(deps): bump jinja2 from 3.1.2 to 3.1.3 in /package chore: monthly updates for Jan'24 maint: adds versiond docs; update copyright year chore: update dev dependencies build(deps): bump gitpython from 3.1.37 to 3.1.41 in /package build(deps): bump jinja2 from 3.1.2 to 3.1.3 in /package build(deps): bump urllib3 from 2.0.6 to 2.0.7 in /package
py-validators: updated to 0.22.0 0.22.0 What's Changed Breaking: API changes in validators.ipv4 and validators.ipv6 functions strict parameter now correctly validates IP addresses strictly in CIDR notation host_bit parameter distinguishes between network and host IP address fix: url validator considers urls with /#/ as valid Add note about ValidationFailure to ValidationError in changes.md fix: simple hostname validation regex fix: strict CIDR IP validation; bump version
py-validators: updated to 0.21.2 0.21.2 (2023-08-07) What's Changed feat: refactoring; updates; fixes; bump version build(deps): bump pymdown-extensions from 9.11 to 10.0 build(deps): bump requests from 2.28.2 to 2.31.0 add validator ETH addresses (ERC20) Added Country Code Validation build(deps-dev): bump certifi from 2022.12.7 to 2023.7.22 0.21.1 (2023-04-10) fix: source .venv/bin/activate before build fix: id-token write permission at job level feat: docs can be built with both sphinx & mkdocs fix: improves build process fix: removes 64-char limit for url path & query 0.21.0 (2023-03-25) feat: add build for pypi workflow feat: @validator now catches Exception maint: improves i18n package maint: misc changes to dev and ci maint: misc fixes and improvements maint: improves state of package development fix: generate dynamic reference docs maint: moving docs from .rst to .md maint: improves url module maint: improve domain, email & hostname maint: simplified hostname module maint: update email module feat: adds hostname validator maint: improves ip_address module fix: misc fixes, use bandit Create SECURITY.md maint: improves mac_address, slug and uuid maint: improve hashes and iban modules feat: auto docs using mkdocstrings maint: improves email module maint: minor improvements maint: improves domain module maint: reformats card module, fix typo feat: formats google pydoc style for mkdocstring maint: refresh btc_address module maint: improve type annotations maint: improves between and length modules maint: follows google's python style guide for docstrings feat: type hints in utils.py, gh-actions feat: add pyproject.toml, README.md, upd gitignore remove Travis CI settings
py-validators: updated to 0.20.0 0.20.0 (2022-06-05) - Added ipv4 digit lenghts validation - Fixes error with international URLs that have more than 2 hyphens 0.19.0 (2022-05-04) - Dropped py34 support - Improve IPv6 validation
textproc: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes Unfetchable distfiles (fetched conditionally?): ./textproc/convertlit/distinfo clit18src.zip
textproc: Remove SHA1 hashes for distfiles
py-validators: updated to 0.18.2 0.18.2: - Implement actual validation for old style BTC addresses including checksumming - Use a regex to guesstimate validity of new segwit BTC addresses
py-validators: updated to 0.18.1 0.18.1: - Made uuid validator accept UUID objects 0.18.0: - Added bitcoin address validator 0.17.1: - Fixed python_requires using twine 0.17.0: - Added python_requires='>=3.4' to setup.py - Fixed URL validator ip_last_octet regex 0.16.0: - Added support for emojis and more IDNA URLs 0.15.0: - Added bank card validators 0.14.3: - Handle None values gracefully in domain validator - Local part of the email address should be less or equal than 64 bytes - Removed py27 support - Removed pypy2 support 0.14.2: - Made domain validation case-insensitive
py-validators: updated to 0.14.1 0.14.1: - Updated domain validator regex to not allow numeric only TLDs - Allow for idna encoded domains
py-validators: updated to 0.14.0 0.14.0: - Added new validators ipv4_cidr, ipv6_cidr
py-validators: updated to 0.13.0 0.13.0: - Added new validator: es_doi, es_nif, es_cif, es_nie
py-validators: updated to 0.12.5 0.12.5: - Fixed py37 support
py-validators: updated to 0.12.4 0.12.4: - Use inspect.getfullargspec() in py3
py-validators: updated to 0.12.3 0.12.3: Added allow_temporal_ssn parameter to fi_ssn validator Remove py33 support
py-validators: updated to 0.12.2 0.12.2: Fixed IPv4 formatted IP address returning True on ipv6 Fixed IPv6 address parsing Fixed domain validator for international domains and certain edge cases 0.12.1: Fixed IDNA encoded TLDs in domain validator Fixed URL validator for URLs with invalid characters in userinfo part 0.12.0: Added hash validators for md5, sha1, sha224, sha256 and sha512 Made ipv6 validator support IPv4-mapped IPv6 addresses 0.11.3: Fixed URL validator for URLs containing localhost 0.11.2: Fixed URL validator for urls with query parameters but without path 0.11.1: Fixed pyp2rpm build problem 0.11.0: Fixed public url validation Made URL validator case insensitive Drop Python 2.6 support 0.10.3: Added public parameter to url validator 0.10.2: Fixed various URL validation issues 0.10.1: Fixed domain name validation for numeric domain names Fixed IBAN validation for Norwegian and Belgian IBANs 0.10.0: Added support for internationalized domain names in domain validator 0.9.0: Added new validator: domain Added flake8 and isort checks in travis config 0.8.0: Added new validator: iban
Add SHA512 digests for distfiles for textproc category Problems found locating distfiles: Package cabocha: missing distfile cabocha-0.68.tar.bz2 Package convertlit: missing distfile clit18src.zip Package php-enchant: missing distfile php-enchant/enchant-1.1.0.tgz Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail.
0.7.0 (2014-09-07) ^^^^^^^^^^^^^^^^^^ - Fixed errors in code examples. - Fixed ``TypeError`` when using ``between`` validator with ``datetime`` objects like in the code example. - Changed validators to always return ``True`` instead of a truthy object when the validation succeeds. - Fixed ``truthy`` validator to work like it's name suggests. Previously it worked like ``falsy``.
This version fixes an issue with other packages from the same upstream
provider regarding files being installed to ${PYSITELIB}/tests/. The
others have yet to be imported, but let's fix this now. From CHANGES.rst:
0.6.0 (2014-06-25)
^^^^^^^^^^^^^^^^^^
- Added new validator: slug
Import py27-validators-0.5.0 as textproc/py-validators. Python has all kinds of data validation tools, but every one of them seems to require defining a schema / form. This is a simple validation library where validating a simple value does not require defining a form or a schema.