Skip to main content

Python redistribution of Deno binaries

Project description

Deno for Python

PyPI version PyPI downloads License

The easiest way to install and use Deno — the modern JavaScript and TypeScript runtime — in your Python projects.

What is Deno?

Deno is a secure runtime for JavaScript and TypeScript that's built on V8, Rust, and Tokio. It features:

  • 🔒 Secure by default - No file, network, or environment access unless explicitly enabled
  • 🚀 TypeScript support - Built-in TypeScript compiler, no configuration needed
  • 📦 Modern module system - Native ES modules with URL imports
  • 🛠️ Built-in tooling - Includes formatter, linter, test runner, bundler, and more
  • 🌐 Web standard APIs - Compatible with browser APIs like fetch, WebSocket, and Web Workers
  • High performance - V8 engine with Rust-powered I/O

Installation

Using pip

pip install deno

Using uv (recommended)

uv add deno

Using poetry

poetry add deno

Usage

Command Line

Run Deno directly using uvx or pipx:

# Check version
uvx deno --version

# Run a script
uvx deno run https://examples.deno.land/hello-world.ts

# Start a REPL
uvx deno

With pipx:

pipx run deno --version

After installing with pip, the deno command is available in your PATH:

deno run --allow-net server.ts

Python API

Use the Python API to integrate Deno into your Python applications:

import deno
import subprocess

# Get the path to the Deno executable
deno_bin = deno.find_deno_bin()

# Run a Deno script from Python
result = subprocess.run(
    [deno_bin, "run", "--allow-net", "script.ts"],
    capture_output=True,
    text=True
)

print(result.stdout)

Example: Running TypeScript from Python

import deno
import subprocess
import tempfile
import os

# Create a temporary TypeScript file
ts_code = """
console.log("Hello from Deno!");
const data = { message: "TypeScript works!" };
console.log(JSON.stringify(data));
"""

with tempfile.NamedTemporaryFile(mode='w', suffix='.ts', delete=False) as f:
    f.write(ts_code)
    ts_file = f.name

try:
    # Execute with Deno
    result = subprocess.run(
        [deno.find_deno_bin(), "run", ts_file],
        capture_output=True,
        text=True
    )
    print(result.stdout)
finally:
    os.unlink(ts_file)

Platform Support

This package provides official Deno binaries for:

Platform Architectures
🍎 macOS x86_64 (Intel), arm64 (Apple Silicon)
🐧 Linux x86_64 (amd64), arm64 (aarch64)
🪟 Windows x86_64 (64-bit)

The appropriate binary for your platform is automatically downloaded and installed.

Common Use Cases

Running Deno Scripts in Python Projects

Integrate JavaScript/TypeScript functionality into your Python applications:

import deno
import subprocess

def run_deno_script(script_path: str, *args):
    """Execute a Deno script with arguments."""
    result = subprocess.run(
        [deno.find_deno_bin(), "run", "--allow-all", script_path, *args],
        capture_output=True,
        text=True
    )
    return result.stdout

output = run_deno_script("./scripts/process-data.ts", "input.json")

Using Deno as a Task Runner

Add Deno scripts to your Python project for tasks like:

  • Frontend asset building
  • API mocking
  • Data processing with TypeScript
  • Testing web APIs

CI/CD Integration

Install Deno in your CI/CD pipelines:

# GitHub Actions example
- name: Install Deno via pip
  run: pip install deno

- name: Run Deno tests
  run: deno test --allow-all

Why Use deno via PyPI?

  • Easy integration - Install Deno alongside Python dependencies
  • Version pinning - Lock Deno versions in requirements.txt or pyproject.toml
  • No manual downloads - Automatic binary management
  • Cross-platform - Works seamlessly across development and production environments
  • Python API - Programmatic access to Deno from Python code

Version Compatibility

The version of this package corresponds to the Deno version it distributes. For example:

  • deno==2.1.0 includes Deno v2.1.0
  • deno==2.0.0 includes Deno v2.0.0

Check the Deno releases for version details.

Resources

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

This repository redistributes official Deno binaries under the MIT license to make them easily installable via pip, uv, poetry, and other Python package managers.

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

deno-2.9.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distributions

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

