>>> from kenobi import KenobiDB  

>>> db = KenobiDB('example.db')  

>>> db.insert({'name': 'Yoda', 'lightsaber': 'green'})  
True  

>>> db.search('lightsaber', 'green')  
[{'name': 'Yoda', 'lightsaber': 'green'}]  
  • rglullis@communick.news
    link
    fedilink
    English
    arrow-up
    4
    ·
    11 days ago

    KenobiDB is designed for small-scale applications and prototypes. While it provides excellent performance for most operations, it is not intended to replace full-fledged databases for high-scale or enterprise-level applications for that you should use MongoDB.

    Only MongoDB is webscale…

    • logging_strict@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      9 days ago

      Which is stated very clearly.

      Not stated, kenobi data engine is limited to only sqlite3. Would pigeon hole yourself unable to switch data engines later on. For that usecase, recommend an ORM (SQLAlchemy).

      kenobi looks like a fun project. Not every project needs to be bleeding edge or the bestest. kenobi is a good choice who those who are making a local app that doesn’t deal with requests.