<prompt> Unda programu ya Python Flask ambayo hutumika kama API RESTful ya kudhibiti mkusanyiko wa vitabu. API inapaswa kuauni shughuli za CRUD Unda, Soma, Sasisha, na Futa kwenye mkusanyiko wa vitabu na kuhifadhi data katika hifadhidata ya SQLite.PLINFORMAT  <response>: kutoka kwa chupa ya kuingiza chupa, ombi, jsonifykutoka kwa flask_sqlalchemy kuagiza SQLAlchemyprogramu Chupa__jina__app.configSQLALCHEMY_DATABASE_URI sqlite:books.dbdb SQLAlchemyprogramu Bainisha muundo wa KitabuKitabu cha darasadb.Model: id db.Safuwimadb.Integer,msingi_ufunguoKweli title db.Safuwimadb.String100, nullableFalse mwandishi db.Columndb.String50, nullableFalse published_year db.Safuwimadb.Integer, nullableFalse def __repr__binafsi: return fBookself.title, self.author, self.published_year Pata vitabu mbinuGETdef get_books: vitabu Kitabu.query.all rudisha jsonifykitabu.__dict__ kwa kitabu katika vitabu Pata kitabu mbinuGETdef get_bookkitabu_kitabu: kitabu Book.query.get_or_404kitabu_cha rudisha jsonifykitabu.__dict__ Unda kitabu mbinuPOSTdef create_book: data request.get_json new_book Kitabutitledatatitle, authordataauthor, published_yeardatapublished_year db.session.addkitabu_kipya db.session.commit rudisha jsonifykitabu_kipya.__dict__, 201 Sasisha kitabu methodPUTdef update_kitabukitabu_kitabu: data request.get_json kitabu Book.query.get_or_404kitabu_cha book.title datatitle book.author dataauthor book.published_year datapublished_year db.session.commit rudisha jsonifykitabu.__dict__Futa methodDELETEdef delete_bookkitabu_kitabu: kitabu Book.query.get_or_404book_id db.session.deletekitabu db.session.commit kurudi, 204kama __name__ __main__: app.rundebugKweli 