Deno for Python
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, andWeb 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.txtorpyproject.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.0includes Deno v2.1.0deno==2.0.0includes Deno v2.0.0
Check the Deno releases for version details.
Resources
- 📚 Deno Documentation
- 🌐 Deno Website
- 💬 Deno Discord
- 📦 PyPI Package
- 🐙 GitHub Repository
- 🦕 Deno on GitHub
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.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deno-2.9.7.tar.gz | 8.2 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| deno-2.9.7-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| deno-2.9.7-py3-none-manylinux_2_27_x86_64.whl | Python 3 | none | Linux glibc 2.27+ x86-64 | Details |
| deno-2.9.7-py3-none-manylinux_2_27_aarch64.whl | Python 3 | none | Linux glibc 2.27+ ARM64 | Details |
| deno-2.9.7-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| deno-2.9.7-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details |
Total release size: 203.8 MB
Release files / deno-2.9.7.tar.gz
| Download URL | deno-2.9.7.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79f4b7acdd9a37e98a4d1e0ca08d71c4e55f6c0cb13bd1e0946fa9b5497be2d9
|
|
BLAKE2b-256 checksum How to use checksums |
82f10d7ca153f2363559d4462faed0d742632eedb74c9f7b8c05ee0d0bacdaaf
|
| 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 Sep 17, 2026.
Transparency logRelease files / deno-2.9.7-py3-none-win_amd64.whl
| Download URL | deno-2.9.7-py3-none-win_amd64.whl |
|---|---|
| Size | 41.6 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
80b90a0aad3f167ffbfefe55830b7b14e9d49865eed741c013bb48f1c5996681
|
|
BLAKE2b-256 checksum How to use checksums |
8d9087d4b92f3076832aae7aa06b0a4be95ceb29867d45e6f8e8ca7cde6abc16
|
| 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 Sep 17, 2026.
Transparency logRelease files / deno-2.9.7-py3-none-manylinux_2_27_x86_64.whl
| Download URL | deno-2.9.7-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 |
836f2ab5918723b47b638a05bc4fdac99fc35e69b49a6771c24e32b19dff5d8a
|
|
BLAKE2b-256 checksum How to use checksums |
97837168eaf88abd94777a62cf8fed9a849a2bd1adf9118d3b470b0b4ff5f08d
|
| 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 Sep 17, 2026.
Transparency logRelease files / deno-2.9.7-py3-none-manylinux_2_27_aarch64.whl
| Download URL | deno-2.9.7-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 |
d8f4622774a5bed3a6b6305340495abe699f09c99b70d2882f52abc1ff23321a
|
|
BLAKE2b-256 checksum How to use checksums |
5c58ed29b6599ebe73e61d612b62fed303d359601d7357b1cb7847bab974c5dd
|
| 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 Sep 17, 2026.
Transparency logRelease files / deno-2.9.7-py3-none-macosx_11_0_arm64.whl
| Download URL | deno-2.9.7-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 |
adc015b5630572c06d04d28741e6ac9eed8b053c501d0ae776bfb155f5b7204b
|
|
BLAKE2b-256 checksum How to use checksums |
0a60291756d3ac61ec70dd13ab3c542eb7eccf3b303d38bd5bad77c2f570c4d5
|
| 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 Sep 17, 2026.
Transparency logRelease files / deno-2.9.7-py3-none-macosx_10_12_x86_64.whl
| Download URL | deno-2.9.7-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 |
826634a6719f0183d85ef33f702de4388adb47d1f097b0732f70e033599a43c2
|
|
BLAKE2b-256 checksum How to use checksums |
fdfe661ee70cc000917881432ab306317c75bb6f97631323a60b35e91808c400
|
| 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 Sep 17, 2026.
Transparency log