API Reference
validators
--- Python 3.11 reaches EOL in October 2027. [sast-badge]: https://github.com/python-validators/validators/actions/workflows/sast.yaml/badge.svg…
Official Documentation ↗CompatibilityThis documentation covers version
v0.34.0. Check the official docs for the latest API surface.Installation
pip
pip install validatorsMethods
No methods match this filter.
Overview
— Python 3.11 reaches EOL in October 2027. [sast-badge]: https://github.com/python-validators/validators/actions/workflows/sast.yaml/badge.svg [sast-link]: https://github.com/python-validators/vali
API reference status
The official README provides no verifiable API example, so this page does not list method signatures (unverified).
Verification notes
- Official source: https://github.com/python-validators/validators
- Evidence: https://cdn.jsdelivr.net/gh/python-validators/validators@latest/README.md
- Checked on 2026-11-04 by
scripts/phase11/build-api-profiles.mjs
Errors
The official API reference declares the following error types:
ValidationError(class ValidationError(Exception);validator 装饰器在 r_ve 或 RAISE_VALIDATION_ERROR 为 True 时 raise ValidationError) — official text: “class ValidationError(Exception): “”“Exception class when validation failure occurs.”“”” (source: https://github.com/python-validators/validators/blob/master/src/validators/utils.py, fetched 2026-11-08T17:41:29+08:00)
Security
Official security statements captured from the package documentation:
- 官方 SECURITY.md 声明漏洞报告渠道,并明确使用风险自负。 — “That said, use the package at your own risk. The source code is open, we encourage you to read.” (source: https://github.com/python-validators/validators/blob/master/SECURITY.md, fetched 2026-11-08T17:41:29+08:00)
- 官方 SECURITY.md 声明受支持版本为 >=0.36.0(队列 versionNote 为 v0.34.0,低于官方支持范围)。 — “|
>=0.36.0| :white_check_mark: |” (source: https://github.com/python-validators/validators/blob/master/SECURITY.md, fetched 2026-11-08T17:41:29+08:00)
FAQ
- What does validators do?
- --- Python 3.11 reaches EOL in October 2027. [sast-badge]: https://github.com/python-validators/validators/actions/workflows/sast.yaml/badge.svg [sast-link]: https://github.com/python-validators/vali
- How do I install validators?
- Run `pip install validators`.
- Where can I verify the API details?
- Official repository/documentation: https://github.com/python-validators/validators. Checked on 2026-11-04; signatures and return values not stated in the official README are marked unverified.
Report a problem with this API docOpens a pre-filled issue on GitHub.