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

Uploaded Python 3Windows x86-64

deno-2.7.8-py3-none-manylinux_2_27_x86_64.whl (50.5 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ x86-64

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

Uploaded Python 3manylinux: glibc 2.27+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

deno-2.7.8-py3-none-macosx_10_12_x86_64.whl (47.9 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: deno-2.7.8.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.8.tar.gz
Algorithm Hash digest
SHA256 8df38542abcf110a9b674c9b8caf018e00e28d79c4aeb9aa2285502b32c3f5b1
MD5 1f44c7c0f70e962ce04cd0f1d1f7d1be
BLAKE2b-256 19a2be9a469604823ee01b75bcbd2d0cb022f5735239f2ff30385fe3d62dbcff

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: deno-2.7.8-py3-none-win_amd64.whl
  • Upload date:
  • Size: 49.5 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.8-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a8acb5dd8d709c55f9db9ee6f5de936749ce165699c2b2fe331503f72549aa6e
MD5 c978053c0ded47b42c492f57638c0f65
BLAKE2b-256 35115b0daf3b4f03d00cbb42fba8b9a89496b03598b74cea5b7f5757f8654694

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: deno-2.7.8-py3-none-manylinux_2_27_x86_64.whl
  • Upload date:
  • Size: 50.5 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.8-py3-none-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 4b13de1177e6712d34cfdf5975aeb754dffd436b9cb628540de053e54ce8c472
MD5 e40137514253c04d55c66175db8ab1fb
BLAKE2b-256 32c553c3bda91e7f5705de31d6f301d144e9b7dae6a68c082e874f2e1a1b7fbf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for deno-2.7.8-py3-none-manylinux_2_27_aarch64.whl
Algorithm Hash digest
SHA256 a4634f6d4d6d86704ae711446746d4e4352a008db42baf57be9cb7d14c49793d
MD5 df86e1ba71f893d93f27caa442d5228d
BLAKE2b-256 80cb55918d92ca4f10559e957a9d8f47a9ae9fcf8e64978f4a93584b7e939ba9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: deno-2.7.8-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.8-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 edb91a01ca4ffa506f07132fbae995cf5c5460dd6851a99b654a22ecd9baed2d
MD5 a8bdb884772aefbd4a1fd3823dd47a50
BLAKE2b-256 d955c24ace595485d128e88f4737b40dfbd1ad8e517f5013d4cc7a042d4357e5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: deno-2.7.8-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 47.9 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.8-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5f4a363df0cb6e4c54924127958aac4b3e5d5dbc6593db18d1ce0c514a19c6f7
MD5 613ee8e658b31edeae4178b6ea736026
BLAKE2b-256 6b944745d48566669694db145ca51bb06b3e7a353c4f125ed8c399276f91db7e

See more details on using hashes here.

Provenance

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