Rename to redis_om
This commit is contained in:
parent
9b18dae2eb
commit
c9967b0d40
19 changed files with 29 additions and 29 deletions
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
|||
NAME := redis_developer
|
||||
NAME := redis_om
|
||||
INSTALL_STAMP := .install.stamp
|
||||
POETRY := $(shell command -v poetry 2> /dev/null)
|
||||
|
||||
|
|
18
README.md
18
README.md
|
@ -52,7 +52,7 @@ Check out this example:
|
|||
import datetime
|
||||
from typing import Optional
|
||||
|
||||
from redis_developer.model import (
|
||||
from redis_om.model import (
|
||||
EmbeddedJsonModel,
|
||||
JsonModel,
|
||||
Field,
|
||||
|
@ -172,9 +172,9 @@ Don't want to run Redis yourself? RediSearch and RedisJSON are also available on
|
|||
|
||||
We'd love your contributions!
|
||||
|
||||
**Bug reports** are especially helpful at this stage of the project. [You can open a bug report on GitHub](https://github.com/redis-developer/redis-developer-python/issues/new).
|
||||
**Bug reports** are especially helpful at this stage of the project. [You can open a bug report on GitHub](https://github.com/redis-om/redis-om-python/issues/new).
|
||||
|
||||
You can also **contribute documentation** -- or just let us know if something needs more detail. [Open an issue on GitHub](https://github.com/redis-developer/redis-developer-python/issues/new) to get started.
|
||||
You can also **contribute documentation** -- or just let us know if something needs more detail. [Open an issue on GitHub](https://github.com/redis-om/redis-om-python/issues/new) to get started.
|
||||
|
||||
## License
|
||||
|
||||
|
@ -184,17 +184,17 @@ Redis OM is [MIT licensed][license-url].
|
|||
|
||||
[version-svg]: https://img.shields.io/pypi/v/redis-om?style=flat-square
|
||||
[package-url]: https://pypi.org/project/redis-om/
|
||||
[ci-svg]: https://img.shields.io/github/workflow/status/redis-developer/redis-developer-python/python?style=flat-square
|
||||
[ci-url]: https://github.com/redis-developer/redis-developer-python/actions/workflows/build.yml
|
||||
[ci-svg]: https://img.shields.io/github/workflow/status/redis-om/redis-om-python/python?style=flat-square
|
||||
[ci-url]: https://github.com/redis-om/redis-om-python/actions/workflows/build.yml
|
||||
[license-image]: http://img.shields.io/badge/license-MIT-green.svg?style=flat-square
|
||||
[license-url]: LICENSE
|
||||
|
||||
<!-- Links -->
|
||||
|
||||
[redis-developer-website]: https://developer.redis.com
|
||||
[redis-om-js]: https://github.com/redis-developer/redis-om-js
|
||||
[redis-om-dotnet]: https://github.com/redis-developer/redis-om-dotnet
|
||||
[redis-om-spring]: https://github.com/redis-developer/redis-om-spring
|
||||
[redis-om-website]: https://developer.redis.com
|
||||
[redis-om-js]: https://github.com/redis-om/redis-om-js
|
||||
[redis-om-dotnet]: https://github.com/redis-om/redis-om-dotnet
|
||||
[redis-om-spring]: https://github.com/redis-om/redis-om-spring
|
||||
[redisearch-url]: https://oss.redis.com/redisearch/
|
||||
[redis-json-url]: https://oss.redis.com/redisjson/
|
||||
[pydantic-url]: https://github.com/samuelcolvin/pydantic
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tool.poetry]
|
||||
name = "redis-developer"
|
||||
name = "redis-om"
|
||||
version = "0.1.0"
|
||||
description = "A high-level library containing useful Redis abstractions and tools, like an ORM and leaderboard."
|
||||
authors = ["Andrew Brookins <andrew.brookins@redislabs.com>"]
|
||||
|
@ -33,7 +33,7 @@ pytest-xdist = "^2.4.0"
|
|||
|
||||
|
||||
[tool.poetry.scripts]
|
||||
migrate = "redis_developer.orm.cli.migrate:migrate"
|
||||
migrate = "redis_om.orm.cli.migrate:migrate"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import click
|
||||
|
||||
from redis_developer.model.migrations.migrator import Migrator
|
||||
from redis_om.model.migrations.migrator import Migrator
|
||||
|
||||
|
||||
@click.command()
|
||||
@click.option("--module", default="redis_developer")
|
||||
@click.option("--module", default="redis_om")
|
||||
def migrate(module):
|
||||
migrator = Migrator(module)
|
||||
|
|
@ -6,8 +6,8 @@ from typing import Optional
|
|||
|
||||
from redis import ResponseError
|
||||
|
||||
from redis_developer.connections import get_redis_connection
|
||||
from redis_developer.model.model import model_registry
|
||||
from redis_om.connections import get_redis_connection
|
||||
from redis_om.model.model import model_registry
|
||||
|
||||
|
||||
redis = get_redis_connection()
|
|
@ -521,7 +521,7 @@ class FindQuery:
|
|||
# this is not going to work.
|
||||
log.warning(
|
||||
"Your query against the field %s is for a single character, %s, "
|
||||
"that is used internally by redis-developer-python. We must ignore "
|
||||
"that is used internally by redis-om-python. We must ignore "
|
||||
"this portion of the query. Please review your query to find "
|
||||
"an alternative query that uses a string containing more than "
|
||||
"just the character %s.",
|
|
@ -1,17 +1,17 @@
|
|||
import abc
|
||||
from typing import Optional
|
||||
|
||||
from redis_developer.model.model import HashModel, JsonModel
|
||||
from redis_om.model.model import HashModel, JsonModel
|
||||
|
||||
|
||||
class BaseJsonModel(JsonModel, abc.ABC):
|
||||
class Meta:
|
||||
global_key_prefix = "redis-developer"
|
||||
global_key_prefix = "redis-om"
|
||||
|
||||
|
||||
class BaseHashModel(HashModel, abc.ABC):
|
||||
class Meta:
|
||||
global_key_prefix = "redis-developer"
|
||||
global_key_prefix = "redis-om"
|
||||
|
||||
|
||||
# class AddressJson(BaseJsonModel):
|
|
@ -1,7 +1,7 @@
|
|||
from collections import Sequence
|
||||
from typing import Any, Dict, List, Mapping, Union
|
||||
|
||||
from redis_developer.model.model import Expression
|
||||
from redis_om.model.model import Expression
|
||||
|
||||
|
||||
class LogicalOperatorForListOfExpressions(Expression):
|
|
@ -3,7 +3,7 @@ import random
|
|||
import pytest
|
||||
from redis import Redis
|
||||
|
||||
from redis_developer.connections import get_redis_connection
|
||||
from redis_om.connections import get_redis_connection
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
@ -21,7 +21,7 @@ def _delete_test_keys(prefix: str, conn: Redis):
|
|||
|
||||
@pytest.fixture
|
||||
def key_prefix(redis):
|
||||
key_prefix = f"redis-developer:{random.random()}"
|
||||
key_prefix = f"redis-om:{random.random()}"
|
||||
yield key_prefix
|
||||
_delete_test_keys(key_prefix, redis)
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@ from unittest import mock
|
|||
import pytest
|
||||
from pydantic import ValidationError
|
||||
|
||||
from redis_developer.model import Field, HashModel
|
||||
from redis_developer.model.migrations.migrator import Migrator
|
||||
from redis_developer.model.model import (
|
||||
from redis_om.model import Field, HashModel
|
||||
from redis_om.model.migrations.migrator import Migrator
|
||||
from redis_om.model.model import (
|
||||
NotFoundError,
|
||||
QueryNotSupportedError,
|
||||
RedisModelError,
|
||||
|
|
|
@ -8,9 +8,9 @@ from unittest import mock
|
|||
import pytest
|
||||
from pydantic import ValidationError
|
||||
|
||||
from redis_developer.model import EmbeddedJsonModel, Field, JsonModel
|
||||
from redis_developer.model.migrations.migrator import Migrator
|
||||
from redis_developer.model.model import (
|
||||
from redis_om.model import EmbeddedJsonModel, Field, JsonModel
|
||||
from redis_om.model.migrations.migrator import Migrator
|
||||
from redis_om.model.model import (
|
||||
NotFoundError,
|
||||
QueryNotSupportedError,
|
||||
RedisModelError,
|
||||
|
|
Loading…
Reference in a new issue