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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

barefootjs-0.35.2.tar.gz (58.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

barefootjs-0.35.2-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file barefootjs-0.35.2.tar.gz.

File metadata

  • Download URL: barefootjs-0.35.2.tar.gz
  • Upload date:
  • Size: 58.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for barefootjs-0.35.2.tar.gz
Algorithm Hash digest
SHA256 562a17ea9557b1640e2ae1daf8b04b1d64ea6c251d6082bd4c2aa4993745ed7f
MD5 27e2ed316a68c468d937c780072a07bf
BLAKE2b-256 16c0499f2998fdbacdaf70d20c93a6f33def31eeabe781b02675ecb5b936811e

See more details on using hashes here.

Provenance

The following attestation bundles were made for barefootjs-0.35.2.tar.gz:

Publisher: release.yml on piconic-ai/barefootjs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file barefootjs-0.35.2-py3-none-any.whl.

File metadata

  • Download URL: barefootjs-0.35.2-py3-none-any.whl
  • Upload date:
  • Size: 40.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for barefootjs-0.35.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dcb55605e4e09f176ecedff6bdd1549270ff64a92e57e452ec353426311615cc
MD5 a939a4f0be5a8cffe2b9bf0fe689ac4b
BLAKE2b-256 dfdf745d3a7220fe692c08b6858d0164975cf8a1f527a70e7b197c6a23e3eaa3

See more details on using hashes here.

Provenance

The following attestation bundles were made for barefootjs-0.35.2-py3-none-any.whl:

Publisher: release.yml on piconic-ai/barefootjs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.35.8

2 files

0.35.7

2 files

0.35.6

2 files

0.35.5

2 files

0.35.4

2 files

0.35.3

2 files

This release

0.35.2 This release

2 files

0.35.1

2 files

0.35.0

2 files

0.34.0

2 files

0.33.6

2 files

0.33.4

2 files

0.33.3

2 files

0.33.2

2 files

0.33.1

2 files

0.33.0

2 files

0.32.0

2 files

0.31.10

2 files

0.31.9

2 files

0.31.8

2 files

0.31.7

2 files

0.31.6

2 files

0.31.5

2 files

0.31.4

2 files

0.31.3

2 files

0.31.2

2 files

0.31.1

2 files

0.31.0

2 files

0.30.6

2 files

0.30.5

2 files

0.30.4

2 files

0.30.2

2 files

0.30.0

2 files

0.29.0

2 files

0.28.1

2 files

0.28.0

2 files

0.27.0

2 files

0.26.4

2 files

0.26.3

2 files

0.26.2

2 files

0.26.1

2 files

0.26.0

2 files

0.25.0

2 files

0.24.1

2 files

0.23.0

2 files

0.21.4

2 files

0.21.3

2 files

0.21.2

2 files

0.21.0

2 files

0.20.0

2 files

0.19.1

2 files

0.19.0

2 files

0.18.7

2 files

0.18.5

2 files

0.18.4

2 files

0.18.3

2 files

0.18.2

2 files

0.18.1

2 files

0.18.0

2 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