Skip to main content

barefootjs

Python runtime for BarefootJS marked templates, targeting Jinja2.

BarefootJS is a fine-grained reactive TSX compiler: you write components in TSX, and the compiler emits templates for your backend's template engine plus the client-side JS that hydrates them. This package is the server half for Python — it renders the .jinja templates produced by the @barefootjs/jinja adapter.

Installation

pip install barefootjs

The only dependency is jinja2; everything else is stdlib.

Quick start

Generated .jinja templates call the BarefootJS instance as a bf object ({{ bf.scope_attr() }}, {{ bf.json(x) }}, {{ bf.spread_attrs(bag) }}):

from barefootjs import BarefootJS, JinjaBackend

backend = JinjaBackend(paths=["templates"])
bf = BarefootJS(None, {"backend": backend})
html = backend.render_named("counter", bf, {"count": 0})

Package layout

Module Role
runtime.py the engine-agnostic bf object
evaluator.py ParsedExpr evaluator for the *_eval helpers
search_params.py searchParams() SSR reader
backend_jinja.py the Jinja2 engine backend

Documentation

License

MIT

Metadata

Release files for barefootjs 0.39.9

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

Source distribution (sdist)

Source distribution for barefootjs 0.39.9
File Size Uploaded Provenance Actions
barefootjs-0.39.9.tar.gz 64.7 kB With provenance Details for barefootjs-0.39.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for barefootjs 0.39.9
File Interpreter ABI Platform Actions
barefootjs-0.39.9-py3-none-any.whl Python 3 none any Details for barefootjs-0.39.9-py3-none-any.whl

Total release size: 109.3 kB

Release files / barefootjs-0.39.9.tar.gz

Download URL barefootjs-0.39.9.tar.gz
Size 64.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d42e460047b2bdc166cf067811bfc059ef260835e4f8c89a6f06b6c7782f55b2
BLAKE2b-256 checksum
How to use checksums
68c546f584a13ad7c090adbabd9198161ab2bbcb50002f985a3dd4d7718aab6a
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 25, 2026.

Transparency log

Release files / barefootjs-0.39.9-py3-none-any.whl

Download URL barefootjs-0.39.9-py3-none-any.whl
Size 44.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08e20a4ae87fdf6bce7c216b0f458e2fe58d944f5bbbc1154c5e6f9df8d5a9bc
BLAKE2b-256 checksum
How to use checksums
2f9b9ba325e80d4b0c36a8a37ef9352da3b2b1678ea969a6b188a7699c4b4316
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 25, 2026.

Transparency log

Security for barefootjs 0.39.9

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 barefootjs-0.39.9.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 25, 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.

Release history Release notifications | RSS feed

This release

0.39.9 This release

2 release files Full provenance

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