Skip to main content

sitemap

Sitemap library for dynamically generating sitemap.xml

https://img.shields.io/pypi/v/sitemap.svg

Installation

pip install sitemap

Usage

Urlset

from sitemap import Url, Urlset

urlset = Urlset()
url = Url('https://www.example.com/', changefreq='weekly')

urlset.add_url(url)

# urlset.to_string()
urlset.write_xml('sitemap.xml')

Siteindex

from sitemap import Sitemap, Siteindex

siteindex = Siteindex()
sitemap = Sitemap('https://www.example.com/sitemap.xml')

siteindex.add_sitemap(sitemap)

# siteindex.to_string()
siteindex.write_xml('sitemap.xml')

Metadata

Release files for sitemap 20191121

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sitemap 20191121
File Size Uploaded Provenance Actions
sitemap-20191121.tar.gz 2.3 kB Without provenance Details for sitemap-20191121.tar.gz

Release files / sitemap-20191121.tar.gz

Download URL sitemap-20191121.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
00570c0306f697c8786262e105822418bb7bce4826d862991932fad5117002e6
BLAKE2b-256 checksum
How to use checksums
1bdf4b9c43a9ae042c634d7d19e3a172fc1a88bd139cade8050b3e87d5f3a839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15

Security for sitemap 20191121

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page