Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.7 instead.
Reason given by maintainers: wrong number

Python Redis Object Mapper

asyncio based Redis object mapper

Table of content

Installation

TODO

Usage

import asyncio

from dataclasses import field
from typing import Set, Dict

import rom
from rom.fields import Metadata


class Foo(rom.Model):
    bar: int
    foobar: Set[int] = field(default_factory=set)
    my_boolean: bool = False
    transient_field: Dict = field(metadata=Metadata(transient=True))


class OtherFoo(rom.Model):
    foo: Foo

async def main():
    async with rom.session.redis_pool("redis://localhost"):
        foo = Foo(123, {1,2,3}, True)
        await foo.save()
        ...
        foo2 = await Foo.get(321)
        other_foo = OtherFoo(303, foo2)
        await other_foo.save()

asyncio.run(main())

Features

TODO

TODO

  1. Docs
  2. Tests

Limitations

  1. configure must be called before other calls to Redis can succeed, no defaults to localhost atm.
  2. You cannot use from __future__ import annotations in the same file you define your models. See https://bugs.python.org/issue39442
  3. TODO Supported datatypes
  4. Probably more ...

Release files for aio-rom 0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aio-rom 0
File Size Uploaded
aio-rom-0.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aio-rom 0
File Interpreter ABI Platform
aio_rom-0-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 kB

Release files / aio-rom-0.tar.gz

Download URL aio-rom-0.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
abb587a7c05d241c6ec86a4e986e7dead99d2950e0b815b51b8b583566193a53
BLAKE2b-256 checksum
How to use checksums
b4d6dfc5fa78a8496790f6c5992e89065ace5d46b19f13eaca803e08a08ba4cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.8.2 Linux/5.8.0-1039-azure

Release files / aio_rom-0-py3-none-any.whl

Download URL aio_rom-0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0939c2a15bdafda297efe27957108f52e1f8cddf37e80eba485414554f114edf
BLAKE2b-256 checksum
How to use checksums
95af878ad18890bf8f6f5ad1aaa3e3cab11ac094beebf9a95e210c390706aa34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.8.2 Linux/5.8.0-1039-azure

Release history Release notifications | RSS feed

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

This release

0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page