lib

The lib directory is where user-defined Python code is stored in your project.

When a project is first created, two files are added under the lib directory:

The lib/soju.py file is the entry point for user-defined Python code that can be referenced from substitution parameters when pages are rendered.

The lib/handlers.py file lets you optionally run custom Python code during different parts of the build process when your web site is generated.

You can also create your own custom Python modules and store them under the lib directory. This way you can import them into the lib/soju.py and lib/handlers.py files as Python modules.

Tags: user-defined-python-code

This page was generated by Uriel with the following settings:

Page Details

Resource Path Project File
Node directories/lib nodes/directories/lib
Template default.html templates/default.html
URL /directories/lib/ public/directories/lib/index.html

Node Headers

Header (Lowercase) Value
tags user-defined-python-code
title lib
breadcrumb-separator »
canonical-url https://documentation.uriel.foo
rss-description Uriel Documentation
rss-image-height 32
rss-image-url /favicon-32x32.png
rss-image-width 32
rss-max-entries 50
rss-title Uriel Documentation
rss-url /rss.xml
sitemap-max-entries 10000
sitemap-url /sitemap.xml
tag-node tag
template default.html

Node Timestamps

Type Value
Created
Modified 2026-06-08T18:52:49-04:00

Node Methods

Method Value
get_parent_node() directories/index
get_path() directories/lib
get_node_type() file
get_url() /directories/lib/
get_canonical_url() https://documentation.uriel.foo/directories/lib/
get_name() lib
get_display_name() Lib
get_title() lib
get_escaped_title() lib
get_link() <a href="/directories/lib/">lib</a>
get_canonical_link() <a href="https://documentation.uriel.foo/directories/lib/">lib</a>
get_link_prefix() <p>
get_link_suffix() </p>
get_tags() ['user-defined-python-code']
get_dest_dir() ./public/directories/lib
get_dest_file() ./public/directories/lib/index.html
get_breadcrumb_separator() &raquo;