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

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

Built distribution (wheel)

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

Total release size: 4.3 MB

Release files / codecraftai_webworks-1.5.1.tar.gz

Download URL codecraftai_webworks-1.5.1.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
877773df95081e685e403b112102b69f1cbe349908b4e116f9e2cdc32965e425
BLAKE2b-256 checksum
How to use checksums
fc3ad41ce3ea57b9c8af39cf73437d2d0ab5af4b29f07f4382f8a45f58a330fb
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.1-py3-none-any.whl

Download URL codecraftai_webworks-1.5.1-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1493405200634873289626e10bc7df96932b814744baafaf202f07657b8cdefa
BLAKE2b-256 checksum
How to use checksums
e86f05edf2c2b55fd398f3c6dcc3411caf6333fb7c95e5403596058741a5ed08
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.1

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