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.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.5.0
File Size Uploaded Provenance
codecraftai_webworks-1.5.0.tar.gz 2.0 MB With provenance Details

Built distribution (wheel)

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

Total release size: 4.3 MB

Release files / codecraftai_webworks-1.5.0.tar.gz

Download URL codecraftai_webworks-1.5.0.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
ea1b2aed3a49162cd321605ec1c31ae773ae82142d93b6ab361c7b128bf0c74f
BLAKE2b-256 checksum
How to use checksums
2f470525122c417f72597a03646ff4347885e3fa9397941212855a6bb97b064b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 20, 2026.

Transparency log

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

Download URL codecraftai_webworks-1.5.0-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
91725884a489fb3224940e3671e7156c8b8ca3cff888a94a756e95da48cbf0ed
BLAKE2b-256 checksum
How to use checksums
070cf1fd3ea868c6590382e463fda331ce2bd66a1e79e64f771f3401bc00a4fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 20, 2026.

Transparency log

Security for codecraftai-webworks 1.5.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for codecraftai_webworks-1.5.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 20, 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.

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