Releases: iwpnd/pyle38
v0.13.0
v0.13.0 (2024-06-22)
Added Tile38 WHEREIN filter to any of the where-able searches like intersect, within, scan, nearby or search.
import asyncio
from pyle38 import Tile38
async def main():
tile38 = Tile38(url="redis://localhost:9851", follower_url="redis://localhost:9851")
await tile38.set("fleet", "truck1").fields({"driver": "Bob"}).point(52.25,13.37).exec()
await tile38.set("fleet", "truck2").fields({"driver": "John"}).point(52.25,13.37).exec()
await tile38.set("fleet", "truck3").fields({"driver": "Ben"}).point(52.25,13.37).exec()
response = await tile38.follower()
.within("fleet").wherein("driver",["Bob","John"])
.circle(52.25, 13.37, 1000)
.asObjects()
assert response.ok
print(response.dict())
await tile38.quit()
asyncio.run(main())
> {
"ok": True,
"elapsed": "48.8µs",
"objects": [
{
"object": {
"type": "Point",
"coordinates": [
13.37,
52.25
]
},
"id": "truck1"
},
{
"object": {
"type": "Point",
"coordinates": [
13.37,
52.25
]
},
"id": "truck2"
}
],
"count": 1,
"cursor": 0
}Chore
Feature
-
feat: add WHEREIN to SEARCH (
e7b5c29) -
feat: add WHEREIN to NEARBY (
587c629) -
feat: add WHEREIN to INTERSECTS (
41e81dd) -
feat: add WHEREIN to WITHIN (
f706b80) -
feat: add WHEREIN to SCAN (
afa301e) -
feat: add wherein to Whereable class (
c3ad4df)
Refactor
- refactor: simplify WHEREIN command, resolve mypy issues on object searches (
33b23e8)
v0.12.0
v0.12.0 (2024-06-07)
Fix
- fix: ObjectResponse with fields not compatible with Tile38 v1.30.0 (
6272e70)
Feature
- feat: support FEXISTS command as of tile38 v1.33.0 (
12f900d)
await tile38.set('fleet', 'truck1')
.fields({ "weight": 9000 })
.point(33.5123, -112.2693)
.exec()
# Validate if `field` exists on id.
resp = await tile38.fexists('fleet', 'truck1', 'weight')
print(resp.exists)
# > True
resp = await tile38.fexists('fleet', 'truck1', 'mileage')
print(resp.exists)
# > False- feat: support EXISTS command as of tile38 v1.33.0 (
39e0593)
await tile38.set('fleet', 'truck')
.point(33.5123, -112.2693)
.exec()
# validate if id exists in collection
resp = await tile38.exists('fleet', 'truck')
print(resp.exists)
# > True
resp = await tile38.exists('fleet', 'bobbycar')
print(resp.exists)
# > Falsev0.11.4
v0.11.4 (2024-06-07)
Chore
- chore(deps): bump python-semantic-release/python-semantic-release
Bumps python-semantic-release/python-semantic-release from 9.6.0 to 9.8.0.
updated-dependencies:
- dependency-name: python-semantic-release/python-semantic-release
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com> (3578319)
- chore(deps): 🔗 update redis (
7f52479)
Fix
- fix: ObjectResponse with fields not compatible with Tile38 v1.30.0 (
6272e70)
v0.11.3
v0.11.3 (2024-05-05)
Chore
-
chore(deps): update redis (
c7e2b1e) -
chore(deps): bump actions/cache from 4.0.0 to 4.0.1
Bumps actions/cache from 4.0.0 to 4.0.1.
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com> (ff3161e)
- chore(deps): bump python-semantic-release/python-semantic-release
Bumps python-semantic-release/python-semantic-release from 9.1.0 to 9.1.1.
updated-dependencies:
- dependency-name: python-semantic-release/python-semantic-release
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com> (b772a6b)
-
chore(deps): update pydantic (
bffbe1c) -
chore(deps): update pydantic (
2eb7986) -
chore(deps): 🔗 remove black, update pydantic (
0b59dd7) -
chore(deps): update (
0ce11c4)
Fix
- fix: bump pydantic to v2.7.0 (
f71b6c6)
v0.11.2
v0.11.2 (2024-01-09)
Chore
-
chore: ignore mypy error on aclose until types updated (
c99fa4a) -
chore: drop old website (
feaa39a) -
chore: change email (
aa1a4bc) -
chore: update semantic release config (
35bc5f3) -
chore: pre-commit autoupdate (
2a5008e) -
chore: update dependencies (
df34edb) -
chore(deps-dev): bump isort from 5.12.0 to 5.13.2
Bumps isort from 5.12.0 to 5.13.2.
updated-dependencies:
- dependency-name: isort
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com> (942035b)
- chore(deps-dev): bump ruff from 0.1.7 to 0.1.9
Bumps ruff from 0.1.7 to 0.1.9.
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com> (e5a0e2e)
- chore(deps-dev): bump mypy from 1.7.1 to 1.8.0
Bumps mypy from 1.7.1 to 1.8.0.
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com> (45e8a12)
- chore(deps-dev): bump python-semantic-release from 8.3.0 to 8.5.0
Bumps python-semantic-release from 8.3.0 to 8.5.0.
updated-dependencies:
- dependency-name: python-semantic-release
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com> (f28f591)
- chore(deps-dev): bump black from 23.11.0 to 23.12.0
Bumps black from 23.11.0 to 23.12.0.
updated-dependencies:
- dependency-name: black
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com> (113d735)
- chore(deps-dev): bump pre-commit from 3.5.0 to 3.6.0
Bumps pre-commit from 3.5.0 to 3.6.0.
updated-dependencies:
- dependency-name: pre-commit
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com> (a82b938)
- chore(deps-dev): bump pytest-asyncio from 0.21.1 to 0.23.2
Bumps pytest-asyncio from 0.21.1 to 0.23.2.
updated-dependencies:
- dependency-name: pytest-asyncio
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com> (cdb225e)
- chore(deps-dev): bump ruff from 0.1.6 to 0.1.7
Bumps ruff from 0.1.6 to 0.1.7.
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com> (70651e6)
- chore(deps-dev): bump mypy from 1.7.0 to 1.7.1
Bumps mypy from 1.7.0 to 1.7.1.
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com> (4708457)
- chore(deps-dev): bump types-redis from 4.6.0.10 to 4.6.0.11
Bumps types-redis from 4.6.0.10 to 4.6.0.11.
updated-dependencies:
- dependency-name: types-redis
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com> (eea3bd8)
- chore(deps-dev): bump ruff from 0.1.5 to 0.1.6
Bumps ruff from 0.1.5 to 0.1.6.
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com> (c667c5e)
- chore(deps): bump pydantic from 2.5.1 to 2.5.2
Bumps pydantic from 2.5.1 to 2.5.2.
updated-dependencies:
- dependency-name: pydantic
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com> (9d26cc8)
- chore(deps-dev): bump poethepoet from 0.24.3 to 0.24.4
Bumps poethepoet from 0.24.3 to 0.24.4.
updated-dependencies:
- dependency-name: poethepoet
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com> (f9d04a7)
- chore(deps): bump pydantic from 2.5.0 to 2.5.1
Bumps pydantic from 2.5.0 to 2.5.1.
updated-dependencies:
- dependency-name: pydantic
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com> (5cb4d03)
- chore(deps): bump pydantic from 2.4.2 to 2.5.0
Bumps pydantic from 2.4.2 to 2.5.0.
updated-dependencies:
- dependency-name: pydantic
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com> ([7b4456c](7b4456ca1f727003a33cc1a...