Docs/API reference

SitemapEntry · Python

Sitemap URL metadata. lastmod and priority are source strings, not validated dates or numbers.

Download .md
Developers2 min read10 sections
Source reference · Match your SDK version. Availability and known issues
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 SitemapEntry
python1 lines · copy-ready

Members

MemberKindReturn / value typeSource status
__init__methodNot annotated; see behavior notesPresent in source
locpropertystrPresent in source
lastmodpropertyOptional[str]Present in source
changefreqpropertyOptional[str]Present in source
prioritypropertyOptional[str]Present in source
__repr__methodstrPresent 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)
python1 lines · copy-ready
ParameterTypeRequired / defaultMeaning
locstrRequiredURL from a leaf sitemap entry.
lastmodOptional[str]Default: NoneOptional original last-modified string.
changefreqOptional[str]Default: NoneOptional advisory update-frequency string.
priorityOptional[str]Default: NoneOptional original priority string; not a numeric validation guarantee.

loc

Instance field assigned by the constructor.

Returns / value: str.

loc: str
python1 lines · copy-ready

lastmod

Instance field assigned by the constructor.

Returns / value: Optional[str].

lastmod: Optional[str]
python1 lines · copy-ready

changefreq

Instance field assigned by the constructor.

Returns / value: Optional[str].

changefreq: Optional[str]
python1 lines · copy-ready

priority

Instance field assigned by the constructor.

Returns / value: Optional[str].

priority: Optional[str]
python1 lines · copy-ready

__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) -> str
python1 lines · copy-ready

Errors 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.