Skip to content

Repository for the course Databases and Practical Programming at the University of Potsdam

License

Notifications You must be signed in to change notification settings

mittelmark/dbpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

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)

PumlEditor

The following libaries will be as well added:

Installation

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

dbpp.widgets

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

Other packages

Applications

kroki - the KrokiEncoder

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 { }

peditor - the PumlEditor

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? &

About

Repository for the course Databases and Practical Programming at the University of Potsdam

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published