🌐 TileORM
[!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'}
Metadata
Release files for tileorm 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tileorm-0.4.0.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tileorm-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.0 kB
Release files / tileorm-0.4.0.tar.gz
| Download URL | tileorm-0.4.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
943bcb50aad2148f2d35681d864aca26cd45da836318803236be33c0921cd6ec
|
|
BLAKE2b-256 checksum How to use checksums |
409d39e1a4aa3c957e9564041a9b9d0aa11602d91c36cab5aa11060279df3bbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / tileorm-0.4.0-py3-none-any.whl
| Download URL | tileorm-0.4.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79481187631cf1a56d4badecc1905ad48495cca55c1e3d346d4d7e047c148fd0
|
|
BLAKE2b-256 checksum How to use checksums |
4afd8c9406db47effaa22e60c0e2260f42681fefef7346dea96b4757c2545bbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|