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.1.tar.gz (8.1 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.1-py3-none-win_amd64.whl (47.2 MB view details)

Uploaded Python 3Windows x86-64

deno-2.7.1-py3-none-manylinux_2_27_x86_64.whl (47.9 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ x86-64

deno-2.7.1-py3-none-manylinux_2_27_aarch64.whl (45.9 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ ARM64

deno-2.7.1-py3-none-macosx_11_0_arm64.whl (42.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

deno-2.7.1-py3-none-macosx_10_12_x86_64.whl (45.2 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: deno-2.7.1.tar.gz
  • Upload date:
  • Size: 8.1 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.1.tar.gz
Algorithm Hash digest
SHA256 b82663992ec319ddbf7c63098a962664bf1f9e7c05aebdfde6cd26d703aaa42f
MD5 8224f77d03ed94be804643ac88285884
BLAKE2b-256 84fa4ef221192887cf9f0025450fd279ce22be0f2f888aa69f3a18d4f9c150eb

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: deno-2.7.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 47.2 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.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 bb490f9175be4683ab7304b3e89f715f66d827df266bf3e50b5070df4be64288
MD5 03df44fd8addffe47909d577f2a543dd
BLAKE2b-256 de97ea4c62650948579b9434ad695dd69d422d3213e1919be964dd6c7adefbfa

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: deno-2.7.1-py3-none-manylinux_2_27_x86_64.whl
  • Upload date:
  • Size: 47.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.7

File hashes

Hashes for deno-2.7.1-py3-none-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 9b9adbd5c3d55274428fa9dfdf0bcbfa1b56894576bb57f7f76454fc04adbf6c
MD5 1d83af65d34d165488503834e8a628e0
BLAKE2b-256 ceedbdaff7fdbda8e51ade05ae2a66c18406107df700d6ad669bb366a879c5fd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for deno-2.7.1-py3-none-manylinux_2_27_aarch64.whl
Algorithm Hash digest
SHA256 5cb85b1839c8c140bc568a9c8531ecf217b18edf9d4414ed6a46bfb2299921a5
MD5 08293bce3db5248d77e7e2590e7a9159
BLAKE2b-256 387af8f84be7e81ba9d9a450bdd34fb2303f74981a590577aad95c092bc98011

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: deno-2.7.1-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 42.2 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.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af3eb3cb34d9044a10b84e1667534852d5df5ca74f9a60c001dbe40679b00848
MD5 eb9dd2ac670a18c0a3ae4f14f6f5d812
BLAKE2b-256 09fbb6f32b973492322c6707cf24555e71dd7acd7aca985b8999cd0d95470b1d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: deno-2.7.1-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 45.2 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.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 89dbf7c3bd2e3283780ba9d1f01f580f6d0f8c9c6c06d2ecf5a92e7eb71a7ae8
MD5 9a90e3ecb84876df52d23d2364295a8e
BLAKE2b-256 bde9bce4afa2174f0a1fa82722199aa10face2cb1c3a2f4d42ad561ca395514e

See more details on using hashes here.

Provenance

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