Skip to main content

OARepo rdm records data model

Project description

OARepo sitemaps

image image image image

Instalation

    pip install oarepo-sitemaps

Usage

OARepo module that creates sitemap for a repository. Sitemap includes only records, that are in state "published" and can be viewed by public. Created sitemap is accessible on server/sitemap.xml url.

Configuration

Default number of record per one sitemap is 10000, this can be changed in configuration with 'SITEMAP_MAX_URL_COUNT set to a different number.

Example

<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
 <url>
  <loc>http://localhost:5000/cesnet/records/1</loc>
  <lastmod>2021-05-24</lastmod>
  <changefreq>weakly</changefreq>
  <priority>1</priority>
 </url>
 <url>
  <loc>http://localhost:5000/cesnet/records/2</loc>
  <lastmod>2021-05-24</lastmod>
  <changefreq>weakly</changefreq>
  <priority>1</priority>
 </url>
</urlset>

Changes

Version 1.0.0

  • Initial public release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oarepo_sitemaps-1.0.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oarepo_sitemaps-1.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file oarepo_sitemaps-1.0.0.tar.gz.

File metadata

  • Download URL: oarepo_sitemaps-1.0.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for oarepo_sitemaps-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8f030d02e3cc28b48e14004f23f03968f15cd39375e04e3bca2336e4893c6bf8
MD5 556140d10cfa1482b4321dfb84bbbad1
BLAKE2b-256 1d1897009486d2f9cbbdaa8e138edda020b2a3ea46d80f633abccb759dfe24f9

See more details on using hashes here.

File details

Details for the file oarepo_sitemaps-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: oarepo_sitemaps-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for oarepo_sitemaps-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6578a0ba4faf03f8f7f0cdc6a444278f2f699c9e082d42f399f76eb52fdd754
MD5 5c01cacdb7b358c5d4adc5a3405cbac0
BLAKE2b-256 39f849ec7ef44be1e8b928bc699ebd832c2458178d4751fdf4fb722e3bedeb47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page