---
title: "Pyscript Python scripting"
description: "Pyscript Python scripting is a Marketplace integration for Home Assistant. It has 8k installs sharing analytics, works locally and was last updated September 11, 2026."
canonical: "https://vulpo.app/integrations/marketplace/custom-components-pyscript"
url: "https://vulpo.app/integrations/marketplace/custom-components-pyscript.md"
last-updated: "2026-10-22"
version: "1.4"
---

# Pyscript Python scripting

> Pyscript Python scripting is a Marketplace integration for Home Assistant. It has 8k installs sharing analytics, works locally and was last updated September 11, 2026.

Pyscript Python scripting lets Home Assistant run user-written Python functions and scripts for automations, logic and triggers. State variables are bound to Python variables, and services can be called as Python functions. Functions can be exposed as services or started by time, state-change or event triggers, and they can fire events and set state variables. A function can sleep or wait for changes in state variables or events without slowing other operations, so scripts behave like small programs running in parallel. It also provides a kernel for Jupyter front-ends, so code can be developed and tested interactively, and a service that generates stub modules for editors. It works locally and is set up in the UI, with options for allowing all imports, exposing hass as a global variable and using legacy decorators.

Automatic summary of the README and code of custom-components/pyscript. Something wrong, or are you the maintainer and want your own text here? [Get in touch](https://vulpo.app/contact)

[Open in My Home Assistant](https://my.home-assistant.io/redirect/hacs_repository/?owner=custom-components&repository=pyscript&category=integration)

On Home Assistant 2026.11 or newer? [Open it in the Marketplace](https://my.home-assistant.io/redirect/marketplace_repository/?owner=custom-components&repository=pyscript&category=integration)

## Supports

- **Works locally**: Talks to your devices on your own network. No vendor cloud in between.
- **From the Marketplace**: Installed through the Marketplace, formerly HACS.
- **Actively maintained**: Its author released or pushed a change in the last six months.

## Setting it up

Install it from the Marketplace and restart Home Assistant, then add it under Settings, Devices and services.

### pyscript

- **Allow All Imports?**
- **Access hass as a global variable?**
- **Use legacy decorators?**

### After setup

- **Allow All Imports?**
- **Access hass as a global variable?**
- **Use legacy decorators?**

Texts from the code of [custom-components/pyscript](https://github.com/custom-components/pyscript).

## From the README

> This HACS custom integration allows you to write Python functions and scripts that can implement a wide range of automation, logic and triggers. State variables are bound to Python variables and services are callable as Python functions, so it's easy and concise to implement logic.
>
> Functions you write can be configured to be called as a service or run upon time, state-change or event triggers. Functions can also call any service, fire events and set state variables. Functions can sleep or wait for additional changes in state variables or events, without slowing or affecting other operations.

From the README of [custom-components/pyscript](https://github.com/custom-components/pyscript#readme), [Apache License 2.0](https://spdx.org/licenses/Apache-2.0.html). Shortened.

## At a glance

- Kind: Marketplace integration
- Category: [DIY and makers](https://vulpo.app/integrations/category/diy-and-makers.md), Web and data connectors
- Number: 8k installs sharing analytics; 1.2k GitHub stars
- Connection: Works locally
- Upkeep: Updated in the last 6 months
- Needs: Needs the Marketplace (HACS on 2026.10 and older)
- Latest version: 2.1.0, last updated September 11, 2026
- Domain: `pyscript`
- Source: <https://github.com/custom-components/pyscript>
- Issues: <https://github.com/custom-components/pyscript/issues>

In Vulpo: Entity card (read-only)

Independent directory, made by the developer of Vulpo. Not affiliated with Home Assistant or the Open Home Foundation. [About these numbers](https://vulpo.app/integrations/about)

Last updated 2026-10-22. Source: https://vulpo.app/integrations/marketplace/custom-components-pyscript

---

- HTML version of this page: https://vulpo.app/integrations/marketplace/custom-components-pyscript
- Site index for agents: https://vulpo.app/llms.txt
- Everything in one document: https://vulpo.app/llms-full.txt
- All pages: https://vulpo.app/sitemap.xml
