![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|

Public Member Functions | |
| None | __post_init__ (self) |
| Optional["LinkHash"] | find_hash_url_fragment (cls, str url) |
| Dict[str, str] | as_dict (self) |
| Hashes | as_hashes (self) |
| bool | is_hash_allowed (self, Optional[Hashes] hashes) |
Public Attributes | |
| name | |
Static Public Attributes | |
| str | name |
| str | value |
Static Protected Attributes | |
| _hash_url_fragment_re | |
Links to content may have embedded hash values. This class parses those. `name` must be any member of `_SUPPORTED_HASHES`. This class can be converted to and from `ArchiveInfo`. While ArchiveInfo intends to be JSON-serializable to conform to PEP 610, this class contains the logic for parsing a hash name and value for correctness, and then checking whether that hash conforms to a schema with `.is_hash_allowed()`.
| Hashes pip._internal.models.link.LinkHash.as_hashes | ( | self | ) |
Return a Hashes instance which checks only for the current hash.
| Optional["LinkHash"] pip._internal.models.link.LinkHash.find_hash_url_fragment | ( | cls, | |
| str | url | ||
| ) |
Search a string for a checksum algorithm name and encoded output value.
| bool pip._internal.models.link.LinkHash.is_hash_allowed | ( | self, | |
| Optional[Hashes] | hashes | ||
| ) |
Return True if the current hash is allowed by `hashes`.
|
staticprotected |