A Redis-based variable sharing singleton
Project description
Signella
A simple Redis-based variable sharing singleton for Python.
Installation
pip install signella
Usage
from signella import signal
# Set values
signal['name'] = 'Jimmy'
# Get values
print(signal['name']) # 'Jimmy'
# Use compound keys
signal['user', 123, 'profile'] = {'name': 'Jimmy', 'age': 30}
print(signal['user', 123, 'profile']) # {'name': 'Jimmy', 'age': 30}
Features
- Automatically starts a Redis server if one isn't available
- Simple dictionary-like interface with JSON serialization
- Support for namespacing via RADIOVAR_NS environment variable
- Override port via RADIOVAR_PORT environment variable
- Command-line interface for help and information
Command-line Usage
After installation, you can use the signella command in your terminal:
# Display help and current environment settings
signella help
The command will show colorful output with information about:
- Current environment variable settings
- Usage examples
- Available environment variables and their descriptions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
signella-0.2.0.tar.gz
(5.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file signella-0.2.0.tar.gz.
File metadata
- Download URL: signella-0.2.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2175f7325a7e496b2a27a4ad5ca1d1f8292da572b7338f20bf7877235aadecda
|
|
| MD5 |
0f3fde88a82eefc479d2c022c0042249
|
|
| BLAKE2b-256 |
2b4987f29d8105e77a4556f38d66101d72279c24b1495bc08fd1ec7be729a01a
|
File details
Details for the file signella-0.2.0-py3-none-any.whl.
File metadata
- Download URL: signella-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f97920b6efed9a08634d350efe729a9470609fd892b138c8ca8c5bbcbc8b3fe
|
|
| MD5 |
ec25cda0b1c272d9b1c1db49d22eb26e
|
|
| BLAKE2b-256 |
a2a61f1437a6fe955b3dd6d9cdb61a3b6fcbfe9b4c50d3bfa9d322bb684755e5
|