Commit graph

547 commits

Author SHA1 Message Date
dependabot[bot]
2f7b144749
Bump pytest from 7.1.2 to 7.1.3 (#370)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.1.2 to 7.1.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.1.2...7.1.3)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-19 11:34:07 +03:00
dependabot[bot]
902ce8c059
Bump black from 22.6.0 to 22.8.0 (#366)
Bumps [black](https://github.com/psf/black) from 22.6.0 to 22.8.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/22.6.0...22.8.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
2022-09-19 11:18:28 +03:00
dependabot[bot]
61f0c98605
Bump coverage from 6.4.3 to 6.4.4 (#353)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.4.3 to 6.4.4.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/6.4.3...6.4.4)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-19 11:15:35 +03:00
dvora-h
e9529e35be
Fix crash when trying to delete non-existent record (#372) 2022-09-15 13:29:31 +03:00
Manabu Niseki
285f7c90ee
fix: add slash in DEFAULT_ESCAPED_CHARS (#312) (#376) 2022-09-11 16:50:15 +03:00
Mahmoud Harmouch
551429c01a
Allow users to define a new primary key. (#347)
* make primary key programmable

Signed-off-by: wiseaidev <business@wiseai.dev>

* get primary key field using the `key` method

Signed-off-by: wiseaidev <business@wiseai.dev>

* adjust delete_many & expire methods

Signed-off-by: wiseaidev <business@wiseai.dev>

* fix query for int primary key

Signed-off-by: wiseaidev <business@wiseai.dev>

* fix grammar

Signed-off-by: wiseaidev <business@wiseai.dev>

* add unit tests

Signed-off-by: wiseaidev <business@wiseai.dev>

Signed-off-by: wiseaidev <business@wiseai.dev>
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
2022-09-08 14:38:49 +03:00
Mahmoud Harmouch
2e09234b68
fix broken links (#348)
Signed-off-by: wiseaidev <business@wiseai.dev>

Signed-off-by: wiseaidev <business@wiseai.dev>
2022-09-08 13:56:31 +03:00
melder
8325e6e111
Fixes issue decode_responses is set to True regardless if REDIS_OM_UR… (#373)
Fixes issue decode_responses is set to True regardless if REDIS_OM_URL environment variable is set.
Otherwise these warnings pop up when persisting objects:

Could not parse Redis response. Error was: "keywords must be strings". Probably, the connection is not set to decode responses from bytes. Attempting to decode response
using the encoding set on model class (<class 'redis_om.model.model.ModelMeta'>. Encoding: utf-8.

Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
2022-09-08 13:53:24 +03:00
tonibofarull
9e17678094
Fix None instance when querying (#368)
Fix None instance
2022-09-08 13:53:00 +03:00
dvora-h
788d3dfe41
Drop python 3.6 support (#374)
* Drop python 3.6 support

* Update pyproject.toml

Co-authored-by: Chayim <chayim@users.noreply.github.com>
2022-09-07 11:15:00 +03:00
Yair Bonastre
c6fb00bfc3
fix repository url (#362) 2022-09-01 13:11:29 +03:00
dvora-h
57608d85f4
Replace execute_command with specific redis functions when possible (#346)
* replace execute_command

* change to root_path
2022-08-22 18:04:10 +03:00
Chayim
60f102d188
Updating troves for pypi (#341)
creating accurate pypi troves
2022-08-11 17:25:47 +03:00
dvora-h
a00a68b414
Add delete_many to support for bulk deletes (#305)
* Add support for bulk deletes

* linters

* linters

* fix review comments

* update more-itertools version

* poetry fix - maybe?

* merge main & add more-itertools 8.14.0

* update poetry.lock

* linters

* fix test

Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
2022-08-10 16:22:27 +03:00
Serhii Charykov
4661459ddd
Migrate from aioredis to redis-py with asyncio support (#233)
* Migrate from aioredis to redis with asyncio support

Add test for redis type
Fix imports from wrong module (for tests_sync)

* fixing merge conflicts and up to dating the lock file

Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
2022-08-10 15:21:13 +03:00
Mahmoud Harmouch
e5e887229a
Implement page function (#339)
* implement page function

Signed-off-by: wiseaidev <business@wiseai.dev>

* add unit tests

Signed-off-by: wiseaidev <business@wiseai.dev>

* fix linter issues

Signed-off-by: wiseaidev <business@wiseai.dev>
2022-08-10 14:04:27 +03:00
Mahmoud Harmouch
ac6a75be19
fixed a potential bug (#337)
* fixed a potential bug

Signed-off-by: wiseaidev <business@wiseai.dev>

* add unit tests

Signed-off-by: wiseaidev <business@wiseai.dev>

* remove unnecessary logic related to six module

Signed-off-by: wiseaidev <business@wiseai.dev>

* remove six from dependencies

Signed-off-by: wiseaidev <business@wiseai.dev>

* pass "ignore" as a kwarg

Signed-off-by: wiseaidev <business@wiseai.dev>

* get rid of try catch and simplify logic

Signed-off-by: wiseaidev <business@wiseai.dev>

* rm poetry.lock

Signed-off-by: wiseaidev <business@wiseai.dev>

* rm poetry.lock

Signed-off-by: wiseaidev <business@wiseai.dev>

* run black

Signed-off-by: wiseaidev <business@wiseai.dev>

* fix mypy issue

Signed-off-by: wiseaidev <business@wiseai.dev>

* adjust other tests accordingly

Signed-off-by: wiseaidev <business@wiseai.dev>
2022-08-09 17:40:27 +03:00
dependabot[bot]
b103adbe6d
Bump black from 22.3.0 to 22.6.0 (#286)
Bumps [black](https://github.com/psf/black) from 22.3.0 to 22.6.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/22.3.0...22.6.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
2022-08-09 15:36:27 +03:00
Simon Prickett
3f91f9e941
Updating default page size to 1000 from 10 (#282)
Fixed page size problem with `all()`

The default page size for `all` is supposed to be 1000 not 10, for performance reasons.  When I changed the constant `DEFAULT_PAGE_SIZE` a while back, I seem to have forgotten to have changed it here.  This fixes that.
2022-08-09 15:19:04 +03:00
dependabot[bot]
679a7aae03
Bump redis from 4.3.3 to 4.3.4 (#285)
Bumps [redis](https://github.com/redis/redis-py) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v4.3.3...v4.3.4)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 15:18:53 +03:00
dependabot[bot]
cb831d76b9
Bump tox from 3.25.0 to 3.25.1 (#288)
Bumps [tox](https://github.com/tox-dev/tox) from 3.25.0 to 3.25.1.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.25.0...3.25.1)

---
updated-dependencies:
- dependency-name: tox
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 15:17:46 +03:00
dependabot[bot]
49cb05d02e
Bump typing-extensions from 4.2.0 to 4.3.0 (#289)
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/compare/4.2.0...4.3.0)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 15:17:30 +03:00
dependabot[bot]
3e9265afb2
Bump mypy from 0.961 to 0.971 (#314)
Bumps [mypy](https://github.com/python/mypy) from 0.961 to 0.971.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.961...v0.971)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
2022-08-09 15:16:42 +03:00
dependabot[bot]
d3d1841382
Bump types-six from 1.16.16 to 1.16.18 (#308)
Bumps [types-six](https://github.com/python/typeshed) from 1.16.16 to 1.16.18.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-six
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 14:42:45 +03:00
dependabot[bot]
5d94ab415b
Bump types-redis from 4.2.6 to 4.3.13 (#327)
Bumps [types-redis](https://github.com/python/typeshed) from 4.2.6 to 4.3.13.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-redis
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 14:41:33 +03:00
dependabot[bot]
7e03d9ca24
Bump coverage from 6.4.1 to 6.4.3 (#335)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.4.1 to 6.4.3.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/6.4.1...6.4.3)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 14:41:07 +03:00
dependabot[bot]
6de174f917
Bump flake8 from 4.0.1 to 5.0.4 (#330)
Bumps [flake8](https://github.com/pycqa/flake8) from 4.0.1 to 5.0.4.
- [Release notes](https://github.com/pycqa/flake8/releases)
- [Commits](https://github.com/pycqa/flake8/compare/4.0.1...5.0.4)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 14:40:09 +03:00
dependabot[bot]
5d2828ea25
Bump actions/setup-python from 4.0.0 to 4.2.0 (#329)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.0.0 to 4.2.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4.0.0...v4.2.0)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 14:39:49 +03:00
Chayim
aa122f6ca5
CodeQL integration (#310) 2022-08-09 14:38:59 +03:00
dependabot[bot]
cd39bad4f1
Bump rojopolis/spellcheck-github-actions from 0.23.0 to 0.26.0 (#331)
Bumps [rojopolis/spellcheck-github-actions](https://github.com/rojopolis/spellcheck-github-actions) from 0.23.0 to 0.26.0.
- [Release notes](https://github.com/rojopolis/spellcheck-github-actions/releases)
- [Changelog](https://github.com/rojopolis/spellcheck-github-actions/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rojopolis/spellcheck-github-actions/compare/0.23.0...0.26.0)

---
updated-dependencies:
- dependency-name: rojopolis/spellcheck-github-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 14:38:46 +03:00
dependabot[bot]
dcd84e0ab2
Bump pytest-asyncio from 0.18.3 to 0.19.0 (#311)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-18 12:59:40 +03:00
Chayim
afdf6d82cc
Updating release drafter to match current standard (#291) 2022-07-11 11:07:26 +03:00
Chayim
bc2199f2d4
Spellcheck (#302)
* spelling, take1

* some spelling fixes

* one more
2022-07-11 11:03:16 +03:00
Chayim
b4c20b2f8f
Support for Pypy 3.7 in CI (#300)
pypy3.7 in CI
2022-07-11 10:58:45 +03:00
dependabot[bot]
d604797d9d
Bump types-six from 1.16.15 to 1.16.16 (#273)
Bumps [types-six](https://github.com/python/typeshed) from 1.16.15 to 1.16.16.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-six
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-13 11:39:42 +01:00
dependabot[bot]
30ad342684
Bump cleo from 1.0.0a4 to 1.0.0a5 (#270)
Bumps [cleo](https://github.com/sdispater/cleo) from 1.0.0a4 to 1.0.0a5.
- [Release notes](https://github.com/sdispater/cleo/releases)
- [Changelog](https://github.com/python-poetry/cleo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sdispater/cleo/compare/1.0.0a4...1.0.0a5)

---
updated-dependencies:
- dependency-name: cleo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-10 10:26:03 +01:00
dependabot[bot]
3014905659
Bump actions/setup-python from 3.1.2 to 4.0.0 (#272)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3.1.2 to 4.0.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3.1.2...v4.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-09 16:30:36 +01:00
dependabot[bot]
56ee3d4836
Bump mypy from 0.960 to 0.961 (#271)
Bumps [mypy](https://github.com/python/mypy) from 0.960 to 0.961.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.960...v0.961)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 09:33:11 +01:00
Simon Prickett
c2dbcfc394
Merge pull request #269 from redis/dependabot/pip/coverage-6.4.1
Bump coverage from 6.4 to 6.4.1
2022-06-06 14:46:24 +01:00
Simon Prickett
c50613d822
Merge pull request #268 from redis/dependabot/pip/redis-4.3.3
Bump redis from 4.3.1 to 4.3.3
2022-06-06 14:44:21 +01:00
Simon Prickett
d2dd21ac28
Merge pull request #266 from redis/dependabot/pip/twine-4.0.1
Bump twine from 4.0.0 to 4.0.1
2022-06-06 14:41:28 +01:00
dependabot[bot]
c2886a7e8b
Bump coverage from 6.4 to 6.4.1
Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.4 to 6.4.1.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/6.4...6.4.1)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-03 06:47:53 +00:00
dependabot[bot]
7c76abd119
Bump redis from 4.3.1 to 4.3.3
Bumps [redis](https://github.com/redis/redis-py) from 4.3.1 to 4.3.3.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v4.3.1...v4.3.3)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-03 06:46:57 +00:00
dependabot[bot]
2ae285f8ce
Bump twine from 4.0.0 to 4.0.1
Bumps [twine](https://github.com/pypa/twine) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/twine/compare/4.0.0...4.0.1)

---
updated-dependencies:
- dependency-name: twine
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-02 03:29:14 +00:00
Simon Prickett
aca917cb5d
Merge pull request #265 from redis/dependabot/pip/types-redis-4.2.6
Bump types-redis from 4.2.5 to 4.2.6
2022-05-27 11:24:26 +01:00
dependabot[bot]
663f971dcd
Bump types-redis from 4.2.5 to 4.2.6
Bumps [types-redis](https://github.com/python/typeshed) from 4.2.5 to 4.2.6.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-27 03:30:39 +00:00
Simon Prickett
a11185ed03
Merge pull request #264 from redis/dependabot/pip/mypy-0.960
Bump mypy from 0.950 to 0.960
2022-05-26 10:47:34 +01:00
dependabot[bot]
db0264c4f2
Bump mypy from 0.950 to 0.960
Bumps [mypy](https://github.com/python/mypy) from 0.950 to 0.960.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.950...v0.960)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-26 03:49:32 +00:00
Simon Prickett
234d1a7e7d
Merge pull request #262 from ryanrussell/main
docs(Getting Started): Fix get_redis_connection() example
2022-05-25 12:05:29 +01:00
r
0c923ca995 docs(Getting Started): Fix get_redis_connection() example 2022-05-24 16:18:54 -05:00