METADATA 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Metadata-Version: 2.1
  2. Name: rfc3986-validator
  3. Version: 0.1.1
  4. Summary: Pure python rfc3986 validator
  5. Home-page: https://github.com/naimetti/rfc3986-validator
  6. Author: Nicolas Aimetti
  7. Author-email: naimetti@yahoo.com.ar
  8. License: MIT license
  9. Keywords: rfc3986 validator
  10. Platform: UNKNOWN
  11. Classifier: Development Status :: 2 - Pre-Alpha
  12. Classifier: Intended Audience :: Developers
  13. Classifier: License :: OSI Approved :: MIT License
  14. Classifier: Natural Language :: English
  15. Classifier: Programming Language :: Python :: 2
  16. Classifier: Programming Language :: Python :: 2.7
  17. Classifier: Programming Language :: Python :: 3
  18. Classifier: Programming Language :: Python :: 3.5
  19. Classifier: Programming Language :: Python :: 3.6
  20. Classifier: Programming Language :: Python :: 3.7
  21. Classifier: Programming Language :: Python :: 3.8
  22. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
  23. Description-Content-Type: text/markdown
  24. # rfc3986-validator
  25. A pure python RFC3986 validator
  26. [![image](https://img.shields.io/pypi/v/rfc3986_validator.svg)](https://pypi.python.org/pypi/rfc3986_validator)
  27. [![Build Status](https://travis-ci.org/naimetti/rfc3986-validator.svg?branch=master)](https://travis-ci.org/naimetti/rfc3986-validator)
  28. # Install
  29. ```shell script
  30. pip install rfc3986-validator
  31. ```
  32. # Usage
  33. ```pycon
  34. >>> from rfc3986_validator import validate_rfc3986
  35. >>> validate_rfc3986('http://foo.bar?q=Spaces should be encoded')
  36. False
  37. >>> validate_rfc3986('http://foo.com/blah_blah_(wikipedia)')
  38. True
  39. ```
  40. It also support validate [URI-reference](https://tools.ietf.org/html/rfc3986#page-49) rule
  41. ```pycon
  42. >>> validate_rfc3986('//foo.com/blah_blah', rule='URI_reference')
  43. True
  44. ```
  45. - Free software: MIT license