artemis-model 0.1.94__tar.gz → 0.1.95__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {artemis_model-0.1.94 → artemis_model-0.1.95}/PKG-INFO +1 -1
- artemis_model-0.1.95/artemis_model/redis/__init__.py +24 -0
- artemis_model-0.1.95/artemis_model/redis/keys.py +15 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/pyproject.toml +1 -1
- artemis_model-0.1.94/artemis_model/redis/__init__.py +0 -6
- {artemis_model-0.1.94 → artemis_model-0.1.95}/README.md +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/__init__.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/album.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/artist.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/auth.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/base.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/category.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/dj_set.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/genre.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/location.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/message.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/organization.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/otp.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/permission.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/playlist.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/redis/device.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/redis/zone_state.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/schedule.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/setting.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/sqs/__init__.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/sqs/messages.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/track.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/user.py +0 -0
- {artemis_model-0.1.94 → artemis_model-0.1.95}/artemis_model/zone.py +0 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
"""Redis models."""
|
2
|
+
|
3
|
+
from .zone_state import ZoneState, NowPlaying, SessionId, BucketId
|
4
|
+
from .device import ActiveDevice
|
5
|
+
from .keys import (
|
6
|
+
KEY_ZONE_PLAY_HISTORY_TEMPLATE,
|
7
|
+
KEY_ZONE_PUSH_PLAYLIST_BUCKET_TEMPLATE,
|
8
|
+
KEY_ZONE_SCHEDULE_BUCKET_TEMPLATE,
|
9
|
+
KEY_ZONE_STATE_TEMPLATE,
|
10
|
+
KEY_ZONE_ACTIVE_DEVICE_TEMPLATE,
|
11
|
+
)
|
12
|
+
|
13
|
+
__all__ = [
|
14
|
+
"ZoneState",
|
15
|
+
"NowPlaying",
|
16
|
+
"SessionId",
|
17
|
+
"BucketId",
|
18
|
+
"ActiveDevice",
|
19
|
+
"KEY_ZONE_PLAY_HISTORY_TEMPLATE",
|
20
|
+
"KEY_ZONE_PUSH_PLAYLIST_BUCKET_TEMPLATE",
|
21
|
+
"KEY_ZONE_SCHEDULE_BUCKET_TEMPLATE",
|
22
|
+
"KEY_ZONE_STATE_TEMPLATE",
|
23
|
+
"KEY_ZONE_ACTIVE_DEVICE_TEMPLATE",
|
24
|
+
]
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"""Redis keys."""
|
2
|
+
|
3
|
+
KEY_ZONE_PLAY_HISTORY_TEMPLATE = "zone_{zone_id}_play_history"
|
4
|
+
KEY_ZONE_PUSH_PLAYLIST_BUCKET_TEMPLATE = "zone_{zone_id}_pp_bucket_{timeslot_ts}"
|
5
|
+
KEY_ZONE_SCHEDULE_BUCKET_TEMPLATE = "zone_{zone_id}_sc_bucket_{timeslot_ts}"
|
6
|
+
KEY_ZONE_STATE_TEMPLATE = "zone_{zone_id}_state"
|
7
|
+
KEY_ZONE_ACTIVE_DEVICE_TEMPLATE = "zone_{zone_id}_active_devices"
|
8
|
+
|
9
|
+
__all__ = [
|
10
|
+
"KEY_ZONE_PLAY_HISTORY_TEMPLATE",
|
11
|
+
"KEY_ZONE_PUSH_PLAYLIST_BUCKET_TEMPLATE",
|
12
|
+
"KEY_ZONE_SCHEDULE_BUCKET_TEMPLATE",
|
13
|
+
"KEY_ZONE_STATE_TEMPLATE",
|
14
|
+
"KEY_ZONE_ACTIVE_DEVICE_TEMPLATE",
|
15
|
+
]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|