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.6.0

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.6.0
File Size Uploaded Provenance Actions
codecraftai_webworks-1.6.0.tar.gz 2.0 MB With provenance Details for codecraftai_webworks-1.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 4.3 MB

Release files / codecraftai_webworks-1.6.0.tar.gz

Download URL codecraftai_webworks-1.6.0.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
110a92bf8414dedd0edf39b36edc1b3aa00eb2d2c9b148232c6bd1687b1056f1
BLAKE2b-256 checksum
How to use checksums
d1a29e6d5bd84fc600ac6ddd21c9601956cabc3dbd1ddf0738f694e6927dc870
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 31, 2026.

Transparency log

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

Download URL codecraftai_webworks-1.6.0-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
60ea7dacdecbeea5dd6b45f15d67c84e3bfad79c7d321dd8c664f1e068930ce1
BLAKE2b-256 checksum
How to use checksums
f22dae96b606f0620a8d8cd9f161c511ea81a64ee4f52a266df3c2e36719b103
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 31, 2026.

Transparency log

Security for codecraftai-webworks 1.6.0

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.6.0.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 31, 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