This release is a pre-release and may not be stable for production use.
pyxpo-storage
Fast synchronous key-value storage for pyxpo apps. The API follows react-native-mmkv, and the
AsyncStorage method names work too (without await).
This is an optional pyxpo module. It is pure Python: it adds no Swift or Kotlin code and no permissions.
Install
pip install pyxpo-storage
Then link it into your app in pyproject.toml:
[tool.pyxpo]
modules = ["storage"]
Use
from pyxpo_storage import Storage, storage, use_storage_string
storage.set("user.name", "Asha")
storage.get_string("user.name") # "Asha"
storage.set("launches", 3)
storage.get_number("launches") # 3
storage.set_object("prefs", {"dark": True})
storage.contains("user.name") # True
storage.delete("user.name")
# AsyncStorage names, synchronous
storage.set_item("token", "abc")
storage.get_item("token") # "abc"
storage.multi_set([["a", "1"], ["b", "2"]])
# Separate stores
cache = Storage(id="cache")
# Hooks re-render the component when the value changes
name, set_name = use_storage_string("user.name")
camelCase names (getString, setItem, useStorageString, ...) are available for people coming from
React Native.
Values are strings, numbers, booleans or bytes. They live in a SQLite file in the app's private data
folder and in memory, so reads never touch the disk and every write is on disk when set returns.
Nothing is encrypted. Keep tokens and passwords in pyxpo-secure-store.
What is in the package
pyxpo_storage/__init__.py: the Python API.pyxpo_storage/pyxpo-module.json: autolink metadata.
Metadata
Release files for pyxpo-storage 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyxpo_storage-0.1.0a1.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyxpo_storage-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.0 kB
Release files / pyxpo_storage-0.1.0a1.tar.gz
| Download URL | pyxpo_storage-0.1.0a1.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2f9abcbacdd96999c6d5df9ebaf53865a5ed83ff3d6c06a4766dfe8ef338f51
|
|
BLAKE2b-256 checksum How to use checksums |
d7fcb9ffa6a2d975be0d7c712b8a0e8a03ddd227749a7eb7589861bcfb4af192
|
| 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 Oct 15, 2026.
Transparency logRelease files / pyxpo_storage-0.1.0a1-py3-none-any.whl
| Download URL | pyxpo_storage-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b92f2306e7c36d50d12112bf1e335c14e845b763e2ad7e1c80569eae74746b4d
|
|
BLAKE2b-256 checksum How to use checksums |
187de97d9f1e0d43a03ccc25b913331c6354a54fa39359aa267bf5f89543cc26
|
| 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 Oct 15, 2026.
Transparency log