telepath
A library for exchanging data between Python and JavaScript
Decision gist · record as of 2026-08-14
Yes, if you are actively maintaining a Django project and need Python-to-JavaScript data exchange without external APIs. The library is stable, has no dependencies, and works well for server-side-heavy Django apps. No, if you require active maintenance, security updates, or are building new projects—consider modern alternatives like REST APIs with frontend frameworks instead. Yes-with-conditions if your Django version and Python 3.8+ support are locked in and you accept dormant maintenance.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.8 and a Django project; JavaScript counterpart must be implemented separately in the browser to unpack the serialized data.
- Low friction: pure Python wheel with no runtime dependencies.
- Maintenance is dormant—last release was 2023-06-12 and no commits since 2024-09-26—so expect no active bug fixes or feature work, though the codebase is stable and marked Production/Stable.
License · maintenance · safety
BSD (permissive) — BSD license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2023-06-12 (1159 days) · last repo commit 2024-09-26 · 144 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 884,563 downloads/mo, #4,813 on PyPI
Alternatives
Verify before relying
pip install telepath
from telepath import Adapter, register
class MyAdapter(Adapter):
js_constructor = 'MyClass'
def pack(self, obj):
return obj.to_dict()
register(MyAdapter(), MyClass)- Whether dormant maintenance affects real-world stability for active Django projects using current versions of Django and Python.
- Extent of JavaScript implementation required per custom Python class and complexity of typical registration workflows.
What it is and what it does
telepath is a Django library that bridges Python and JavaScript by serializing Python objects—including custom classes—into JSON-safe formats for transport to the browser, where matching JavaScript implementations deserialize them back into equivalent data structures. It works like pickle but with unpickling happening client-side in JavaScript rather than in Python.
The library lets you keep business logic on the server while building rich client-side interfaces. You register Python classes with corresponding JavaScript implementations, then telepath handles the packing and unpacking. It has no runtime dependencies and installs as a pure Python wheel, making setup straightforward for Django projects. However, maintenance is dormant as of the fact sheet date—the last release was 2023-06-12—so it receives no active development or bug fixes.
Use it for
- Send complex Python data structures from Django views to JavaScript without manual JSON serialization or API endpoints.
- Register custom Python classes to enable automatic serialization of domain objects for client-side use.
- Build interactive Django admin interfaces or custom dashboards with rich JavaScript components backed by server-side Python logic.
- Reduce boilerplate in Django-to-frontend communication by eliminating hand-coded serialization and deserialization.
- Prototype or maintain legacy Django applications that rely on server-rendered templates with embedded JavaScript data.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are actively maintaining a Django project and need Python-to-JavaScript data exchange without external APIs.
The library is stable, has no dependencies, and works well for server-side-heavy Django apps. No, if you require active maintenance, security updates, or are building new projects—consider modern alternatives like REST APIs with frontend frameworks instead. Yes-with-conditions if your Django version and Python 3.8+ support are locked in and you accept dormant maintenance.
Install
telepath on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Maintenance is dormant—last release was 2023-06-12 and no commits since 2024-09-26—so expect no active bug fixes or feature work, though the codebase is stable and marked Production/Stable.
Requires Python >=3.8 and a Django project; JavaScript counterpart must be implemented separately in the browser to unpack the serialized data.
License in practice
BSD license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install telepath
from telepath import Adapter, register
class MyAdapter(Adapter):
js_constructor = 'MyClass'
def pack(self, obj):
return obj.to_dict()
register(MyAdapter(), MyClass)
Verify before relying
- Whether dormant maintenance affects real-world stability for active Django projects using current versions of Django and Python.
- Extent of JavaScript implementation required per custom Python class and complexity of typical registration workflows.
Package facts
| License | BSD permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 1,159 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 884,563 / month, #4,813 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: Only |
Evidence: telepath-0.3.1-py38-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “python javascript data serialization”
- telepathtelepath serializes Python objects to JSON-compatible format for…
- lzstringCompresses and decompresses text using the LZ-String algorithm,…
- wslinkwslink provides bi-directional websocket communication between a…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also pscript · pywebview · groovy · streamlit-javascript · jsonpickle · phpserialize · numpyencoder · yamlable · draftjs_exporter · pydantic-to-typescript