🔷
Pyot Documentation
  • Pyot Documentation
  • Cores
    • Installation
    • Configuration
    • Objects
    • Concurrency
    • Resources
    • Exceptions
    • Warnings
  • Examples
    • Single File
    • Multi Root
    • Module Based
  • Pipeline
    • Expirations
    • Handler
    • Object
    • Token
  • Stores
    • CDragon
    • DDragon
    • DiskCache
    • DjangoCache
    • MerakiCDN
    • MongoDB
    • Omnistone
    • RedisCache
    • RiotAPI
  • Limiters
    • MemoryLimiter
    • RedisLimiter
  • Models
    • League of Legends
      • Champion
      • Championmastery
      • Championrotation
      • Clash
      • Item
      • League
      • Match
      • Merakichampion
      • Merakiitem
      • Profileicon
      • Rune
      • Spectator
      • Spell
      • Status
      • Summoner
      • Thirdpartycode
      • Tournament
    • Legends of Runeterra
      • Card
      • Match
      • Ranked
      • Status
    • Riot Services
      • Account
    • Teamfight Tactics
      • Champion
      • Item
      • League
      • Match
      • Profileicon
      • Summoner
      • Thirdpartycode
      • Trait
    • Valorant
      • Content
      • Match
      • Ranked
      • Status
  • Utils
    • LoL
      • Cdragon
      • Champion
      • Routing
    • LoR
      • Cards
    • Tft
      • Cdragon
      • Routing
    • Aiohttp
    • Copy
    • Functools
    • Importlib
    • Itertools
    • Logging
    • Nullsafe
    • Safejson
    • Sync
    • Text
    • Threading
  • Integrations
    • Django
    • FastAPI
    • Celery
  • Changelog
    • 5.x.x
    • 6.x.x
Powered by GitBook
On this page

Stores

PreviousTokenNextCDragon

Last updated 3 years ago

Configuration documentations for all available stores in Pyot.

Each store is configured at pipeline definition, the configurable values of stores are the params in the __init__ definition of each store. For example if a store can take host and db in the __init__ method, it can be configured in the pipeline like this:

    # ... Other stores
    {
        "backend": "pyot.stores.x.y",
        "host": "somehost",
        "db": "somedb"
    }

There are a few configurable values that exists across multiple stores, they will be documented here.

  • log_level: int = 0

    Used in all stores. Defines the log level of the logger used in the store, these uses the level specified in the , along with an extra level 0 which completely ignores the logging process. Defaults to 0.

  • expirations: Dict[int, int | float | timedelta] = None

    Used in cache stores. Detailed documentations in Pipeline > Expirations.

  • error_handler: Dict[int, Tuple[int]] = None

    Used in services stores. Detailed documentations in Pipeline > Handler.

Python logging facilities