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.7.9.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.7.9-py3-none-win_amd64.whl (49.4 MB view details)

Uploaded Python 3Windows x86-64

deno-2.7.9-py3-none-manylinux_2_27_x86_64.whl (50.4 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ x86-64

deno-2.7.9-py3-none-manylinux_2_27_aarch64.whl (48.4 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ ARM64

deno-2.7.9-py3-none-macosx_11_0_arm64.whl (44.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

deno-2.7.9-py3-none-macosx_10_12_x86_64.whl (47.8 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for deno-2.7.9.tar.gz
Algorithm Hash digest
SHA256 6d5b1e269d915ee77fbc8a0b568e03e05f806addafe94279c693f4e3185157ce
MD5 f0a7a278def92e833c28358d7200cf5e
BLAKE2b-256 a7e4749c7c83ace155dde147658de7d48e2cafe2944e63589f4099f7b39dde3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.7.9.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.7.9-py3-none-win_amd64.whl.

File metadata

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

File hashes

Hashes for deno-2.7.9-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 3b36dcf92dbe5883d64d74e6baeb520569312a2af5154a08a1dc2938dfb88ba2
MD5 cb07261a59f05515ad6f24e3b0c124fb
BLAKE2b-256 4aaaec471d187c46b6d04ccaf622c5d9016234a0489e88312ffc4d20a90536fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.7.9-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.7.9-py3-none-manylinux_2_27_x86_64.whl.

File metadata

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

File hashes

Hashes for deno-2.7.9-py3-none-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 dff59e6097c6a41f97947b16c133d4a202c0e671c85b8f5cdab56817357593cd
MD5 ff6395aef76a932e768a33802276f258
BLAKE2b-256 f4f4b4043b87e3db7cf41676daf9d19b51abfe875a4827484910e0b34f6922ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.7.9-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.7.9-py3-none-manylinux_2_27_aarch64.whl.

File metadata

File hashes

Hashes for deno-2.7.9-py3-none-manylinux_2_27_aarch64.whl
Algorithm Hash digest
SHA256 cbb58ba6faf2b6ffe9c8e5ea2140e71a4475c4e02968d2cfce0b1dad63898e22
MD5 cbd8be180c4d5c295513017f4eb74cbc
BLAKE2b-256 081bb1c0f888b18ae8a55b6a411070e1b9cd1fd1e5af3311c45c7194b5176a3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.7.9-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.7.9-py3-none-macosx_11_0_arm64.whl.

File metadata

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

File hashes

Hashes for deno-2.7.9-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3481b77af7dbcf4fc9bc326fd907806fd8af9e9205556d7fd305915c1c4593f4
MD5 562302dc7022df05a6cc95cbceaec21d
BLAKE2b-256 79d0239e4a763c5567f81a2aab934cdbceea5792ea809ef5c30132941b1291b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.7.9-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.7.9-py3-none-macosx_10_12_x86_64.whl.

File metadata

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

File hashes

Hashes for deno-2.7.9-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9e5723584738a0db37fb4744ab2ec0405db13b89dcc9d4f61b7ca1850240f6f0
MD5 2c73c9fb9b8895079c3b511695f5973a
BLAKE2b-256 aa2f38398d56d9db496f13718642ca572a1927e93df55755aef713ab01274741

See more details on using hashes here.

Provenance

The following attestation bundles were made for deno-2.7.9-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