Skip to main content

🌐 TileORM

Tests

[!WARNING] Not advisable for production critical workflows

Getting started

pip install tileorm
from tileorm import Model, Identifier, Group, CharField, Tile38, Point

db = Tile38("redis://localhost:9851")


class Truck(Model):
    id: int = Identifier()
    group: str = Group()
    field: str = CharField()

    class Meta:
        database = db


truck1 = await Truck.create(
    id=1,
    group="fleet1",
    location=Point(lat=52.25, lon=13.37),
    field="value",
)

truck = await Truck.get(id=1, group="fleet1")
# Truck(id=1, location=Location(lat=52.25, lon=13.37), group='fleet1', field='value')

await db.get(truck._key, truck.id).withfields().exec()
# {'ok': True, 'object': {'type': 'Point', 'coordinates': [13.37, 52.25]}, 'fields': {'field': 'value'}, 'elapsed': '411.458µs'}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tileorm-0.3.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tileorm-0.3.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file tileorm-0.3.0.tar.gz.

File metadata

  • Download URL: tileorm-0.3.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tileorm-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6f06a3945be41bd40f6d7d4eeef2e4527134b6e4b3f877a9227e778bb7bd6a21
MD5 fd610fb8749e85acb7bce63a5755b21d
BLAKE2b-256 6f844646dfb860563116944eda2aea442a0cd9bf998f44c3dcf3db7a39a66cfa

See more details on using hashes here.

File details

Details for the file tileorm-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: tileorm-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tileorm-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f9e7bb332153ca94f4edeca37b5d059ba5ff3edacca94afe936e9cdb74d7b7b
MD5 d3601fc03c00fcac3c49bc450efc31e7
BLAKE2b-256 85fe0d72185852195e046000dbe82245111371e56fe3de10bf90be1b3ffecdb0

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.0

2 files

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page