Where is your database? Why don't you use the built in sqlite db? What kind of content providers? If you can be more specific and outline your needs more clearly, perhaps we can be more helpful...
from kivy.lang import Builderfrom kivy.app import Appfrom kivy.uix.boxlayout import BoxLayoutimport platformBuilder.load_string('''#: import uname platform.uname<SystemInfoInterface>: BoxLayout: orientation: 'vertical'
Button: text: 'Press' on_press: label.text = str(root.info()) Label: id: label''')
class SystemInfoInterface(BoxLayout): def info(self): myList = [] for i in platform.uname(): # print(i[0],':',i[1]) #print(i) myList.append(i) #print(myList) return myList
class SystemInfoApp(App):
def build(self): return SystemInfoInterface()
if __name__ == "__main__": SystemInfoApp().run()
A MySQL database only makes sense if you plan heavy, multi-user access. Python (and hence Kivy) provides sqlite built it. This is much more lightweight and makes much more sense for single user applications.. MySQL is more for servers and you would need to install extra libraries and connectors to use it.
requirements = kivy,requests,openssl,urllib3,futures,kivymd