Repository for the course Databases and Practical Programming at the University of Potsdam
The following applications will be added:
- mkdoc - create API documentation from Markdown
- kroki - encode diagram code as kroki URL's (done)
- sfa - create single file applications from a few Python source code files
- SQLViewer - an SQLViewer application forSQLite databases
- PumlEditor - an Diagram Editor with preview functionality started with
python -m dbpp.peditor (diagramfile)
(done)
The following libaries will be as well added:
- dbpp.widgets - collection of Tkinter-widgets to build applications (done)
- dbpp.kroki.Encoder - class KrokiEncoder
- dbpp.utils.SqlUtils - class with utility functions for Python databases.
You can install this package using the following command:
$ pip3 install git+https://github.com/mittelmark/dbpp.git --user
$ # after successfull install try this
$ python3 -m dbpp.kroki
$ # which should give yo a message like
$ I am kroki __main__.py
$ python3 -m dbpp.peditor # should start the PumlEditor
A Python package with the following Tkinter widgets (HTML documentation):
- GuiBaseClass - base class to build your own Tkinter applications
- AutoScrollbar - a scrollbar which autohides if not required, easier to use is the Scrolled method
- Balloon - a tooltip widgets which can use balloon popups or existing label widgets
- Ctext - a syntax highlighting widget based on Tcl tklib ctext widget
- LabEntry - a composite widget out of ttk.Label and ttk.Entry
- RoText - read only tk.Text widget based on a Tcl widget created with Tcl's snit library
- Scrolled - a helper functions to attach scrollbars to widgets
- SqlText - a Text widget with support for SQL highlighting based on Ctext
- StatusBar - a statusbar having a label for messages and a progressbar
- TableView - a ttk.Treeview widget optimized for tabular output
- TextMixins - small addons for the tk.Text widget such as font increasing shortcuts, right click popups and others
- XTableView - an extended version of TableView which allows easily to read in list data
- XTreeView - a ttk.Treeview widget which provides icon facilities
- dbpp.kroki.KrokiEncoder - class with functions to encode and decode diagrams as Kroki URL's
- dbpp.utils.SqlUtils - class with utility functions for Python databases.
This a command line tool to encode diagram code such as GraphViz (.dot), PlantUML (.pml) or Ditaa (.dit) files as image url's using the kroki webservice or backtranslates image url's into diagram code.
Here an example for a backtranslation of an url into diagram code:
$ python3 -m dbpp.kroki https://kroki.io/plantuml/svg/eNpLzkksLlZwVKhWqAUAF10DsA==
class A { }
This a graphical application to editdiagram code such as GraphViz (.dot), PlantUML (.pml) or Ditaa (.dit) files and preview the image right of the editor window. This tool is as well using the kroki webservice to translate the diagram code into an image which is downloaded in parallel to the diagram file.
Here is shown how you can execute the program if the package is installed.
$ python3 -m dbpp.peditor ?diagramfile? &