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

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.6
File Size Uploaded
barefootjs-0.39.6.tar.gz 61.9 kB Details

Built distribution (wheel)

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

Total release size: 104.8 kB

Release files / barefootjs-0.39.6.tar.gz

Download URL barefootjs-0.39.6.tar.gz
Size 61.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2a823a10ca019b93ce24c0b94332fa32397128149280cd93ba8be619f24bfcb0
BLAKE2b-256 checksum
How to use checksums
f85c1f80e3cca81425e279587784367f36257c12d8cf309345029f7cf59e9190
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 15, 2026.

Transparency log

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

Download URL barefootjs-0.39.6-py3-none-any.whl
Size 42.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a04b800b5b39c9aea4216fdd9b4d7d3bac633cb48196714f61bc8c5a8b2d1d5
BLAKE2b-256 checksum
How to use checksums
3583355dbb3b1e1ab6e686dae82a6fa3a0ae986dffe28749f4545d5acc91bf0f
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 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.39.6 This release

2 release files

0.39.5

2 release files

0.39.1

2 release files

0.39.0

2 release files

0.38.0

2 release files

0.37.1

2 release files

0.37.0

2 release files

0.36.0

2 release files

0.35.8

2 release files

0.35.7

2 release files

0.35.6

2 release files

0.35.5

2 release files

0.33.3

2 release files

0.33.2

2 release files

0.33.1

2 release files

0.33.0

2 release files

0.32.0

2 release files

0.31.9

2 release files

0.31.8

2 release files

0.31.7

2 release files

0.31.6

2 release files

0.31.5

2 release files

0.29.0

2 release files

0.28.1

2 release files

0.28.0

2 release files

0.27.0

2 release files

0.26.4

2 release files

0.26.3

2 release files

0.26.2

2 release files

0.26.1

2 release files

0.26.0

2 release files

0.25.0

2 release files

0.24.1

2 release files

0.23.0

2 release files

0.21.4

2 release files

0.21.3

2 release files

0.21.2

2 release files

0.21.0

2 release files

0.20.0

2 release files

0.19.1

2 release files

0.19.0

2 release files

0.18.7

2 release files

0.18.5

2 release files

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