properties
latest
  • HasProperties
  • Property
  • Built-in Property types
  • Utilities
  • Extra Properties Implementations
    • UID-Related Extras
    • Web-Related Extras
    • Singleton
    • Task
properties
  • Docs »
  • Extra Properties Implementations »
  • Web-Related Extras
  • Edit on GitHub

Web-Related Extras¶

class properties.extras.URL(doc, **kwargs)[source]¶

String property that only accepts valid URLs

This property type uses urllib.parse to validate input URLs and possibly remove fragments and query params.

Available keywords (in addition to those inherited from String):

  • remove_parameters - Query params are stripped from input URL (default is False).
  • remove_fragment - Fragment is stripped from input URL (default is False).
Next Previous

© Copyright 2018, Seequent. Revision 1546b1b1.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.