A library for interacting with Replit features such as the Replit Database (key-value store), Identity (auth tokens), Audio (deprecated), and other platform utilities. Current version 4.1.2 requires Python >=3.10, <4.0. Release cadence is irregular.
pip install replitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage of Replit Database (key-value store). Requires the REPLIT_DB_URL environment variable, which is automatically set in Replit environments.
Remove any Audio usage. If you need audio playback, use a third-party library like `playsound`.
If you used those versions and stored keys with leading slashes, you may need to re-add the slashes manually using a newer version.
Avoid using `replit.web`. Use Flask or Starlette directly.
Set the environment variable `REPLIT_DB_URL` to a database endpoint URL (e.g., a local test server or the real Replit DB URL).
Replace `from replit.audio import Audio` with something else or update your code to not use Audio.
Upgrade to latest version: `pip install --upgrade replit` and use `from replit import Database`.
Install Flask: `pip install flask`, or avoid using `replit.web`.