Skip to main content

codecraftai-webworks

Code Craft AI - WebWorks

Overview

codecraftai-webworks is a core component of the Code Craft AI technology stack. It provides robust, reusable foundation code designed to enable and orchestrate complex software automation tasks.

Installation

Using Poetry:

poetry add codecraftai-webworks

Markdown Books

BooksBlueprint serves a folder of markdown books as HTML pages. Navigation comes from the links in the markdown, not from the folders the files are in: the library’s index document (README.md at the root) links to the books, each book’s index document links to its chapters, and the order of those links, in lists or tables, is the reading order. The text of each link is the title the navigation shows. A link to a folder means the folder’s README.md (or index.md).

from ccai.webworks.books import BookLibrary, BooksBlueprint

library = BookLibrary("~/repos/codecraftai-books")
books = BooksBlueprint(library, mount_path="/books")
books.attach_to_webapp(webapp)

Each page shows its book’s contents, breadcrumbs, links to the previous and next documents and an outline of its headings. Links between the markdown files are rewritten to the URLs the documents are served at, and images in the library are served beside them. Nothing outside the library’s folder, and no hidden file, is ever served. Pages carry a Content-Security-Policy that allows no script.

The markdown is rendered by ccai.webworks.markdown (no third-party library): CommonMark plus GitHub tables, strikethrough and links made from bare addresses. Raw HTML in the markdown is escaped and links with unsafe schemes such as javascript: are dropped.

To read a library with the development server:

python source/examples/books/serve_books.py ~/repos/codecraftai-books --port 8000

Development

This repository provides a standard Poetry environment.

  1. Activate virtual environment: Run poetry shell and poetry install

  2. Test Execution: Tests run under the testbase runner. The single-host suite:

    testbase testing run --root source/testroots/ccai --includes=ccai.tests.singlehost --output=./.output/

    The functional site suite for the testcomponents site (needs Playwright and its Chromium browser; skipped cleanly without them):

    testbase testing run --root ./source/testsites/testcomponents --includes=testcomponents.tests --output=./.output/testcomponents-tests

References

  • User Guide <userguide/userguide.rst>

  • Coding Standards <userguide/10-00-coding-standards.rst>

Metadata

Release files for codecraftai-webworks 1.5.2

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

Source distribution (sdist)

Source distribution for codecraftai-webworks 1.5.2
File Size Uploaded Provenance Actions
codecraftai_webworks-1.5.2.tar.gz 2.0 MB With provenance Details for codecraftai_webworks-1.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codecraftai-webworks 1.5.2
File Interpreter ABI Platform Actions
codecraftai_webworks-1.5.2-py3-none-any.whl Python 3 none any Details for codecraftai_webworks-1.5.2-py3-none-any.whl

Total release size: 4.3 MB

Release files / codecraftai_webworks-1.5.2.tar.gz

Download URL codecraftai_webworks-1.5.2.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
1670749e08b0b2809da9cc9f390f62568046bdce285ea60fe21a5f9db8c472f7
BLAKE2b-256 checksum
How to use checksums
5931debb228e935b295a041559e5b2fc3bbd9fe9e2602784ff59baf99aa231cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / codecraftai_webworks-1.5.2-py3-none-any.whl

Download URL codecraftai_webworks-1.5.2-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0830d0278cd42a944b438ee52056b40f95c121b09d1df113504ff91f11a4a238
BLAKE2b-256 checksum
How to use checksums
d4babd30572fd532b8854745df67908065c3a51c6b2bb60ece64b3e0bb013bb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for codecraftai-webworks 1.5.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for codecraftai_webworks-1.5.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

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