deno-2.9.2-py3-none-win_amd64.whl (41.6 MB view details)

Uploaded Python 3Windows x86-64

deno-2.9.2-py3-none-manylinux_2_27_x86_64.whl (43.9 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ x86-64

deno-2.9.2-py3-none-manylinux_2_27_aarch64.whl (42.1 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ ARM64

deno-2.9.2-py3-none-macosx_11_0_arm64.whl (38.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

deno-2.9.2-py3-none-macosx_10_12_x86_64.whl (42.3 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file deno-2.9.2.tar.gz.

File metadata

  • Download URL: deno-2.9.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for deno-2.9.2.tar.gz
Algorithm Hash digest
SHA256 3b77d7689c15fb2c47d5a3927dc8cf70dbd408bc92e20c70da079c6d78980e34
MD5 6644e90be93994f4a6a87a64813b4b07
BLAKE2b-256 dc3cbf3a4e2c00f7eefd4ed2fd033a958cab3e92dcc539d3ab80351850cae99c

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.9.2.tar.gz:

Publisher: release.yml on denoland/deno_pypi

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

File details

Details for the file deno-2.9.2-py3-none-win_amd64.whl.

File metadata

  • Download URL: deno-2.9.2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 41.6 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for deno-2.9.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8e815d66b3e1314d028b2f0a05c75a331dd7025f4c825e12dd1f057207cee1f6
MD5 69b9ce5142f351dd5e4e51aa7cca3eb8
BLAKE2b-256 a93dc490c27e1f720baf014bb2c18b29d09b11c21d69fadfd69639e5904cdc95

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.9.2-py3-none-win_amd64.whl:

Publisher: release.yml on denoland/deno_pypi

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

File details

Details for the file deno-2.9.2-py3-none-manylinux_2_27_x86_64.whl.

File metadata

  • Download URL: deno-2.9.2-py3-none-manylinux_2_27_x86_64.whl
  • Upload date:
  • Size: 43.9 MB
  • Tags: Python 3, manylinux: glibc 2.27+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for deno-2.9.2-py3-none-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 bf0471db7238e90810bca77a8d2c28646317b5a3fd9e5cdfdf73b251fde11b83
MD5 da94f1032a2c237a71e0b713ef2ca007
BLAKE2b-256 09b438338550a5ca0a7bcc39991e3d48e46ce3699413460dff32f383a611d822

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.9.2-py3-none-manylinux_2_27_x86_64.whl:

Publisher: release.yml on denoland/deno_pypi

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

File details

Details for the file deno-2.9.2-py3-none-manylinux_2_27_aarch64.whl.

File metadata

File hashes

Hashes for deno-2.9.2-py3-none-manylinux_2_27_aarch64.whl
Algorithm Hash digest
SHA256 8b2fd9318d452b7e44c45968916670a0c5452d72796e1af9abfaa7a389e4aa6b
MD5 7ca028163c3ff13bbd2988a8e637f1b4
BLAKE2b-256 7b2706a166fca538c06dfae4c45dbb92c2ebf3083341141966a3d649272ea734

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.9.2-py3-none-manylinux_2_27_aarch64.whl:

Publisher: release.yml on denoland/deno_pypi

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

File details

Details for the file deno-2.9.2-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: deno-2.9.2-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 38.0 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for deno-2.9.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6f74fd8698a8a9a31af14eed5730f1964ab50eaa0129079d11d91fa92496f60
MD5 03fe1b16e1cef97f2c19913d504cf9c0
BLAKE2b-256 5a3e235530ac9b9c206ee8c098e2b215f711a71d915d8d7d2be77599c8c1db4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.9.2-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on denoland/deno_pypi

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

File details

Details for the file deno-2.9.2-py3-none-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: deno-2.9.2-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 42.3 MB
  • Tags: Python 3, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for deno-2.9.2-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fb4bb5362d02c193f8086668789076f366416980b79277c06ea6cff73866b668
MD5 a80a30a127a8d800026ffd3f51b29c3c
BLAKE2b-256 27fe4a02a256f19b3f31ac17ec37f6467ecf523601ed753e6c9177865dd2bbb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.9.2-py3-none-macosx_10_12_x86_64.whl:

Publisher: release.yml on denoland/deno_pypi

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

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