Skip to main content

A minimal, secure javascript runtime for python

Project description

belgie

A minimal, secure JavaScript runtime for Python.

Package dependencies

Declare npm and JSR packages in pyproject.toml under [belgie.dependencies]. Top-level entries belong to the default group. Additional groups use nested tables:

[belgie.dependencies]
react = "^19"
std_path = "jsr:@std/path@^1"

[belgie.dependencies.dev]
"@types/react" = "^19"

[belgie.dependencies.test]
vitest = "^1"

Each key is an import alias. Values are either a version requirement (for npm packages) or a full npm: / jsr: specifier.

Locking and installing

Use belgie.dependencies.lock() or install() to resolve packages and write deno.lock. By default, only the default group is included. Pass groups to select one or more groups:

from belgie.dependencies import lock

lock()  # default group only
lock(groups=["default", "dev"])  # default and dev groups
lock(groups=["dev"])  # dev group only

PackageInstallResult.groups reports how many dependencies were resolved per group.

Async helpers (alock, ainstall, aupdate) accept the same arguments.

Runtime and tasks

When running JavaScript through Runtime or [belgie.scripts] tasks, belgie loads dependencies from all groups so dev-only tooling remains available at runtime.

Notes

  • Duplicate import aliases are not allowed across included groups.
  • Top-level string entries under [belgie.dependencies] map to the default group. A nested table whose key is literally default is treated as a separate named group.
  • The legacy [belgie.dev-dependencies] table is not supported; use [belgie.dependencies.dev] instead.

Project details


Download files

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

Source Distribution

belgie-0.20.0.tar.gz (119.7 kB view details)

Uploaded Source

Built Distributions

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

belgie-0.20.0-cp312-abi3-win_amd64.whl (32.7 MB view details)

Uploaded CPython 3.12+Windows x86-64

belgie-0.20.0-cp312-abi3-manylinux_2_28_x86_64.whl (36.5 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64

belgie-0.20.0-cp312-abi3-manylinux_2_28_aarch64.whl (36.6 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ ARM64

belgie-0.20.0-cp312-abi3-macosx_11_0_arm64.whl (32.5 MB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

belgie-0.20.0-cp312-abi3-macosx_10_12_x86_64.whl (33.8 MB view details)

Uploaded CPython 3.12+macOS 10.12+ x86-64

File details

Details for the file belgie-0.20.0.tar.gz.

File metadata

  • Download URL: belgie-0.20.0.tar.gz
  • Upload date:
  • Size: 119.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.20.0.tar.gz
Algorithm Hash digest
SHA256 e286af06b7d3ba54f2da39a484754e8b3f30ed899bbe5a2e71072f59be0bdbdd
MD5 969e6b1c0152243b1a6ee4509c6c98e5
BLAKE2b-256 d94b99db62bc6a8433cb30c1238f313648c85b9f8bc7bd57a7fc8eccf1c7da4e

See more details on using hashes here.

File details

Details for the file belgie-0.20.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: belgie-0.20.0-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 32.7 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.20.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3d87f70677ca3d311268aca890442d5ac3e6c0d99ead931bf771c9e7783dbcd8
MD5 cc2394a46b2340d38cd0e576e3e903d0
BLAKE2b-256 54e8101eab77eab00471f28d0566e6bf5121ae1cb7fd8a2af513ffb171ff565d

See more details on using hashes here.

File details

Details for the file belgie-0.20.0-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: belgie-0.20.0-cp312-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 36.5 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.20.0-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c31525a1acde96456538581bb8977c6aa6c48234b84d2148244bd615d828e1c6
MD5 0b076a9f8e87ad05bfca3825a18efce4
BLAKE2b-256 c360d214e7ba3e8f4f0fab95bcc8debaee1ae5ec87b40f3aa9da756cd21ae27e

See more details on using hashes here.

File details

Details for the file belgie-0.20.0-cp312-abi3-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: belgie-0.20.0-cp312-abi3-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 36.6 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.20.0-cp312-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 be1283943375aabfac68bfd23dc0d9aeae7fff92d6f845cd5c0d30a4d669ad49
MD5 a5baa402d9b641c676f5db03afd8a700
BLAKE2b-256 3f03ead49096a83cae99c95cb97002f1a502b38ae2a77eb255b2132067a9d8d5

See more details on using hashes here.

File details

Details for the file belgie-0.20.0-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: belgie-0.20.0-cp312-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 32.5 MB
  • Tags: CPython 3.12+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.20.0-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba24eef731d925118c8c416abcb34f752ea80862366c9698cb6eee4bc629b5ab
MD5 e5a925e626c2a6ab932b74a3751d8b42
BLAKE2b-256 1afad0057154e528c755bd03eb601d3af290fda0822809c375516fd077d2efb5

See more details on using hashes here.

File details

Details for the file belgie-0.20.0-cp312-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: belgie-0.20.0-cp312-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 33.8 MB
  • Tags: CPython 3.12+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for belgie-0.20.0-cp312-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8d1c769428236a44a0c595b1b88531615deb096d0767945501d2b8b5901382ca
MD5 db24194f0ae29a57bac8846fa9e9bbcd
BLAKE2b-256 9bcbc8544048fac1c684609a9bb0cd705b06d0f7ef6dc799bc15140b7d255a41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page