SitemapEntry · Python
Sitemap URL metadata. lastmod and priority are source strings, not validated dates or numbers.
In this guide
Purpose and lifecycle
Sitemap URL metadata. lastmod and priority are source strings, not validated dates or numbers.
Definition and availability
Source snapshot: 1.0.0-alpha.3. Package export. Declared in source; this is not a runtime test result.
Signatures and source locations are generated from the SDK wrappers. Clean snapshots link to the recorded commit. Modified snapshots link to main, which may differ; file hashes identify the local inputs.
class SitemapEntryMembers
| Member | Kind | Return / value type | Source status |
|---|---|---|---|
| __init__ | method | Not annotated; see behavior notes | Present in source |
| loc | property | str | Present in source |
| lastmod | property | Optional[str] | Present in source |
| changefreq | property | Optional[str] | Present in source |
| priority | property | Optional[str] | Present in source |
| __repr__ | method | str | Present in source |
__init__()
Store the source URL and optional sitemap metadata. The wrapper does not validate dates, update-frequency strings or priority values.
Returns / value: Not annotated; see behavior notes.
def __init__(self, loc: str, lastmod: Optional[str]=None, changefreq: Optional[str]=None, priority: Optional[str]=None)| Parameter | Type | Required / default | Meaning |
|---|---|---|---|
| loc | str | Required | URL from a leaf sitemap entry. |
| lastmod | Optional[str] | Default: None | Optional original last-modified string. |
| changefreq | Optional[str] | Default: None | Optional advisory update-frequency string. |
| priority | Optional[str] | Default: None | Optional original priority string; not a numeric validation guarantee. |
loc
Instance field assigned by the constructor.
Returns / value: str.
loc: strlastmod
Instance field assigned by the constructor.
Returns / value: Optional[str].
lastmod: Optional[str]changefreq
Instance field assigned by the constructor.
Returns / value: Optional[str].
changefreq: Optional[str]priority
Instance field assigned by the constructor.
Returns / value: Optional[str].
priority: Optional[str]__repr__()
Return a short debugging representation of the wrapper. This is not a data export or a stable serialization format.
Returns / value: str.
def __repr__(self) -> strErrors and operational limits
See the consuming API for validation and failure behavior. Types and enum declarations do not perform network requests by themselves.
Source availability, package publication and runtime validation are separate facts. These pages describe the source snapshot, not a claim that all platforms or every API path have passed production acceptance.