Diff of the two buildlogs: -- --- b1/build.log 2025-03-25 14:30:39.112799039 +0000 +++ b2/build.log 2025-03-25 14:32:06.344901722 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Apr 27 08:50:42 -12 2026 -I: pbuilder-time-stamp: 1777323042 +I: Current time: Wed Mar 26 04:30:42 +14 2025 +I: pbuilder-time-stamp: 1742913042 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -27,52 +27,84 @@ dpkg-source: info: applying docs-mkdocs.yml-use_directory_urls-configuration-option.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/34309/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1184012/tmp/hooks/D01_modify_environment starting +debug: Running on codethink04-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Mar 25 14:30 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1184012/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1184012/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='a5d453fd96784a4c8ab44303c1c981d9' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='34309' - PS1='# ' - PS2='> ' + INVOCATION_ID=0ffb0e97f84340c8a60543759b0d6b6d + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1184012 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.OdP1dECo/pbuilderrc_0BFm --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.OdP1dECo/b1 --logfile b1/build.log python-odmantic_1.0.2-3.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.OdP1dECo/pbuilderrc_6xxp --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.OdP1dECo/b2 --logfile b2/build.log python-odmantic_1.0.2-3.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink03-arm64 6.1.0-32-cloud-arm64 #1 SMP Debian 6.1.129-1 (2025-03-06) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-32-cloud-arm64 #1 SMP Debian 6.1.129-1 (2025-03-06) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/34309/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1184012/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -308,7 +340,7 @@ Get: 156 http://deb.debian.org/debian unstable/main arm64 python3-pytest-benchmark all 5.1.0-1 [44.4 kB] Get: 157 http://deb.debian.org/debian unstable/main arm64 python3-pytest-codspeed arm64 3.2.0-1+b1 [19.6 kB] Get: 158 http://deb.debian.org/debian unstable/main arm64 python3-pytest-xdist all 3.6.1-1 [44.4 kB] -Fetched 57.4 MB in 10s (5582 kB/s) +Fetched 57.4 MB in 0s (178 MB/s) Preconfiguring packages ... Selecting previously unselected package fonts-lato. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19921 files and directories currently installed.) @@ -814,8 +846,8 @@ Setting up tzdata (2025b-1) ... Current default time zone: 'Etc/UTC' -Local time is now: Mon Apr 27 20:51:48 UTC 2026. -Universal Time is now: Mon Apr 27 20:51:48 UTC 2026. +Local time is now: Tue Mar 25 14:31:07 UTC 2025. +Universal Time is now: Tue Mar 25 14:31:07 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20240727.1) ... @@ -977,7 +1009,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-odmantic-1.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../python-odmantic_1.0.2-3_source.changes +I: user script /srv/workspace/pbuilder/1184012/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/1184012/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-odmantic-1.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../python-odmantic_1.0.2-3_source.changes dpkg-buildpackage: info: source package python-odmantic dpkg-buildpackage: info: source version 1.0.2-3 dpkg-buildpackage: info: source distribution unstable @@ -1036,12 +1072,12 @@ DEBUG - Config value 'extra_javascript' = ['js/gitter.js', 'https://sidecar.gitter.im/dist/sidecar.v1.js'] DEBUG - Config value 'extra_templates' = ['sitemap.xml'] DEBUG - Config value 'markdown_extensions' = ['toc', 'tables', 'fenced_code', 'admonition', 'attr_list', 'def_list', 'codehilite', 'pymdownx.snippets', 'pymdownx.tabbed', 'pymdownx.superfences', 'pymdownx.details', 'pymdownx.inlinehilite', 'pymdownx.magiclink', 'pymdownx.emoji'] -DEBUG - Config value 'mdx_configs' = {'toc': {'permalink': True, 'toc_depth': 4}, 'codehilite': {'linenums': True, 'guess_lang': False}, 'pymdownx.snippets': {'base_path': 'docs/examples_src', 'check_paths': True}, 'pymdownx.tabbed': {'alternate_style': True}, 'pymdownx.magiclink': {'user': 'art049', 'repo': 'odmantic', 'repo_url_shorthand': True}, 'pymdownx.emoji': {'emoji_index': <function twemoji at 0xffff98173420>}} +DEBUG - Config value 'mdx_configs' = {'toc': {'permalink': True, 'toc_depth': 4}, 'codehilite': {'linenums': True, 'guess_lang': False}, 'pymdownx.snippets': {'base_path': 'docs/examples_src', 'check_paths': True}, 'pymdownx.tabbed': {'alternate_style': True}, 'pymdownx.magiclink': {'user': 'art049', 'repo': 'odmantic', 'repo_url_shorthand': True}, 'pymdownx.emoji': {'emoji_index': <function twemoji at 0xffff9d9ef420>}} DEBUG - Config value 'strict' = False DEBUG - Config value 'remote_branch' = 'gh-pages' DEBUG - Config value 'remote_name' = 'origin' DEBUG - Config value 'extra' = {'social': [{'icon': 'fontawesome/brands/github', 'link': 'https://github.com/art049'}, {'icon': 'fontawesome/brands/twitter', 'link': 'https://twitter.com/art049'}, {'icon': 'fontawesome/brands/linkedin', 'link': 'https://www.linkedin.com/in/arthur-pastel-a08579112'}], 'analytics': {'provider': 'google', 'property': 'UA-180814888-1'}} -DEBUG - Config value 'plugins' = {'material/search': <material.plugins.search.plugin.SearchPlugin object at 0xffff96fe38c0>, 'macros': <mkdocs_macros.plugin.MacrosPlugin object at 0xffff97033770>, 'mkdocstrings': <mkdocstrings._internal.plugin.MkdocstringsPlugin object at 0xffff970338c0>} +DEBUG - Config value 'plugins' = {'material/search': <material.plugins.search.plugin.SearchPlugin object at 0xffff9c8638c0>, 'macros': <mkdocs_macros.plugin.MacrosPlugin object at 0xffff9c8b3770>, 'mkdocstrings': <mkdocstrings._internal.plugin.MkdocstringsPlugin object at 0xffff9c8b38c0>} DEBUG - Config value 'hooks' = {} DEBUG - Config value 'watch' = ['/build/reproducible-path/python-odmantic-1.0.2/odmantic', '/build/reproducible-path/python-odmantic-1.0.2/docs'] DEBUG - Config value 'validation' = {'nav': {'omitted_files': 20, 'not_found': 30, 'absolute_links': 20}, 'links': {'not_found': 30, 'absolute_links': 20, 'unrecognized_links': 20, 'anchors': 20}} @@ -1070,7 +1106,7 @@ DEBUG - [macros] - End of environment config DEBUG - Running `config` event from plugin 'mkdocstrings' DEBUG - mkdocstrings: Adding extension to the list -DEBUG - mkdocstrings: Added a subdued autorefs instance <mkdocs_autorefs._internal.plugin.AutorefsPlugin object at 0xffff96499550> +DEBUG - mkdocstrings: Added a subdued autorefs instance <mkdocs_autorefs._internal.plugin.AutorefsPlugin object at 0xffff9bd19550> DEBUG - Running `config` event from plugin 'autorefs' DEBUG - mkdocs_autorefs: Adding AutorefsExtension to the list DEBUG - Running `pre_build` event from plugin 'macros' @@ -1090,7 +1126,7 @@ DEBUG - [macros] - json: cannot encode <class 'builtin_function_or_method'> DEBUG - [macros] - Config variables: -{"extra": {"social": [{"icon": "fontawesome/brands/github", "link": "https://github.com/art049"}, {"icon": "fontawesome/brands/twitter", "link": "https://twitter.com/art049"}, {"icon": "fontawesome/brands/linkedin", "link": "https://www.linkedin.com/in/arthur-pastel-a08579112"}], "analytics": {"provider": "google", "property": "UA-180814888-1"}}, "config": {"config_file_path": "/build/reproducible-path/python-odmantic-1.0.2/mkdocs.yml", "site_name": "ODMantic", "nav": [{"Getting Started": "index.md"}, "fields.md", "modeling.md", "engine.md", "querying.md", "raw_query_usage.md", "usage_fastapi.md", "usage_pydantic.md", {"API Reference": [{"odmantic.model": "./api_reference/model.md"}, {"odmantic.engine": "./api_reference/engine.md"}, {"odmantic.session": "./api_reference/session.md"}, {"odmantic.query": "./api_reference/query.md"}, {"odmantic.field": "./api_reference/field.md"}, {"odmantic.reference": "./api_reference/reference.md"}, {"odmantic.index": "./api_reference/index.md"}, {"odmantic.bson": "./api_reference/bson.md"}, {"odmantic.exceptions": "./api_reference/exceptions.md"}, {"odmantic.config": "./api_reference/config.md"}]}, "contributing.md", "changelog.md", "migration_guide.md"], "pages": null, "exclude_docs": null, "draft_docs": null, "not_in_nav": null, "site_url": "https://art049.github.io/odmantic/", "site_description": "AsyncIO MongoDB ODM (Object Document Mapper) using python type hinting", "site_author": null, "theme": "Theme(name='material', dirs=['/usr/lib/python3/dist-packages/material/templates', '/usr/lib/python3/dist-packages/mkdocs/templates'], static_templates={'404.html', 'sitemap.xml'}, name='material', locale=Locale('en'), language='en', direction=None, features=['instant', 'content.tabs.link'], font={'text': 'Roboto', 'code': 'Roboto Mono'}, icon={'logo': 'material/spa', 'repo': 'fontawesome/brands/github'}, favicon='assets/images/favicon.png', palette=[{'media': '(prefers-color-scheme: light)', 'scheme': 'default', 'primary': 'green', 'accent': 'green', 'toggle': {'icon': 'material/weather-night', 'name': 'Switch to dark mode'}}, {'media': '(prefers-color-scheme: dark)', 'scheme': 'slate', 'primary': 'green', 'accent': 'green', 'toggle': {'icon': 'material/weather-sunny', 'name': 'Switch to light mode'}}])", "docs_dir": "/build/reproducible-path/python-odmantic-1.0.2/docs", "site_dir": "/build/reproducible-path/python-odmantic-1.0.2/html", "copyright": null, "google_analytics": null, "dev_addr": ["127.0.0.1", 8000], "use_directory_urls": false, "repo_url": "https://github.com/art049/odmantic", "repo_name": "art049/odmantic", "edit_uri_template": null, "edit_uri": "edit/master/docs/", "extra_css": ["assets/_mkdocstrings.css", "css/extra.css"], "extra_javascript": ["js/gitter.js", "https://sidecar.gitter.im/dist/sidecar.v1.js"], "extra_templates": ["sitemap.xml"], "markdown_extensions": ["toc", "tables", "fenced_code", "admonition", "attr_list", "def_list", "codehilite", "pymdownx.snippets", "pymdownx.tabbed", "pymdownx.superfences", "pymdownx.details", "pymdownx.inlinehilite", "pymdownx.magiclink", "pymdownx.emoji", "<mkdocstrings._internal.extension.MkdocstringsExtension object at 0xffff964997f0>", "<mkdocs_autorefs._internal.references.AutorefsExtension object at 0xffff96499940>"], "mdx_configs": {"toc": {"permalink": true, "toc_depth": 4}, "codehilite": {"linenums": true, "guess_lang": false}, "pymdownx.snippets": {"base_path": "docs/examples_src", "check_paths": true}, "pymdownx.tabbed": {"alternate_style": true}, "pymdownx.magiclink": {"user": "art049", "repo": "odmantic", "repo_url_shorthand": true}, "pymdownx.emoji": {"emoji_index": "Function: (options, md) The Twemoji index."}}, "strict": false, "remote_branch": "gh-pages", "remote_name": "origin", "extra": {"social": [{"icon": "fontawesome/brands/github", "link": "https://github.com/art049"}, {"icon": "fontawesome/brands/twitter", "link": "https://twitter.com/art049"}, {"icon": "fontawesome/brands/linkedin", "link": "https://www.linkedin.com/in/arthur-pastel-a08579112"}], "analytics": {"provider": "google", "property": "UA-180814888-1"}}, "plugins": {"material/search": "<material.plugins.search.plugin.SearchPlugin object at 0xffff96fe38c0>", "macros": "<mkdocs_macros.plugin.MacrosPlugin object at 0xffff97033770>", "mkdocstrings": "<mkdocstrings._internal.plugin.MkdocstringsPlugin object at 0xffff970338c0>", "autorefs": "<mkdocs_autorefs._internal.plugin.AutorefsPlugin object at 0xffff96499550>"}, "hooks": {}, "watch": ["/build/reproducible-path/python-odmantic-1.0.2/odmantic", "/build/reproducible-path/python-odmantic-1.0.2/docs"], "validation": {"nav": {"omitted_files": 20, "not_found": 30, "absolute_links": 20}, "links": {"not_found": 30, "absolute_links": 20, "unrecognized_links": 20, "anchors": 20}}}, "environment": {"system": "Linux", "system_version": "6.1.0-32-cloud-arm64", "python_version": "3.13.2", "mkdocs_version": "1.6.1", "macros_plugin_version": "1.3.7", "jinja2_version": "3.1.5"}, "plugin": {"module_name": "docs/main", "modules": [], "render_by_default": true, "force_render_paths": "", "include_dir": "", "include_yaml": [], "j2_block_start_string": "", "j2_block_end_string": "", "j2_variable_start_string": "", "j2_variable_end_string": "", "j2_comment_start_string": "", "j2_comment_end_string": "", "on_undefined": "keep", "on_error_fail": false, "verbose": false}, "git": {"status": false, "date": null, "short_commit": "# Unexpected error '['git', 'rev-parse', '--short', 'HEAD']': [Errno 2] No such file or directory: 'git'", "commit": "# Unexpected error '['git', 'rev-parse', 'HEAD']': [Errno 2] No such file or directory: 'git'", "tag": "# Unexpected error '['git', 'describe', '--tags']': [Errno 2] No such file or directory: 'git'", "short_tag": "# Unexpected error '['git', 'describe', '--tags', '--abbrev=0']': [Errno 2] No such file or directory: 'git'", "author": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%an']': [Errno 2] No such file or directory: 'git'", "author_email": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%ae']': [Errno 2] No such file or directory: 'git'", "committer": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%cn']': [Errno 2] No such file or directory: 'git'", "committer_email": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%ce']': [Errno 2] No such file or directory: 'git'", "date_ISO": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%cd']': [Errno 2] No such file or directory: 'git'", "message": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%B']': [Errno 2] No such file or directory: 'git'", "raw": "# Unexpected error '['git', 'log', '-1']': [Errno 2] No such file or directory: 'git'", "root_dir": "# Unexpected error '['git', 'rev-parse', '--show-toplevel']': [Errno 2] No such file or directory: 'git'"}, "social": [{"icon": "fontawesome/brands/github", "link": "https://github.com/art049"}, {"icon": "fontawesome/brands/twitter", "link": "https://twitter.com/art049"}, {"icon": "fontawesome/brands/linkedin", "link": "https://www.linkedin.com/in/arthur-pastel-a08579112"}], "analytics": {"provider": "google", "property": "UA-180814888-1"}, "macros": {"context": "Function: (obj: dict = None) \n*Default Mkdocs-Macro*: List an object\n(by default the variables)\n", "macros_info": "Function: () \n*Test/debug function*:\nlist useful documentation on the mkdocs_macro environment.\n", "now": "Function: () \n*Default Mkdocs-Macro*:\nGet the current time (at the moment of the project build).\nIt returns a datetime object. \nUsed alone, it provides a timestamp.\nTo get the year use `now().year`, for the month number \n`now().month`, etc.\n", "fix_url": "Function: (url) \nIf url is relative, fix it so that it points to the docs directory.\nThis is necessary because relative links in markdown must be adapted\nin html ('img/foo.png' => '../img/img.png').\n", "async_sync_snippet": "Function: (folder: str, filename: str, hl_lines=None, linenums=True) None"}, "filters": {"pretty": "Function: (var_list) \n*Default Mkdocs-Macro*: Prettify a dictionary or object \n(used for environment documentation, or debugging).\n\nNote: it will work only on the product of the `context()` macro\n\nTo prettify any object `obj`, thus use: `context(obj) | pretty`\n", "relative_url": "Function: (path: str) \n*Default Mkdocs-Macro*:\nconvert the path of any page according to MkDoc's internal logic,\ninto a URL relative to the current page\n(implements the `normalize_url()` function from `mkdocs.util`).\nTypically used to manage custom navigation:\n`{{ page.url | relative_url }}`.\n"}, "filters_builtin": {"abs": "<built-in function abs>", "attr": "Function: (environment: 'Environment', obj: Any, name: str) -> Union[jinja2.runtime.Undefined, Any] Get an attribute of an object. ``foo|attr(\"bar\")`` works like\n``foo.bar`` just that always an attribute is returned and items are not\nlooked up.\n\nSee :ref:`Notes on subscriptions <notes-on-subscriptions>` for more details.\n", "batch": "Function: (value: 't.Iterable[V]', linecount: int, fill_with: 't.Optional[V]' = None) -> 't.Iterator[t.List[V]]' \nA filter that batches items. It works pretty much like `slice`\njust the other way round. It returns a list of lists with the\ngiven number of items. If you provide a second parameter this\nis used to fill up missing items. See this example:\n\n.. sourcecode:: html+jinja\n\n <table>\n {%- for row in items|batch(3, ' ') %}\n <tr>\n {%- for column in row %}\n <td>{{ column }}</td>\n {%- endfor %}\n </tr>\n {%- endfor %}\n </table>\n", "capitalize": "Function: (s: str) -> str Capitalize a value. The first character will be uppercase, all others\nlowercase.\n", "center": "Function: (value: str, width: int = 80) -> str Centers the value in a field of a given width.", "count": "<built-in function len>", "d": "Function: (value: ~V, default_value: ~V = '', boolean: bool = False) -> ~V If the value is undefined it will return the passed default value,\notherwise the value of the variable:\n\n.. sourcecode:: jinja\n\n {{ my_variable|default('my_variable is not defined') }}\n\nThis will output the value of ``my_variable`` if the variable was\ndefined, otherwise ``'my_variable is not defined'``. If you want\nto use default with variables that evaluate to false you have to\nset the second parameter to `true`:\n\n.. sourcecode:: jinja\n\n {{ ''|default('the string was empty', true) }}\n\n.. versionchanged:: 2.11\n It's now possible to configure the :class:`~jinja2.Environment` with\n :class:`~jinja2.ChainableUndefined` to make the `default` filter work\n on nested elements and attributes that may contain undefined values\n in the chain without getting an :exc:`~jinja2.UndefinedError`.\n", "default": "Function: (value: ~V, default_value: ~V = '', boolean: bool = False) -> ~V If the value is undefined it will return the passed default value,\notherwise the value of the variable:\n\n.. sourcecode:: jinja\n\n {{ my_variable|default('my_variable is not defined') }}\n\nThis will output the value of ``my_variable`` if the variable was\ndefined, otherwise ``'my_variable is not defined'``. If you want\nto use default with variables that evaluate to false you have to\nset the second parameter to `true`:\n\n.. sourcecode:: jinja\n\n {{ ''|default('the string was empty', true) }}\n\n.. versionchanged:: 2.11\n It's now possible to configure the :class:`~jinja2.Environment` with\n :class:`~jinja2.ChainableUndefined` to make the `default` filter work\n on nested elements and attributes that may contain undefined values\n in the chain without getting an :exc:`~jinja2.UndefinedError`.\n", "dictsort": "Function: (value: Mapping[~K, ~V], case_sensitive: bool = False, by: 'te.Literal[\"key\", \"value\"]' = 'key', reverse: bool = False) -> List[Tuple[~K, ~V]] Sort a dict and yield (key, value) pairs. Python dicts may not\nbe in the order you want to display them in, so sort them first.\n\n.. sourcecode:: jinja\n\n {% for key, value in mydict|dictsort %}\n sort the dict by key, case insensitive\n\n {% for key, value in mydict|dictsort(reverse=true) %}\n sort the dict by key, case insensitive, reverse order\n\n {% for key, value in mydict|dictsort(true) %}\n sort the dict by key, case sensitive\n\n {% for key, value in mydict|dictsort(false, 'value') %}\n sort the dict by value, case insensitive\n", "e": "<built-in function escape>", "escape": "<built-in function escape>", "filesizeformat": "Function: (value: Union[str, float, int], binary: bool = False) -> str Format the value like a 'human-readable' file size (i.e. 13 kB,\n4.1 MB, 102 Bytes, etc). Per default decimal prefixes are used (Mega,\nGiga, etc.), if the second parameter is set to `True` the binary\nprefixes are used (Mebi, Gibi).\n", "first": "Function: (environment: 'Environment', seq: 't.Iterable[V]') -> 't.Union[V, Undefined]' Return the first item of a sequence.", "float": "Function: (value: Any, default: float = 0.0) -> float Convert the value into a floating point number. If the\nconversion doesn't work it will return ``0.0``. You can\noverride this default using the first parameter.\n", "forceescape": "Function: (value: 't.Union[str, HasHTML]') -> markupsafe.Markup Enforce HTML escaping. This will probably double escape variables.", "format": "Function: (value: str, *args: Any, **kwargs: Any) -> str Apply the given values to a `printf-style`_ format string, like\n``string % values``.\n\n.. sourcecode:: jinja\n\n {{ \"%s, %s!\"|format(greeting, name) }}\n Hello, World!\n\nIn most cases it should be more convenient and efficient to use the\n``%`` operator or :meth:`str.format`.\n\n.. code-block:: text\n\n {{ \"%s, %s!\" % (greeting, name) }}\n {{ \"{}, {}!\".format(greeting, name) }}\n\n.. _printf-style: https://docs.python.org/library/stdtypes.html\n #printf-style-string-formatting\n", "groupby": "Function: (environment: 'Environment', value: 't.Iterable[V]', attribute: Union[str, int], default: Optional[Any] = None, case_sensitive: bool = False) -> 't.List[_GroupTuple]' Group a sequence of objects by an attribute using Python's\n:func:`itertools.groupby`. The attribute can use dot notation for\nnested access, like ``\"address.city\"``. Unlike Python's ``groupby``,\nthe values are sorted first so only one group is returned for each\nunique value.\n\nFor example, a list of ``User`` objects with a ``city`` attribute\ncan be rendered in groups. In this example, ``grouper`` refers to\nthe ``city`` value of the group.\n\n.. sourcecode:: html+jinja\n\n <ul>{% for city, items in users|groupby(\"city\") %}\n <li>{{ city }}\n <ul>{% for user in items %}\n <li>{{ user.name }}\n {% endfor %}</ul>\n </li>\n {% endfor %}</ul>\n\n``groupby`` yields namedtuples of ``(grouper, list)``, which\ncan be used instead of the tuple unpacking above. ``grouper`` is the\nvalue of the attribute, and ``list`` is the items with that value.\n\n.. sourcecode:: html+jinja\n\n <ul>{% for group in users|groupby(\"city\") %}\n <li>{{ group.grouper }}: {{ group.list|join(\", \") }}\n {% endfor %}</ul>\n\nYou can specify a ``default`` value to use if an object in the list\ndoes not have the given attribute.\n\n.. sourcecode:: jinja\n\n <ul>{% for city, items in users|groupby(\"city\", default=\"NY\") %}\n <li>{{ city }}: {{ items|map(attribute=\"name\")|join(\", \") }}</li>\n {% endfor %}</ul>\n\nLike the :func:`~jinja-filters.sort` filter, sorting and grouping is\ncase-insensitive by default. The ``key`` for each group will have\nthe case of the first item in that group of values. For example, if\na list of users has cities ``[\"CA\", \"NY\", \"ca\"]``, the \"CA\" group\nwill have two values. This can be disabled by passing\n``case_sensitive=True``.\n\n.. versionchanged:: 3.1\n Added the ``case_sensitive`` parameter. Sorting and grouping is\n case-insensitive by default, matching other filters that do\n comparisons.\n\n.. versionchanged:: 3.0\n Added the ``default`` parameter.\n\n.. versionchanged:: 2.6\n The attribute supports dot notation for nested access.\n", "indent": "Function: (s: str, width: Union[int, str] = 4, first: bool = False, blank: bool = False) -> str Return a copy of the string with each line indented by 4 spaces. The\nfirst line and blank lines are not indented by default.\n\n:param width: Number of spaces, or a string, to indent by.\n:param first: Don't skip indenting the first line.\n:param blank: Don't skip indenting empty lines.\n\n.. versionchanged:: 3.0\n ``width`` can be a string.\n\n.. versionchanged:: 2.10\n Blank lines are not indented by default.\n\n Rename the ``indentfirst`` argument to ``first``.\n", "int": "Function: (value: Any, default: int = 0, base: int = 10) -> int Convert the value into an integer. If the\nconversion doesn't work it will return ``0``. You can\noverride this default using the first parameter. You\ncan also override the default base (10) in the second\nparameter, which handles input with prefixes such as\n0b, 0o and 0x for bases 2, 8 and 16 respectively.\nThe base is ignored for decimal numbers and non-string values.\n", "join": "Function: (eval_ctx: 'EvalContext', value: Iterable[Any], d: str = '', attribute: Union[str, int, NoneType] = None) -> str Return a string which is the concatenation of the strings in the\nsequence. The separator between elements is an empty string per\ndefault, you can define it with the optional parameter:\n\n.. sourcecode:: jinja\n\n {{ [1, 2, 3]|join('|') }}\n -> 1|2|3\n\n {{ [1, 2, 3]|join }}\n -> 123\n\nIt is also possible to join certain attributes of an object:\n\n.. sourcecode:: jinja\n\n {{ users|join(', ', attribute='username') }}\n\n.. versionadded:: 2.6\n The `attribute` parameter was added.\n", "last": "Function: (environment: 'Environment', seq: 't.Reversible[V]') -> 't.Union[V, Undefined]' Return the last item of a sequence.\n\nNote: Does not work with generators. You may want to explicitly\nconvert it to a list:\n\n.. sourcecode:: jinja\n\n {{ data | selectattr('name', '==', 'Jinja') | list | last }}\n", "length": "<built-in function len>", "list": "Function: (value: 't.Iterable[V]') -> 't.List[V]' Convert the value into a list. If it was a string the returned list\nwill be a list of characters.\n", "lower": "Function: (s: str) -> str Convert a value to lowercase.", "items": "Function: (value: Union[Mapping[~K, ~V], jinja2.runtime.Undefined]) -> Iterator[Tuple[~K, ~V]] Return an iterator over the ``(key, value)`` items of a mapping.\n\n``x|items`` is the same as ``x.items()``, except if ``x`` is\nundefined an empty iterator is returned.\n\nThis filter is useful if you expect the template to be rendered with\nan implementation of Jinja in another programming language that does\nnot have a ``.items()`` method on its mapping type.\n\n.. code-block:: html+jinja\n\n <dl>\n {% for key, value in my_dict|items %}\n <dt>{{ key }}\n <dd>{{ value }}\n {% endfor %}\n </dl>\n\n.. versionadded:: 3.1\n", "map": "Function: (context: 'Context', value: Iterable[Any], *args: Any, **kwargs: Any) -> Iterable[Any] Applies a filter on a sequence of objects or looks up an attribute.\nThis is useful when dealing with lists of objects but you are really\nonly interested in a certain value of it.\n\nThe basic usage is mapping on an attribute. Imagine you have a list\nof users but you are only interested in a list of usernames:\n\n.. sourcecode:: jinja\n\n Users on this page: {{ users|map(attribute='username')|join(', ') }}\n\nYou can specify a ``default`` value to use if an object in the list\ndoes not have the given attribute.\n\n.. sourcecode:: jinja\n\n {{ users|map(attribute=\"username\", default=\"Anonymous\")|join(\", \") }}\n\nAlternatively you can let it invoke a filter by passing the name of the\nfilter and the arguments afterwards. A good example would be applying a\ntext conversion filter on a sequence:\n\n.. sourcecode:: jinja\n\n Users on this page: {{ titles|map('lower')|join(', ') }}\n\nSimilar to a generator comprehension such as:\n\n.. code-block:: python\n\n (u.username for u in users)\n (getattr(u, \"username\", \"Anonymous\") for u in users)\n (do_lower(x) for x in titles)\n\n.. versionchanged:: 2.11.0\n Added the ``default`` parameter.\n\n.. versionadded:: 2.7\n", "min": "Function: (environment: 'Environment', value: 't.Iterable[V]', case_sensitive: bool = False, attribute: Union[str, int, NoneType] = None) -> 't.Union[V, Undefined]' Return the smallest item from the sequence.\n\n.. sourcecode:: jinja\n\n {{ [1, 2, 3]|min }}\n -> 1\n\n:param case_sensitive: Treat upper and lower case strings as distinct.\n:param attribute: Get the object with the min value of this attribute.\n", "max": "Function: (environment: 'Environment', value: 't.Iterable[V]', case_sensitive: bool = False, attribute: Union[str, int, NoneType] = None) -> 't.Union[V, Undefined]' Return the largest item from the sequence.\n\n.. sourcecode:: jinja\n\n {{ [1, 2, 3]|max }}\n -> 3\n\n:param case_sensitive: Treat upper and lower case strings as distinct.\n:param attribute: Get the object with the max value of this attribute.\n", "pprint": "Function: (value: Any) -> str Pretty print a variable. Useful for debugging.", "random": "Function: (context: 'Context', seq: 't.Sequence[V]') -> 't.Union[V, Undefined]' Return a random item from the sequence.", "reject": "Function: (context: 'Context', value: 't.Iterable[V]', *args: Any, **kwargs: Any) -> 't.Iterator[V]' Filters a sequence of objects by applying a test to each object,\nand rejecting the objects with the test succeeding.\n\nIf no test is specified, each object will be evaluated as a boolean.\n\nExample usage:\n\n.. sourcecode:: jinja\n\n {{ numbers|reject(\"odd\") }}\n\nSimilar to a generator comprehension such as:\n\n.. code-block:: python\n\n (n for n in numbers if not test_odd(n))\n\n.. versionadded:: 2.7\n", "rejectattr": "Function: (context: 'Context', value: 't.Iterable[V]', *args: Any, **kwargs: Any) -> 't.Iterator[V]' Filters a sequence of objects by applying a test to the specified\nattribute of each object, and rejecting the objects with the test\nsucceeding.\n\nIf no test is specified, the attribute's value will be evaluated as\na boolean.\n\n.. sourcecode:: jinja\n\n {{ users|rejectattr(\"is_active\") }}\n {{ users|rejectattr(\"email\", \"none\") }}\n\nSimilar to a generator comprehension such as:\n\n.. code-block:: python\n\n (user for user in users if not user.is_active)\n (user for user in users if not test_none(user.email))\n\n.. versionadded:: 2.7\n", "replace": "Function: (eval_ctx: 'EvalContext', s: str, old: str, new: str, count: Optional[int] = None) -> str Return a copy of the value with all occurrences of a substring\nreplaced with a new one. The first argument is the substring\nthat should be replaced, the second is the replacement string.\nIf the optional third argument ``count`` is given, only the first\n``count`` occurrences are replaced:\n\n.. sourcecode:: jinja\n\n {{ \"Hello World\"|replace(\"Hello\", \"Goodbye\") }}\n -> Goodbye World\n\n {{ \"aaaaargh\"|replace(\"a\", \"d'oh, \", 2) }}\n -> d'oh, d'oh, aaargh\n", "reverse": "Function: (value: Union[str, Iterable[~V]]) -> Union[str, Iterable[~V]] Reverse the object or return an iterator that iterates over it the other\nway round.\n", "round": "Function: (value: float, precision: int = 0, method: 'te.Literal[\"common\", \"ceil\", \"floor\"]' = 'common') -> float Round the number to a given precision. The first\nparameter specifies the precision (default is ``0``), the\nsecond the rounding method:\n\n- ``'common'`` rounds either up or down\n- ``'ceil'`` always rounds up\n- ``'floor'`` always rounds down\n\nIf you don't specify a method ``'common'`` is used.\n\n.. sourcecode:: jinja\n\n {{ 42.55|round }}\n -> 43.0\n {{ 42.55|round(1, 'floor') }}\n -> 42.5\n\nNote that even if rounded to 0 precision, a float is returned. If\nyou need a real integer, pipe it through `int`:\n\n.. sourcecode:: jinja\n\n {{ 42.55|round|int }}\n -> 43\n", "safe": "Function: (value: str) -> markupsafe.Markup Mark the value as safe which means that in an environment with automatic\nescaping enabled this variable will not be escaped.\n", "select": "Function: (context: 'Context', value: 't.Iterable[V]', *args: Any, **kwargs: Any) -> 't.Iterator[V]' Filters a sequence of objects by applying a test to each object,\nand only selecting the objects with the test succeeding.\n\nIf no test is specified, each object will be evaluated as a boolean.\n\nExample usage:\n\n.. sourcecode:: jinja\n\n {{ numbers|select(\"odd\") }}\n {{ numbers|select(\"odd\") }}\n {{ numbers|select(\"divisibleby\", 3) }}\n {{ numbers|select(\"lessthan\", 42) }}\n {{ strings|select(\"equalto\", \"mystring\") }}\n\nSimilar to a generator comprehension such as:\n\n.. code-block:: python\n\n (n for n in numbers if test_odd(n))\n (n for n in numbers if test_divisibleby(n, 3))\n\n.. versionadded:: 2.7\n", "selectattr": "Function: (context: 'Context', value: 't.Iterable[V]', *args: Any, **kwargs: Any) -> 't.Iterator[V]' Filters a sequence of objects by applying a test to the specified\nattribute of each object, and only selecting the objects with the\ntest succeeding.\n\nIf no test is specified, the attribute's value will be evaluated as\na boolean.\n\nExample usage:\n\n.. sourcecode:: jinja\n\n {{ users|selectattr(\"is_active\") }}\n {{ users|selectattr(\"email\", \"none\") }}\n\nSimilar to a generator comprehension such as:\n\n.. code-block:: python\n\n (user for user in users if user.is_active)\n (user for user in users if test_none(user.email))\n\n.. versionadded:: 2.7\n", "slice": "Function: (value: 't.Collection[V]', slices: int, fill_with: 't.Optional[V]' = None) -> 't.Iterator[t.List[V]]' Slice an iterator and return a list of lists containing\nthose items. Useful if you want to create a div containing\nthree ul tags that represent columns:\n\n.. sourcecode:: html+jinja\n\n <div class=\"columnwrapper\">\n {%- for column in items|slice(3) %}\n <ul class=\"column-{{ loop.index }}\">\n {%- for item in column %}\n <li>{{ item }}</li>\n {%- endfor %}\n </ul>\n {%- endfor %}\n </div>\n\nIf you pass it a second argument it's used to fill missing\nvalues on the last iteration.\n", "sort": "Function: (environment: 'Environment', value: 't.Iterable[V]', reverse: bool = False, case_sensitive: bool = False, attribute: Union[str, int, NoneType] = None) -> 't.List[V]' Sort an iterable using Python's :func:`sorted`.\n\n.. sourcecode:: jinja\n\n {% for city in cities|sort %}\n ...\n {% endfor %}\n\n:param reverse: Sort descending instead of ascending.\n:param case_sensitive: When sorting strings, sort upper and lower\n case separately.\n:param attribute: When sorting objects or dicts, an attribute or\n key to sort by. Can use dot notation like ``\"address.city\"``.\n Can be a list of attributes like ``\"age,name\"``.\n\nThe sort is stable, it does not change the relative order of\nelements that compare equal. This makes it is possible to chain\nsorts on different attributes and ordering.\n\n.. sourcecode:: jinja\n\n {% for user in users|sort(attribute=\"name\")\n |sort(reverse=true, attribute=\"age\") %}\n ...\n {% endfor %}\n\nAs a shortcut to chaining when the direction is the same for all\nattributes, pass a comma separate list of attributes.\n\n.. sourcecode:: jinja\n\n {% for user in users|sort(attribute=\"age,name\") %}\n ...\n {% endfor %}\n\n.. versionchanged:: 2.11.0\n The ``attribute`` parameter can be a comma separated list of\n attributes, e.g. ``\"age,name\"``.\n\n.. versionchanged:: 2.6\n The ``attribute`` parameter was added.\n", "string": "<built-in function soft_str>", "striptags": "Function: (value: 't.Union[str, HasHTML]') -> str Strip SGML/XML tags and replace adjacent whitespace by one space.", "sum": "Function: (environment: 'Environment', iterable: 't.Iterable[V]', attribute: Union[str, int, NoneType] = None, start: ~V = 0) -> ~V Returns the sum of a sequence of numbers plus the value of parameter\n'start' (which defaults to 0). When the sequence is empty it returns\nstart.\n\nIt is also possible to sum up only certain attributes:\n\n.. sourcecode:: jinja\n\n Total: {{ items|sum(attribute='price') }}\n\n.. versionchanged:: 2.6\n The ``attribute`` parameter was added to allow summing up over\n attributes. Also the ``start`` parameter was moved on to the right.\n", "title": "Function: (s: str) -> str Return a titlecased version of the value. I.e. words will start with\nuppercase letters, all remaining characters are lowercase.\n", "trim": "Function: (value: str, chars: Optional[str] = None) -> str Strip leading and trailing characters, by default whitespace.", "truncate": "Function: (env: 'Environment', s: str, length: int = 255, killwords: bool = False, end: str = '...', leeway: Optional[int] = None) -> str Return a truncated copy of the string. The length is specified\nwith the first parameter which defaults to ``255``. If the second\nparameter is ``true`` the filter will cut the text at length. Otherwise\nit will discard the last word. If the text was in fact\ntruncated it will append an ellipsis sign (``\"...\"``). If you want a\ndifferent ellipsis sign than ``\"...\"`` you can specify it using the\nthird parameter. Strings that only exceed the length by the tolerance\nmargin given in the fourth parameter will not be truncated.\n\n.. sourcecode:: jinja\n\n {{ \"foo bar baz qux\"|truncate(9) }}\n -> \"foo...\"\n {{ \"foo bar baz qux\"|truncate(9, True) }}\n -> \"foo ba...\"\n {{ \"foo bar baz qux\"|truncate(11) }}\n -> \"foo bar baz qux\"\n {{ \"foo bar baz qux\"|truncate(11, False, '...', 0) }}\n -> \"foo bar...\"\n\nThe default leeway on newer Jinja versions is 5 and was 0 before but\ncan be reconfigured globally.\n", "unique": "Function: (environment: 'Environment', value: 't.Iterable[V]', case_sensitive: bool = False, attribute: Union[str, int, NoneType] = None) -> 't.Iterator[V]' Returns a list of unique items from the given iterable.\n\n.. sourcecode:: jinja\n\n {{ ['foo', 'bar', 'foobar', 'FooBar']|unique|list }}\n -> ['foo', 'bar', 'foobar']\n\nThe unique items are yielded in the same order as their first occurrence in\nthe iterable passed to the filter.\n\n:param case_sensitive: Treat upper and lower case strings as distinct.\n:param attribute: Filter objects with unique values for this attribute.\n", "upper": "Function: (s: str) -> str Convert a value to uppercase.", "urlencode": "Function: (value: Union[str, Mapping[str, Any], Iterable[Tuple[str, Any]]]) -> str Quote data for use in a URL path or query using UTF-8.\n\nBasic wrapper around :func:`urllib.parse.quote` when given a\nstring, or :func:`urllib.parse.urlencode` for a dict or iterable.\n\n:param value: Data to quote. A string will be quoted directly. A\n dict or iterable of ``(key, value)`` pairs will be joined as a\n query string.\n\nWhen given a string, \"/\" is not quoted. HTTP servers treat \"/\" and\n\"%2F\" equivalently in paths. If you need quoted slashes, use the\n``|replace(\"/\", \"%2F\")`` filter.\n\n.. versionadded:: 2.7\n", "urlize": "Function: (eval_ctx: 'EvalContext', value: str, trim_url_limit: Optional[int] = None, nofollow: bool = False, target: Optional[str] = None, rel: Optional[str] = None, extra_schemes: Optional[Iterable[str]] = None) -> str Convert URLs in text into clickable links.\n\nThis may not recognize links in some situations. Usually, a more\ncomprehensive formatter, such as a Markdown library, is a better\nchoice.\n\nWorks on ``http://``, ``https://``, ``www.``, ``mailto:``, and email\naddresses. Links with trailing punctuation (periods, commas, closing\nparentheses) and leading punctuation (opening parentheses) are\nrecognized excluding the punctuation. Email addresses that include\nheader fields are not recognized (for example,\n``mailto:address@example.com?cc=copy@example.com``).\n\n:param value: Original text containing URLs to link.\n:param trim_url_limit: Shorten displayed URL values to this length.\n:param nofollow: Add the ``rel=nofollow`` attribute to links.\n:param target: Add the ``target`` attribute to links.\n:param rel: Add the ``rel`` attribute to links.\n:param extra_schemes: Recognize URLs that start with these schemes\n in addition to the default behavior. Defaults to\n ``env.policies[\"urlize.extra_schemes\"]``, which defaults to no\n extra schemes.\n\n.. versionchanged:: 3.0\n The ``extra_schemes`` parameter was added.\n\n.. versionchanged:: 3.0\n Generate ``https://`` links for URLs without a scheme.\n\n.. versionchanged:: 3.0\n The parsing rules were updated. Recognize email addresses with\n or without the ``mailto:`` scheme. Validate IP addresses. Ignore\n parentheses and brackets in more cases.\n\n.. versionchanged:: 2.8\n The ``target`` parameter was added.\n", "wordcount": "Function: (s: str) -> int Count the words in that string.", "wordwrap": "Function: (environment: 'Environment', s: str, width: int = 79, break_long_words: bool = True, wrapstring: Optional[str] = None, break_on_hyphens: bool = True) -> str Wrap a string to the given width. Existing newlines are treated\nas paragraphs to be wrapped separately.\n\n:param s: Original text to wrap.\n:param width: Maximum length of wrapped lines.\n:param break_long_words: If a word is longer than ``width``, break\n it across lines.\n:param break_on_hyphens: If a word contains hyphens, it may be split\n across lines.\n:param wrapstring: String to join each wrapped line. Defaults to\n :attr:`Environment.newline_sequence`.\n\n.. versionchanged:: 2.11\n Existing newlines are treated as paragraphs wrapped separately.\n\n.. versionchanged:: 2.11\n Added the ``break_on_hyphens`` parameter.\n\n.. versionchanged:: 2.7\n Added the ``wrapstring`` parameter.\n", "xmlattr": "Function: (eval_ctx: 'EvalContext', d: Mapping[str, Any], autospace: bool = True) -> str Create an SGML/XML attribute string based on the items in a dict.\n\n**Values** that are neither ``none`` nor ``undefined`` are automatically\nescaped, safely allowing untrusted user input.\n\nUser input should not be used as **keys** to this filter. If any key\ncontains a space, ``/`` solidus, ``>`` greater-than sign, or ``=`` equals\nsign, this fails with a ``ValueError``. Regardless of this, user input\nshould never be used as keys to this filter, or must be separately validated\nfirst.\n\n.. sourcecode:: html+jinja\n\n <ul{{ {'class': 'my_list', 'missing': none,\n 'id': 'list-%d'|format(variable)}|xmlattr }}>\n ...\n </ul>\n\nResults in something like this:\n\n.. sourcecode:: html\n\n <ul class=\"my_list\" id=\"list-42\">\n ...\n </ul>\n\nAs you can see it automatically prepends a space in front of the item\nif the filter returned something unless the second parameter is false.\n\n.. versionchanged:: 3.1.4\n Keys with ``/`` solidus, ``>`` greater-than sign, or ``=`` equals sign\n are not allowed.\n\n.. versionchanged:: 3.1.3\n Keys with spaces are not allowed.\n", "tojson": "Function: (eval_ctx: 'EvalContext', value: Any, indent: Optional[int] = None) -> markupsafe.Markup Serialize an object to a string of JSON, and mark it safe to\nrender in HTML. This filter is only for use in HTML documents.\n\nThe returned string is safe to render in HTML documents and\n``<script>`` tags. The exception is in HTML attributes that are\ndouble quoted; either use single quotes or the ``|forceescape``\nfilter.\n\n:param value: The object to serialize to JSON.\n:param indent: The ``indent`` parameter passed to ``dumps``, for\n pretty-printing the value.\n\n.. versionadded:: 2.9\n"}} +{"extra": {"social": [{"icon": "fontawesome/brands/github", "link": "https://github.com/art049"}, {"icon": "fontawesome/brands/twitter", "link": "https://twitter.com/art049"}, {"icon": "fontawesome/brands/linkedin", "link": "https://www.linkedin.com/in/arthur-pastel-a08579112"}], "analytics": {"provider": "google", "property": "UA-180814888-1"}}, "config": {"config_file_path": "/build/reproducible-path/python-odmantic-1.0.2/mkdocs.yml", "site_name": "ODMantic", "nav": [{"Getting Started": "index.md"}, "fields.md", "modeling.md", "engine.md", "querying.md", "raw_query_usage.md", "usage_fastapi.md", "usage_pydantic.md", {"API Reference": [{"odmantic.model": "./api_reference/model.md"}, {"odmantic.engine": "./api_reference/engine.md"}, {"odmantic.session": "./api_reference/session.md"}, {"odmantic.query": "./api_reference/query.md"}, {"odmantic.field": "./api_reference/field.md"}, {"odmantic.reference": "./api_reference/reference.md"}, {"odmantic.index": "./api_reference/index.md"}, {"odmantic.bson": "./api_reference/bson.md"}, {"odmantic.exceptions": "./api_reference/exceptions.md"}, {"odmantic.config": "./api_reference/config.md"}]}, "contributing.md", "changelog.md", "migration_guide.md"], "pages": null, "exclude_docs": null, "draft_docs": null, "not_in_nav": null, "site_url": "https://art049.github.io/odmantic/", "site_description": "AsyncIO MongoDB ODM (Object Document Mapper) using python type hinting", "site_author": null, "theme": "Theme(name='material', dirs=['/usr/lib/python3/dist-packages/material/templates', '/usr/lib/python3/dist-packages/mkdocs/templates'], static_templates={'404.html', 'sitemap.xml'}, name='material', locale=Locale('en'), language='en', direction=None, features=['instant', 'content.tabs.link'], font={'text': 'Roboto', 'code': 'Roboto Mono'}, icon={'logo': 'material/spa', 'repo': 'fontawesome/brands/github'}, favicon='assets/images/favicon.png', palette=[{'media': '(prefers-color-scheme: light)', 'scheme': 'default', 'primary': 'green', 'accent': 'green', 'toggle': {'icon': 'material/weather-night', 'name': 'Switch to dark mode'}}, {'media': '(prefers-color-scheme: dark)', 'scheme': 'slate', 'primary': 'green', 'accent': 'green', 'toggle': {'icon': 'material/weather-sunny', 'name': 'Switch to light mode'}}])", "docs_dir": "/build/reproducible-path/python-odmantic-1.0.2/docs", "site_dir": "/build/reproducible-path/python-odmantic-1.0.2/html", "copyright": null, "google_analytics": null, "dev_addr": ["127.0.0.1", 8000], "use_directory_urls": false, "repo_url": "https://github.com/art049/odmantic", "repo_name": "art049/odmantic", "edit_uri_template": null, "edit_uri": "edit/master/docs/", "extra_css": ["assets/_mkdocstrings.css", "css/extra.css"], "extra_javascript": ["js/gitter.js", "https://sidecar.gitter.im/dist/sidecar.v1.js"], "extra_templates": ["sitemap.xml"], "markdown_extensions": ["toc", "tables", "fenced_code", "admonition", "attr_list", "def_list", "codehilite", "pymdownx.snippets", "pymdownx.tabbed", "pymdownx.superfences", "pymdownx.details", "pymdownx.inlinehilite", "pymdownx.magiclink", "pymdownx.emoji", "<mkdocstrings._internal.extension.MkdocstringsExtension object at 0xffff9bd197f0>", "<mkdocs_autorefs._internal.references.AutorefsExtension object at 0xffff9bd19940>"], "mdx_configs": {"toc": {"permalink": true, "toc_depth": 4}, "codehilite": {"linenums": true, "guess_lang": false}, "pymdownx.snippets": {"base_path": "docs/examples_src", "check_paths": true}, "pymdownx.tabbed": {"alternate_style": true}, "pymdownx.magiclink": {"user": "art049", "repo": "odmantic", "repo_url_shorthand": true}, "pymdownx.emoji": {"emoji_index": "Function: (options, md) The Twemoji index."}}, "strict": false, "remote_branch": "gh-pages", "remote_name": "origin", "extra": {"social": [{"icon": "fontawesome/brands/github", "link": "https://github.com/art049"}, {"icon": "fontawesome/brands/twitter", "link": "https://twitter.com/art049"}, {"icon": "fontawesome/brands/linkedin", "link": "https://www.linkedin.com/in/arthur-pastel-a08579112"}], "analytics": {"provider": "google", "property": "UA-180814888-1"}}, "plugins": {"material/search": "<material.plugins.search.plugin.SearchPlugin object at 0xffff9c8638c0>", "macros": "<mkdocs_macros.plugin.MacrosPlugin object at 0xffff9c8b3770>", "mkdocstrings": "<mkdocstrings._internal.plugin.MkdocstringsPlugin object at 0xffff9c8b38c0>", "autorefs": "<mkdocs_autorefs._internal.plugin.AutorefsPlugin object at 0xffff9bd19550>"}, "hooks": {}, "watch": ["/build/reproducible-path/python-odmantic-1.0.2/odmantic", "/build/reproducible-path/python-odmantic-1.0.2/docs"], "validation": {"nav": {"omitted_files": 20, "not_found": 30, "absolute_links": 20}, "links": {"not_found": 30, "absolute_links": 20, "unrecognized_links": 20, "anchors": 20}}}, "environment": {"system": "Linux", "system_version": "6.1.0-32-cloud-arm64", "python_version": "3.13.2", "mkdocs_version": "1.6.1", "macros_plugin_version": "1.3.7", "jinja2_version": "3.1.5"}, "plugin": {"module_name": "docs/main", "modules": [], "render_by_default": true, "force_render_paths": "", "include_dir": "", "include_yaml": [], "j2_block_start_string": "", "j2_block_end_string": "", "j2_variable_start_string": "", "j2_variable_end_string": "", "j2_comment_start_string": "", "j2_comment_end_string": "", "on_undefined": "keep", "on_error_fail": false, "verbose": false}, "git": {"status": false, "date": null, "short_commit": "# Unexpected error '['git', 'rev-parse', '--short', 'HEAD']': [Errno 2] No such file or directory: 'git'", "commit": "# Unexpected error '['git', 'rev-parse', 'HEAD']': [Errno 2] No such file or directory: 'git'", "tag": "# Unexpected error '['git', 'describe', '--tags']': [Errno 2] No such file or directory: 'git'", "short_tag": "# Unexpected error '['git', 'describe', '--tags', '--abbrev=0']': [Errno 2] No such file or directory: 'git'", "author": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%an']': [Errno 2] No such file or directory: 'git'", "author_email": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%ae']': [Errno 2] No such file or directory: 'git'", "committer": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%cn']': [Errno 2] No such file or directory: 'git'", "committer_email": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%ce']': [Errno 2] No such file or directory: 'git'", "date_ISO": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%cd']': [Errno 2] No such file or directory: 'git'", "message": "# Unexpected error '['git', 'log', '-1', '--pretty=format:%B']': [Errno 2] No such file or directory: 'git'", "raw": "# Unexpected error '['git', 'log', '-1']': [Errno 2] No such file or directory: 'git'", "root_dir": "# Unexpected error '['git', 'rev-parse', '--show-toplevel']': [Errno 2] No such file or directory: 'git'"}, "social": [{"icon": "fontawesome/brands/github", "link": "https://github.com/art049"}, {"icon": "fontawesome/brands/twitter", "link": "https://twitter.com/art049"}, {"icon": "fontawesome/brands/linkedin", "link": "https://www.linkedin.com/in/arthur-pastel-a08579112"}], "analytics": {"provider": "google", "property": "UA-180814888-1"}, "macros": {"context": "Function: (obj: dict = None) \n*Default Mkdocs-Macro*: List an object\n(by default the variables)\n", "macros_info": "Function: () \n*Test/debug function*:\nlist useful documentation on the mkdocs_macro environment.\n", "now": "Function: () \n*Default Mkdocs-Macro*:\nGet the current time (at the moment of the project build).\nIt returns a datetime object. \nUsed alone, it provides a timestamp.\nTo get the year use `now().year`, for the month number \n`now().month`, etc.\n", "fix_url": "Function: (url) \nIf url is relative, fix it so that it points to the docs directory.\nThis is necessary because relative links in markdown must be adapted\nin html ('img/foo.png' => '../img/img.png').\n", "async_sync_snippet": "Function: (folder: str, filename: str, hl_lines=None, linenums=True) None"}, "filters": {"pretty": "Function: (var_list) \n*Default Mkdocs-Macro*: Prettify a dictionary or object \n(used for environment documentation, or debugging).\n\nNote: it will work only on the product of the `context()` macro\n\nTo prettify any object `obj`, thus use: `context(obj) | pretty`\n", "relative_url": "Function: (path: str) \n*Default Mkdocs-Macro*:\nconvert the path of any page according to MkDoc's internal logic,\ninto a URL relative to the current page\n(implements the `normalize_url()` function from `mkdocs.util`).\nTypically used to manage custom navigation:\n`{{ page.url | relative_url }}`.\n"}, "filters_builtin": {"abs": "<built-in function abs>", "attr": "Function: (environment: 'Environment', obj: Any, name: str) -> Union[jinja2.runtime.Undefined, Any] Get an attribute of an object. ``foo|attr(\"bar\")`` works like\n``foo.bar`` just that always an attribute is returned and items are not\nlooked up.\n\nSee :ref:`Notes on subscriptions <notes-on-subscriptions>` for more details.\n", "batch": "Function: (value: 't.Iterable[V]', linecount: int, fill_with: 't.Optional[V]' = None) -> 't.Iterator[t.List[V]]' \nA filter that batches items. It works pretty much like `slice`\njust the other way round. It returns a list of lists with the\ngiven number of items. If you provide a second parameter this\nis used to fill up missing items. See this example:\n\n.. sourcecode:: html+jinja\n\n <table>\n {%- for row in items|batch(3, ' ') %}\n <tr>\n {%- for column in row %}\n <td>{{ column }}</td>\n {%- endfor %}\n </tr>\n {%- endfor %}\n </table>\n", "capitalize": "Function: (s: str) -> str Capitalize a value. The first character will be uppercase, all others\nlowercase.\n", "center": "Function: (value: str, width: int = 80) -> str Centers the value in a field of a given width.", "count": "<built-in function len>", "d": "Function: (value: ~V, default_value: ~V = '', boolean: bool = False) -> ~V If the value is undefined it will return the passed default value,\notherwise the value of the variable:\n\n.. sourcecode:: jinja\n\n {{ my_variable|default('my_variable is not defined') }}\n\nThis will output the value of ``my_variable`` if the variable was\ndefined, otherwise ``'my_variable is not defined'``. If you want\nto use default with variables that evaluate to false you have to\nset the second parameter to `true`:\n\n.. sourcecode:: jinja\n\n {{ ''|default('the string was empty', true) }}\n\n.. versionchanged:: 2.11\n It's now possible to configure the :class:`~jinja2.Environment` with\n :class:`~jinja2.ChainableUndefined` to make the `default` filter work\n on nested elements and attributes that may contain undefined values\n in the chain without getting an :exc:`~jinja2.UndefinedError`.\n", "default": "Function: (value: ~V, default_value: ~V = '', boolean: bool = False) -> ~V If the value is undefined it will return the passed default value,\notherwise the value of the variable:\n\n.. sourcecode:: jinja\n\n {{ my_variable|default('my_variable is not defined') }}\n\nThis will output the value of ``my_variable`` if the variable was\ndefined, otherwise ``'my_variable is not defined'``. If you want\nto use default with variables that evaluate to false you have to\nset the second parameter to `true`:\n\n.. sourcecode:: jinja\n\n {{ ''|default('the string was empty', true) }}\n\n.. versionchanged:: 2.11\n It's now possible to configure the :class:`~jinja2.Environment` with\n :class:`~jinja2.ChainableUndefined` to make the `default` filter work\n on nested elements and attributes that may contain undefined values\n in the chain without getting an :exc:`~jinja2.UndefinedError`.\n", "dictsort": "Function: (value: Mapping[~K, ~V], case_sensitive: bool = False, by: 'te.Literal[\"key\", \"value\"]' = 'key', reverse: bool = False) -> List[Tuple[~K, ~V]] Sort a dict and yield (key, value) pairs. Python dicts may not\nbe in the order you want to display them in, so sort them first.\n\n.. sourcecode:: jinja\n\n {% for key, value in mydict|dictsort %}\n sort the dict by key, case insensitive\n\n {% for key, value in mydict|dictsort(reverse=true) %}\n sort the dict by key, case insensitive, reverse order\n\n {% for key, value in mydict|dictsort(true) %}\n sort the dict by key, case sensitive\n\n {% for key, value in mydict|dictsort(false, 'value') %}\n sort the dict by value, case insensitive\n", "e": "<built-in function escape>", "escape": "<built-in function escape>", "filesizeformat": "Function: (value: Union[str, float, int], binary: bool = False) -> str Format the value like a 'human-readable' file size (i.e. 13 kB,\n4.1 MB, 102 Bytes, etc). Per default decimal prefixes are used (Mega,\nGiga, etc.), if the second parameter is set to `True` the binary\nprefixes are used (Mebi, Gibi).\n", "first": "Function: (environment: 'Environment', seq: 't.Iterable[V]') -> 't.Union[V, Undefined]' Return the first item of a sequence.", "float": "Function: (value: Any, default: float = 0.0) -> float Convert the value into a floating point number. If the\nconversion doesn't work it will return ``0.0``. You can\noverride this default using the first parameter.\n", "forceescape": "Function: (value: 't.Union[str, HasHTML]') -> markupsafe.Markup Enforce HTML escaping. This will probably double escape variables.", "format": "Function: (value: str, *args: Any, **kwargs: Any) -> str Apply the given values to a `printf-style`_ format string, like\n``string % values``.\n\n.. sourcecode:: jinja\n\n {{ \"%s, %s!\"|format(greeting, name) }}\n Hello, World!\n\nIn most cases it should be more convenient and efficient to use the\n``%`` operator or :meth:`str.format`.\n\n.. code-block:: text\n\n {{ \"%s, %s!\" % (greeting, name) }}\n {{ \"{}, {}!\".format(greeting, name) }}\n\n.. _printf-style: https://docs.python.org/library/stdtypes.html\n #printf-style-string-formatting\n", "groupby": "Function: (environment: 'Environment', value: 't.Iterable[V]', attribute: Union[str, int], default: Optional[Any] = None, case_sensitive: bool = False) -> 't.List[_GroupTuple]' Group a sequence of objects by an attribute using Python's\n:func:`itertools.groupby`. The attribute can use dot notation for\nnested access, like ``\"address.city\"``. Unlike Python's ``groupby``,\nthe values are sorted first so only one group is returned for each\nunique value.\n\nFor example, a list of ``User`` objects with a ``city`` attribute\ncan be rendered in groups. In this example, ``grouper`` refers to\nthe ``city`` value of the group.\n\n.. sourcecode:: html+jinja\n\n <ul>{% for city, items in users|groupby(\"city\") %}\n <li>{{ city }}\n <ul>{% for user in items %}\n <li>{{ user.name }}\n {% endfor %}</ul>\n </li>\n {% endfor %}</ul>\n\n``groupby`` yields namedtuples of ``(grouper, list)``, which\ncan be used instead of the tuple unpacking above. ``grouper`` is the\nvalue of the attribute, and ``list`` is the items with that value.\n\n.. sourcecode:: html+jinja\n\n <ul>{% for group in users|groupby(\"city\") %}\n <li>{{ group.grouper }}: {{ group.list|join(\", \") }}\n {% endfor %}</ul>\n\nYou can specify a ``default`` value to use if an object in the list\ndoes not have the given attribute.\n\n.. sourcecode:: jinja\n\n <ul>{% for city, items in users|groupby(\"city\", default=\"NY\") %}\n <li>{{ city }}: {{ items|map(attribute=\"name\")|join(\", \") }}</li>\n {% endfor %}</ul>\n\nLike the :func:`~jinja-filters.sort` filter, sorting and grouping is\ncase-insensitive by default. The ``key`` for each group will have\nthe case of the first item in that group of values. For example, if\na list of users has cities ``[\"CA\", \"NY\", \"ca\"]``, the \"CA\" group\nwill have two values. This can be disabled by passing\n``case_sensitive=True``.\n\n.. versionchanged:: 3.1\n Added the ``case_sensitive`` parameter. Sorting and grouping is\n case-insensitive by default, matching other filters that do\n comparisons.\n\n.. versionchanged:: 3.0\n Added the ``default`` parameter.\n\n.. versionchanged:: 2.6\n The attribute supports dot notation for nested access.\n", "indent": "Function: (s: str, width: Union[int, str] = 4, first: bool = False, blank: bool = False) -> str Return a copy of the string with each line indented by 4 spaces. The\nfirst line and blank lines are not indented by default.\n\n:param width: Number of spaces, or a string, to indent by.\n:param first: Don't skip indenting the first line.\n:param blank: Don't skip indenting empty lines.\n\n.. versionchanged:: 3.0\n ``width`` can be a string.\n\n.. versionchanged:: 2.10\n Blank lines are not indented by default.\n\n Rename the ``indentfirst`` argument to ``first``.\n", "int": "Function: (value: Any, default: int = 0, base: int = 10) -> int Convert the value into an integer. If the\nconversion doesn't work it will return ``0``. You can\noverride this default using the first parameter. You\ncan also override the default base (10) in the second\nparameter, which handles input with prefixes such as\n0b, 0o and 0x for bases 2, 8 and 16 respectively.\nThe base is ignored for decimal numbers and non-string values.\n", "join": "Function: (eval_ctx: 'EvalContext', value: Iterable[Any], d: str = '', attribute: Union[str, int, NoneType] = None) -> str Return a string which is the concatenation of the strings in the\nsequence. The separator between elements is an empty string per\ndefault, you can define it with the optional parameter:\n\n.. sourcecode:: jinja\n\n {{ [1, 2, 3]|join('|') }}\n -> 1|2|3\n\n {{ [1, 2, 3]|join }}\n -> 123\n\nIt is also possible to join certain attributes of an object:\n\n.. sourcecode:: jinja\n\n {{ users|join(', ', attribute='username') }}\n\n.. versionadded:: 2.6\n The `attribute` parameter was added.\n", "last": "Function: (environment: 'Environment', seq: 't.Reversible[V]') -> 't.Union[V, Undefined]' Return the last item of a sequence.\n\nNote: Does not work with generators. You may want to explicitly\nconvert it to a list:\n\n.. sourcecode:: jinja\n\n {{ data | selectattr('name', '==', 'Jinja') | list | last }}\n", "length": "<built-in function len>", "list": "Function: (value: 't.Iterable[V]') -> 't.List[V]' Convert the value into a list. If it was a string the returned list\nwill be a list of characters.\n", "lower": "Function: (s: str) -> str Convert a value to lowercase.", "items": "Function: (value: Union[Mapping[~K, ~V], jinja2.runtime.Undefined]) -> Iterator[Tuple[~K, ~V]] Return an iterator over the ``(key, value)`` items of a mapping.\n\n``x|items`` is the same as ``x.items()``, except if ``x`` is\nundefined an empty iterator is returned.\n\nThis filter is useful if you expect the template to be rendered with\nan implementation of Jinja in another programming language that does\nnot have a ``.items()`` method on its mapping type.\n\n.. code-block:: html+jinja\n\n <dl>\n {% for key, value in my_dict|items %}\n <dt>{{ key }}\n <dd>{{ value }}\n {% endfor %}\n </dl>\n\n.. versionadded:: 3.1\n", "map": "Function: (context: 'Context', value: Iterable[Any], *args: Any, **kwargs: Any) -> Iterable[Any] Applies a filter on a sequence of objects or looks up an attribute.\nThis is useful when dealing with lists of objects but you are really\nonly interested in a certain value of it.\n\nThe basic usage is mapping on an attribute. Imagine you have a list\nof users but you are only interested in a list of usernames:\n\n.. sourcecode:: jinja\n\n Users on this page: {{ users|map(attribute='username')|join(', ') }}\n\nYou can specify a ``default`` value to use if an object in the list\ndoes not have the given attribute.\n\n.. sourcecode:: jinja\n\n {{ users|map(attribute=\"username\", default=\"Anonymous\")|join(\", \") }}\n\nAlternatively you can let it invoke a filter by passing the name of the\nfilter and the arguments afterwards. A good example would be applying a\ntext conversion filter on a sequence:\n\n.. sourcecode:: jinja\n\n Users on this page: {{ titles|map('lower')|join(', ') }}\n\nSimilar to a generator comprehension such as:\n\n.. code-block:: python\n\n (u.username for u in users)\n (getattr(u, \"username\", \"Anonymous\") for u in users)\n (do_lower(x) for x in titles)\n\n.. versionchanged:: 2.11.0\n Added the ``default`` parameter.\n\n.. versionadded:: 2.7\n", "min": "Function: (environment: 'Environment', value: 't.Iterable[V]', case_sensitive: bool = False, attribute: Union[str, int, NoneType] = None) -> 't.Union[V, Undefined]' Return the smallest item from the sequence.\n\n.. sourcecode:: jinja\n\n {{ [1, 2, 3]|min }}\n -> 1\n\n:param case_sensitive: Treat upper and lower case strings as distinct.\n:param attribute: Get the object with the min value of this attribute.\n", "max": "Function: (environment: 'Environment', value: 't.Iterable[V]', case_sensitive: bool = False, attribute: Union[str, int, NoneType] = None) -> 't.Union[V, Undefined]' Return the largest item from the sequence.\n\n.. sourcecode:: jinja\n\n {{ [1, 2, 3]|max }}\n -> 3\n\n:param case_sensitive: Treat upper and lower case strings as distinct.\n:param attribute: Get the object with the max value of this attribute.\n", "pprint": "Function: (value: Any) -> str Pretty print a variable. Useful for debugging.", "random": "Function: (context: 'Context', seq: 't.Sequence[V]') -> 't.Union[V, Undefined]' Return a random item from the sequence.", "reject": "Function: (context: 'Context', value: 't.Iterable[V]', *args: Any, **kwargs: Any) -> 't.Iterator[V]' Filters a sequence of objects by applying a test to each object,\nand rejecting the objects with the test succeeding.\n\nIf no test is specified, each object will be evaluated as a boolean.\n\nExample usage:\n\n.. sourcecode:: jinja\n\n {{ numbers|reject(\"odd\") }}\n\nSimilar to a generator comprehension such as:\n\n.. code-block:: python\n\n (n for n in numbers if not test_odd(n))\n\n.. versionadded:: 2.7\n", "rejectattr": "Function: (context: 'Context', value: 't.Iterable[V]', *args: Any, **kwargs: Any) -> 't.Iterator[V]' Filters a sequence of objects by applying a test to the specified\nattribute of each object, and rejecting the objects with the test\nsucceeding.\n\nIf no test is specified, the attribute's value will be evaluated as\na boolean.\n\n.. sourcecode:: jinja\n\n {{ users|rejectattr(\"is_active\") }}\n {{ users|rejectattr(\"email\", \"none\") }}\n\nSimilar to a generator comprehension such as:\n\n.. code-block:: python\n\n (user for user in users if not user.is_active)\n (user for user in users if not test_none(user.email))\n\n.. versionadded:: 2.7\n", "replace": "Function: (eval_ctx: 'EvalContext', s: str, old: str, new: str, count: Optional[int] = None) -> str Return a copy of the value with all occurrences of a substring\nreplaced with a new one. The first argument is the substring\nthat should be replaced, the second is the replacement string.\nIf the optional third argument ``count`` is given, only the first\n``count`` occurrences are replaced:\n\n.. sourcecode:: jinja\n\n {{ \"Hello World\"|replace(\"Hello\", \"Goodbye\") }}\n -> Goodbye World\n\n {{ \"aaaaargh\"|replace(\"a\", \"d'oh, \", 2) }}\n -> d'oh, d'oh, aaargh\n", "reverse": "Function: (value: Union[str, Iterable[~V]]) -> Union[str, Iterable[~V]] Reverse the object or return an iterator that iterates over it the other\nway round.\n", "round": "Function: (value: float, precision: int = 0, method: 'te.Literal[\"common\", \"ceil\", \"floor\"]' = 'common') -> float Round the number to a given precision. The first\nparameter specifies the precision (default is ``0``), the\nsecond the rounding method:\n\n- ``'common'`` rounds either up or down\n- ``'ceil'`` always rounds up\n- ``'floor'`` always rounds down\n\nIf you don't specify a method ``'common'`` is used.\n\n.. sourcecode:: jinja\n\n {{ 42.55|round }}\n -> 43.0\n {{ 42.55|round(1, 'floor') }}\n -> 42.5\n\nNote that even if rounded to 0 precision, a float is returned. If\nyou need a real integer, pipe it through `int`:\n\n.. sourcecode:: jinja\n\n {{ 42.55|round|int }}\n -> 43\n", "safe": "Function: (value: str) -> markupsafe.Markup Mark the value as safe which means that in an environment with automatic\nescaping enabled this variable will not be escaped.\n", "select": "Function: (context: 'Context', value: 't.Iterable[V]', *args: Any, **kwargs: Any) -> 't.Iterator[V]' Filters a sequence of objects by applying a test to each object,\nand only selecting the objects with the test succeeding.\n\nIf no test is specified, each object will be evaluated as a boolean.\n\nExample usage:\n\n.. sourcecode:: jinja\n\n {{ numbers|select(\"odd\") }}\n {{ numbers|select(\"odd\") }}\n {{ numbers|select(\"divisibleby\", 3) }}\n {{ numbers|select(\"lessthan\", 42) }}\n {{ strings|select(\"equalto\", \"mystring\") }}\n\nSimilar to a generator comprehension such as:\n\n.. code-block:: python\n\n (n for n in numbers if test_odd(n))\n (n for n in numbers if test_divisibleby(n, 3))\n\n.. versionadded:: 2.7\n", "selectattr": "Function: (context: 'Context', value: 't.Iterable[V]', *args: Any, **kwargs: Any) -> 't.Iterator[V]' Filters a sequence of objects by applying a test to the specified\nattribute of each object, and only selecting the objects with the\ntest succeeding.\n\nIf no test is specified, the attribute's value will be evaluated as\na boolean.\n\nExample usage:\n\n.. sourcecode:: jinja\n\n {{ users|selectattr(\"is_active\") }}\n {{ users|selectattr(\"email\", \"none\") }}\n\nSimilar to a generator comprehension such as:\n\n.. code-block:: python\n\n (user for user in users if user.is_active)\n (user for user in users if test_none(user.email))\n\n.. versionadded:: 2.7\n", "slice": "Function: (value: 't.Collection[V]', slices: int, fill_with: 't.Optional[V]' = None) -> 't.Iterator[t.List[V]]' Slice an iterator and return a list of lists containing\nthose items. Useful if you want to create a div containing\nthree ul tags that represent columns:\n\n.. sourcecode:: html+jinja\n\n <div class=\"columnwrapper\">\n {%- for column in items|slice(3) %}\n <ul class=\"column-{{ loop.index }}\">\n {%- for item in column %}\n <li>{{ item }}</li>\n {%- endfor %}\n </ul>\n {%- endfor %}\n </div>\n\nIf you pass it a second argument it's used to fill missing\nvalues on the last iteration.\n", "sort": "Function: (environment: 'Environment', value: 't.Iterable[V]', reverse: bool = False, case_sensitive: bool = False, attribute: Union[str, int, NoneType] = None) -> 't.List[V]' Sort an iterable using Python's :func:`sorted`.\n\n.. sourcecode:: jinja\n\n {% for city in cities|sort %}\n ...\n {% endfor %}\n\n:param reverse: Sort descending instead of ascending.\n:param case_sensitive: When sorting strings, sort upper and lower\n case separately.\n:param attribute: When sorting objects or dicts, an attribute or\n key to sort by. Can use dot notation like ``\"address.city\"``.\n Can be a list of attributes like ``\"age,name\"``.\n\nThe sort is stable, it does not change the relative order of\nelements that compare equal. This makes it is possible to chain\nsorts on different attributes and ordering.\n\n.. sourcecode:: jinja\n\n {% for user in users|sort(attribute=\"name\")\n |sort(reverse=true, attribute=\"age\") %}\n ...\n {% endfor %}\n\nAs a shortcut to chaining when the direction is the same for all\nattributes, pass a comma separate list of attributes.\n\n.. sourcecode:: jinja\n\n {% for user in users|sort(attribute=\"age,name\") %}\n ...\n {% endfor %}\n\n.. versionchanged:: 2.11.0\n The ``attribute`` parameter can be a comma separated list of\n attributes, e.g. ``\"age,name\"``.\n\n.. versionchanged:: 2.6\n The ``attribute`` parameter was added.\n", "string": "<built-in function soft_str>", "striptags": "Function: (value: 't.Union[str, HasHTML]') -> str Strip SGML/XML tags and replace adjacent whitespace by one space.", "sum": "Function: (environment: 'Environment', iterable: 't.Iterable[V]', attribute: Union[str, int, NoneType] = None, start: ~V = 0) -> ~V Returns the sum of a sequence of numbers plus the value of parameter\n'start' (which defaults to 0). When the sequence is empty it returns\nstart.\n\nIt is also possible to sum up only certain attributes:\n\n.. sourcecode:: jinja\n\n Total: {{ items|sum(attribute='price') }}\n\n.. versionchanged:: 2.6\n The ``attribute`` parameter was added to allow summing up over\n attributes. Also the ``start`` parameter was moved on to the right.\n", "title": "Function: (s: str) -> str Return a titlecased version of the value. I.e. words will start with\nuppercase letters, all remaining characters are lowercase.\n", "trim": "Function: (value: str, chars: Optional[str] = None) -> str Strip leading and trailing characters, by default whitespace.", "truncate": "Function: (env: 'Environment', s: str, length: int = 255, killwords: bool = False, end: str = '...', leeway: Optional[int] = None) -> str Return a truncated copy of the string. The length is specified\nwith the first parameter which defaults to ``255``. If the second\nparameter is ``true`` the filter will cut the text at length. Otherwise\nit will discard the last word. If the text was in fact\ntruncated it will append an ellipsis sign (``\"...\"``). If you want a\ndifferent ellipsis sign than ``\"...\"`` you can specify it using the\nthird parameter. Strings that only exceed the length by the tolerance\nmargin given in the fourth parameter will not be truncated.\n\n.. sourcecode:: jinja\n\n {{ \"foo bar baz qux\"|truncate(9) }}\n -> \"foo...\"\n {{ \"foo bar baz qux\"|truncate(9, True) }}\n -> \"foo ba...\"\n {{ \"foo bar baz qux\"|truncate(11) }}\n -> \"foo bar baz qux\"\n {{ \"foo bar baz qux\"|truncate(11, False, '...', 0) }}\n -> \"foo bar...\"\n\nThe default leeway on newer Jinja versions is 5 and was 0 before but\ncan be reconfigured globally.\n", "unique": "Function: (environment: 'Environment', value: 't.Iterable[V]', case_sensitive: bool = False, attribute: Union[str, int, NoneType] = None) -> 't.Iterator[V]' Returns a list of unique items from the given iterable.\n\n.. sourcecode:: jinja\n\n {{ ['foo', 'bar', 'foobar', 'FooBar']|unique|list }}\n -> ['foo', 'bar', 'foobar']\n\nThe unique items are yielded in the same order as their first occurrence in\nthe iterable passed to the filter.\n\n:param case_sensitive: Treat upper and lower case strings as distinct.\n:param attribute: Filter objects with unique values for this attribute.\n", "upper": "Function: (s: str) -> str Convert a value to uppercase.", "urlencode": "Function: (value: Union[str, Mapping[str, Any], Iterable[Tuple[str, Any]]]) -> str Quote data for use in a URL path or query using UTF-8.\n\nBasic wrapper around :func:`urllib.parse.quote` when given a\nstring, or :func:`urllib.parse.urlencode` for a dict or iterable.\n\n:param value: Data to quote. A string will be quoted directly. A\n dict or iterable of ``(key, value)`` pairs will be joined as a\n query string.\n\nWhen given a string, \"/\" is not quoted. HTTP servers treat \"/\" and\n\"%2F\" equivalently in paths. If you need quoted slashes, use the\n``|replace(\"/\", \"%2F\")`` filter.\n\n.. versionadded:: 2.7\n", "urlize": "Function: (eval_ctx: 'EvalContext', value: str, trim_url_limit: Optional[int] = None, nofollow: bool = False, target: Optional[str] = None, rel: Optional[str] = None, extra_schemes: Optional[Iterable[str]] = None) -> str Convert URLs in text into clickable links.\n\nThis may not recognize links in some situations. Usually, a more\ncomprehensive formatter, such as a Markdown library, is a better\nchoice.\n\nWorks on ``http://``, ``https://``, ``www.``, ``mailto:``, and email\naddresses. Links with trailing punctuation (periods, commas, closing\nparentheses) and leading punctuation (opening parentheses) are\nrecognized excluding the punctuation. Email addresses that include\nheader fields are not recognized (for example,\n``mailto:address@example.com?cc=copy@example.com``).\n\n:param value: Original text containing URLs to link.\n:param trim_url_limit: Shorten displayed URL values to this length.\n:param nofollow: Add the ``rel=nofollow`` attribute to links.\n:param target: Add the ``target`` attribute to links.\n:param rel: Add the ``rel`` attribute to links.\n:param extra_schemes: Recognize URLs that start with these schemes\n in addition to the default behavior. Defaults to\n ``env.policies[\"urlize.extra_schemes\"]``, which defaults to no\n extra schemes.\n\n.. versionchanged:: 3.0\n The ``extra_schemes`` parameter was added.\n\n.. versionchanged:: 3.0\n Generate ``https://`` links for URLs without a scheme.\n\n.. versionchanged:: 3.0\n The parsing rules were updated. Recognize email addresses with\n or without the ``mailto:`` scheme. Validate IP addresses. Ignore\n parentheses and brackets in more cases.\n\n.. versionchanged:: 2.8\n The ``target`` parameter was added.\n", "wordcount": "Function: (s: str) -> int Count the words in that string.", "wordwrap": "Function: (environment: 'Environment', s: str, width: int = 79, break_long_words: bool = True, wrapstring: Optional[str] = None, break_on_hyphens: bool = True) -> str Wrap a string to the given width. Existing newlines are treated\nas paragraphs to be wrapped separately.\n\n:param s: Original text to wrap.\n:param width: Maximum length of wrapped lines.\n:param break_long_words: If a word is longer than ``width``, break\n it across lines.\n:param break_on_hyphens: If a word contains hyphens, it may be split\n across lines.\n:param wrapstring: String to join each wrapped line. Defaults to\n :attr:`Environment.newline_sequence`.\n\n.. versionchanged:: 2.11\n Existing newlines are treated as paragraphs wrapped separately.\n\n.. versionchanged:: 2.11\n Added the ``break_on_hyphens`` parameter.\n\n.. versionchanged:: 2.7\n Added the ``wrapstring`` parameter.\n", "xmlattr": "Function: (eval_ctx: 'EvalContext', d: Mapping[str, Any], autospace: bool = True) -> str Create an SGML/XML attribute string based on the items in a dict.\n\n**Values** that are neither ``none`` nor ``undefined`` are automatically\nescaped, safely allowing untrusted user input.\n\nUser input should not be used as **keys** to this filter. If any key\ncontains a space, ``/`` solidus, ``>`` greater-than sign, or ``=`` equals\nsign, this fails with a ``ValueError``. Regardless of this, user input\nshould never be used as keys to this filter, or must be separately validated\nfirst.\n\n.. sourcecode:: html+jinja\n\n <ul{{ {'class': 'my_list', 'missing': none,\n 'id': 'list-%d'|format(variable)}|xmlattr }}>\n ...\n </ul>\n\nResults in something like this:\n\n.. sourcecode:: html\n\n <ul class=\"my_list\" id=\"list-42\">\n ...\n </ul>\n\nAs you can see it automatically prepends a space in front of the item\nif the filter returned something unless the second parameter is false.\n\n.. versionchanged:: 3.1.4\n Keys with ``/`` solidus, ``>`` greater-than sign, or ``=`` equals sign\n are not allowed.\n\n.. versionchanged:: 3.1.3\n Keys with spaces are not allowed.\n", "tojson": "Function: (eval_ctx: 'EvalContext', value: Any, indent: Optional[int] = None) -> markupsafe.Markup Serialize an object to a string of JSON, and mark it safe to\nrender in HTML. This filter is only for use in HTML documents.\n\nThe returned string is safe to render in HTML documents and\n``<script>`` tags. The exception is in HTML attributes that are\ndouble quoted; either use single quotes or the ``|forceescape``\nfilter.\n\n:param value: The object to serialize to JSON.\n:param indent: The ``indent`` parameter passed to ``dumps``, for\n pretty-printing the value.\n\n.. versionadded:: 2.9\n"}} INFO - [macros] - Config macros: ['context', 'macros_info', 'now', 'fix_url', 'async_sync_snippet'] DEBUG - [macros] - Config macros: {"context": "Function: (obj: dict = None) \n*Default Mkdocs-Macro*: List an object\n(by default the variables)\n", "macros_info": "Function: () \n*Test/debug function*:\nlist useful documentation on the mkdocs_macro environment.\n", "now": "Function: () \n*Default Mkdocs-Macro*:\nGet the current time (at the moment of the project build).\nIt returns a datetime object. \nUsed alone, it provides a timestamp.\nTo get the year use `now().year`, for the month number \n`now().month`, etc.\n", "fix_url": "Function: (url) \nIf url is relative, fix it so that it points to the docs directory.\nThis is necessary because relative links in markdown must be adapted\nin html ('img/foo.png' => '../img/img.png').\n", "async_sync_snippet": "Function: (folder: str, filename: str, hl_lines=None, linenums=True) None"} @@ -2602,7 +2638,7 @@ DEBUG - Running `post_build` event from plugin 'macros' DEBUG - Running `post_build` event from plugin 'mkdocstrings' DEBUG - mkdocstrings: Tearing handlers down -INFO - Documentation built in 5.15 seconds +INFO - Documentation built in 3.58 seconds rm -rf html/sitemap.xml.gz html/__pycache__ make[1]: Leaving directory '/build/reproducible-path/python-odmantic-1.0.2' dh_auto_test -O--buildsystem=pybuild @@ -2821,7 +2857,7 @@ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =============================== inline snapshot ================================ -==== 323 passed, 19 skipped, 16 deselected, 1 xfailed, 44 warnings in 3.02s ==== +==== 323 passed, 19 skipped, 16 deselected, 1 xfailed, 44 warnings in 1.99s ==== create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=pybuild dh_prep -O--buildsystem=pybuild @@ -2843,8 +2879,8 @@ dpkg-gencontrol: warning: Depends field of package python-odmantic-doc: substitution variable ${mkdocs:Depends} used, but is not defined dh_md5sums -O--buildsystem=pybuild dh_builddeb -O--buildsystem=pybuild -dpkg-deb: building package 'python3-odmantic' in '../python3-odmantic_1.0.2-3_all.deb'. dpkg-deb: building package 'python-odmantic-doc' in '../python-odmantic-doc_1.0.2-3_all.deb'. +dpkg-deb: building package 'python3-odmantic' in '../python3-odmantic_1.0.2-3_all.deb'. dpkg-genbuildinfo --build=binary -O../python-odmantic_1.0.2-3_arm64.buildinfo dpkg-genchanges --build=binary -O../python-odmantic_1.0.2-3_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -2853,12 +2889,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1184012/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1184012/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/34309 and its subdirectories -I: Current time: Mon Apr 27 08:53:37 -12 2026 -I: pbuilder-time-stamp: 1777323217 +I: removing directory /srv/workspace/pbuilder/1184012 and its subdirectories +I: Current time: Wed Mar 26 04:32:04 +14 2025 +I: pbuilder-time-stamp: 1742913124