Skip to content

Commit 6128171

Browse files
model_store to redis_model_store
1 parent 90c9962 commit 6128171

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

docs/redis_model_store.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"import os\n",
3838
"import redis\n",
3939
"\n",
40-
"from model_store import ModelStore\n",
40+
"from redis_model_store import ModelStore\n",
4141
"\n",
4242
"# Replace values below with your own if using Redis Cloud instance\n",
4343
"REDIS_HOST = os.getenv(\"REDIS_HOST\", \"localhost\") # ex: \"redis-18374.c253.us-central1-1.gce.cloud.redislabs.com\"\n",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers = [
1414
"Programming Language :: Python :: 3.11",
1515
"License :: OSI Approved :: MIT License",
1616
]
17-
packages = [{ include = "model_store", from = "." }]
17+
packages = [{ include = "redis_model_store", from = "." }]
1818

1919
[tool.poetry.dependencies]
2020
python = ">=3.9,<3.13"
File renamed without changes.
File renamed without changes.

model_store/shard_manager.py renamed to redis_model_store/shard_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any, Iterator, List
22

3-
from model_store.serialize import PickleSerializer, SerializationError, Serializer
3+
from redis_model_store.serialize import PickleSerializer, SerializationError, Serializer
44

55

66
class ModelShardManager:

model_store/store.py renamed to redis_model_store/store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from redisvl.query import FilterQuery
88
from redisvl.query.filter import FilterExpression, Tag
99

10-
from model_store.shard_manager import ModelShardManager
11-
from model_store.utils import (
10+
from redis_model_store.shard_manager import ModelShardManager
11+
from redis_model_store.utils import (
1212
PIPELINE_BATCH_SIZE,
1313
current_timestamp,
1414
new_model_version,
File renamed without changes.

scripts.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22

33

44
def format():
5-
subprocess.run(["isort", "./model_store", "./tests", "--profile", "black"], check=True)
6-
subprocess.run(["black", "./model_store", "./tests"], check=True)
5+
subprocess.run(["isort", "./redis_model_store", "./tests", "--profile", "black"], check=True)
6+
subprocess.run(["black", "./redis_model_store", "./tests"], check=True)
77

88

99
def check_format():
10-
subprocess.run(["black", "--check", "./model_store"], check=True)
10+
subprocess.run(["black", "--check", "./redis_model_store"], check=True)
1111

1212

1313
def sort_imports():
14-
subprocess.run(["isort", "./model_store", "./tests/", "--profile", "black"], check=True)
14+
subprocess.run(["isort", "./redis_model_store", "./tests/", "--profile", "black"], check=True)
1515

1616

1717
def check_sort_imports():
1818
subprocess.run(
19-
["isort", "./model_store", "--check-only", "--profile", "black"], check=True
19+
["isort", "./redis_model_store", "--check-only", "--profile", "black"], check=True
2020
)
2121

2222

2323
def check_lint():
24-
subprocess.run(["pylint", "--rcfile=.pylintrc", "./model_store"], check=True)
24+
subprocess.run(["pylint", "--rcfile=.pylintrc", "./redis_model_store"], check=True)
2525

2626

2727
def check_mypy():
28-
subprocess.run(["python", "-m", "mypy", "./model_store"], check=True)
28+
subprocess.run(["python", "-m", "mypy", "./redis_model_store"], check=True)
2929

3030

3131
def test():

tests/test_serialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from model_store.serialize import PickleSerializer
3+
from redis_model_store.serialize import PickleSerializer
44

55

66
@pytest.fixture

tests/test_shard_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22

3-
from model_store.serialize import PickleSerializer
4-
from model_store.shard_manager import ModelShardManager, SerializationError
3+
from redis_model_store.serialize import PickleSerializer
4+
from redis_model_store.shard_manager import ModelShardManager, SerializationError
55

66

77
@pytest.fixture

0 commit comments

Comments
 (0)