Skip to main content

Python state, React UI.

Project description

RemoteState - Python

remotestate is the Python runtime for the RemoteState library.

It gives you:

  • Store for application state
  • Service for defining actions and queries
  • action and query decorators
  • serve() for exposing the backend to the React frontend

Install

pip install remotestate

Quick Start

import remotestate as rs

store = rs.Store({"count": 0})


class MyService(rs.Service):
    @rs.action
    async def increment(self):
        self.store.set("count", self.store.get("count") + 1)


rs.serve(MyService(store), dist_dir="my-ui/dist")

For the full project overview, see the repository root README: Remote State

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

remotestate-0.1.0.tar.gz (58.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remotestate-0.1.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file remotestate-0.1.0.tar.gz.

File metadata

  • Download URL: remotestate-0.1.0.tar.gz
  • Upload date:
  • Size: 58.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for remotestate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 691a463e0f271f5a1b9cf7558f14d2b272e84a5e4120141563021f870fd339e3
MD5 cfdbae53be93e318a9a1aeb196c2ffb1
BLAKE2b-256 9f7e79e8f322726375bfc11cc95023eda9f9662469d4edf5026e896fb02d6870

See more details on using hashes here.

File details

Details for the file remotestate-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: remotestate-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for remotestate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aaeb909a860939dcd6080ea60dcd05e652df017b6205490e2b00cb5748b0a311
MD5 9d1b0489df7041d736d90d7b3f5c9a06
BLAKE2b-256 c351fdb91f958dc241bd79b796de4f0ded3fc9d14f8fb9048709482753772edc

See more details on using hashes here.

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