Skip to main content

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.

Release files for deno 2.9.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deno 2.9.6
File Size Uploaded
deno-2.9.6.tar.gz 8.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for deno 2.9.6
File
deno-2.9.6-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
deno-2.9.6-py3-none-manylinux_2_27_x86_64.whl Python 3 none Linux glibc 2.27+ x86-64 Details
deno-2.9.6-py3-none-manylinux_2_27_aarch64.whl Python 3 none Linux glibc 2.27+ ARM64 Details
deno-2.9.6-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
deno-2.9.6-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size: 203.7 MB

Release files / deno-2.9.6.tar.gz

Download URL deno-2.9.6.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0dba7666e7d3db62ff1e73f7f69fc74b63a551a198c311d2ffb409d1dc96167f
BLAKE2b-256 checksum
How to use checksums
3bfa04bdb9b54ee425a9708c82c61e3acf5796405718756600c7aab79910b712
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / deno-2.9.6-py3-none-win_amd64.whl

Download URL deno-2.9.6-py3-none-win_amd64.whl
Size 41.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ad65ac596e53f7275d783070be2fd96a47f4a478e67ecd0584e6b744804ed863
BLAKE2b-256 checksum
How to use checksums
9bd1085d2f83ec0a55346c9b6cd96f74fc5b69d4edbdd9575f84ee1b08b4218f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / deno-2.9.6-py3-none-manylinux_2_27_x86_64.whl

Download URL deno-2.9.6-py3-none-manylinux_2_27_x86_64.whl
Size 41.6 MB
Tags Linux glibc 2.27+ x86-64 Python 3
SHA-256 checksum
How to use checksums
037458003a1c76382e41baa1cd152b3325d9a13b2678f75cc653c893c0b2dfec
BLAKE2b-256 checksum
How to use checksums
4922f3cb68c5b46140eafec610c763062d147bf73050c1d24ab8180902d8ba93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / deno-2.9.6-py3-none-manylinux_2_27_aarch64.whl

Download URL deno-2.9.6-py3-none-manylinux_2_27_aarch64.whl
Size 39.8 MB
Tags Linux glibc 2.27+ ARM64 Python 3
SHA-256 checksum
How to use checksums
f8e1f6c053d3376388b61e658a2438ba45904a62b261988f2b858efefdc0aaad
BLAKE2b-256 checksum
How to use checksums
5b227cccf9010e036a8d9be61cf8c2747a3e429d25e20dceace43f2c399522fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / deno-2.9.6-py3-none-macosx_11_0_arm64.whl

Download URL deno-2.9.6-py3-none-macosx_11_0_arm64.whl
Size 38.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ecf7b5d938562e4227a5ee5b5b1025094ad44cf92d829917a3d3060bface5093
BLAKE2b-256 checksum
How to use checksums
8e09c46e566dd9f8dbc09c376c9c273e27da61d89e4e7e7d03b5be35720ecfb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / deno-2.9.6-py3-none-macosx_10_12_x86_64.whl

Download URL deno-2.9.6-py3-none-macosx_10_12_x86_64.whl
Size 42.3 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
845831e26d98553fb17b7baf9af4949857c5d78965c35890e7a0af9425e63734
BLAKE2b-256 checksum
How to use checksums
f689a50877162323e98129329a3a54555ac164d8cc911b2a6b8e5ccefc498c54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release history Release notifications | RSS feed

2.9.7

6 release files

This release

2.9.6 This release

6 release files

2.9.5

6 release files

2.9.4

6 release files

2.9.3

6 release files

2.9.2

6 release files

2.9.1

6 release files

2.9.0

6 release files

2.8.3

6 release files

2.8.2

6 release files

2.8.1

6 release files

2.8.0

6 release files

2.7.14

6 release files

2.7.10

6 release files

2.7.9

6 release files

2.7.8

6 release files

2.7.7

6 release files

2.7.6

6 release files

2.7.5

6 release files

2.7.4

6 release files

2.7.3

6 release files

2.7.2

6 release files

2.7.1

6 release files

2.7.0

6 release files

2.6.10

6 release files

2.6.9

6 release files

2.6.8

6 release files

2.6.7

6 release files

2.6.6

6 release files

2.6.5

6 release files

2.6.4

6 release files

2.6.3

6 release files

2.6.2

6 release files

2.6.1

6 release files

2.6.0

5 release files

2.5.6

6 release files

2.5.4

6 release files

2.5.3

6 release files

2.5.2

6 release files

2.5.1

6 release files

2.5.0

6 release files

2.4.5

6 release files

0.0.2

6 release files

0.0.1

1 release file

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page