Skip to content

Instantly share code, notes, and snippets.

@HarshaVardhanBabu
HarshaVardhanBabu / Instructions_UML_Python.rst
Last active October 4, 2024 12:43
Generating UML diagrams in python using pyreverse

Requirements

  1. Install Pylint from Install. If you have anaconda already installed use pip install -U pylint to update the Pylint so that pyreverse is added to the scripts folder.

  2. You need to install Graphviz as the pyreverse generates the UML diagrams in dot format and needs the dot.exe provided by Graphviz. Once Graphviz is installed make sure the bin folder is added to the PATH variable so that pyreverse can find it at run time. "the command pyreverse generates the diagrams in all formats that graphviz/dot knows." (Reference

  3. Now add the path of python modules for which you want to generate the documentation to PYTHONPATH.

  4. Use pyreverse -S <modulename> to generate dot files in the current folder

    Usage:

Course Description

In this course, you'll learn
  • The fundamentals of the Python programming language : 1 hr
  • Store data using Python data types and variables : 1 hr
  • Use complex data structures like lists, sets, dictionaries, and tuples to store collections of related data : 2 hr
  • Use conditionals and loops to control the flow of code : 3 hr
  • Define and document your own custom functions, write scripts, and handle errors : 3 hr
  • How to find and use modules in the Python Standard Library and other third-party libraries : 2 hr
@HarshaVardhanBabu
HarshaVardhanBabu / Converter.py
Created October 22, 2018 14:42
Simple Converter app to understand tkinter framework
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 22 19:26:07 2018
@author: hnambur
"""
from tkinter import Label,Entry,Button,Tk
class Converter:
@HarshaVardhanBabu
HarshaVardhanBabu / dboperations.py
Created October 22, 2018 16:46
sqlite3 operations in python
import sqlite3
class DatabaseOperations:
def __init__(self):
self.database_name = 'phonebook.db'
# Get the connection
def get_db_connection(self):
conn = sqlite3.connect(self.database_name)
return conn
@HarshaVardhanBabu
HarshaVardhanBabu / phone_book.py
Last active August 8, 2021 09:10
Simple phone book GUI using tkinter in python
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 22 20:26:38 2018
@author: hnambur
"""
from tkinter import Frame,Tk,Label,Entry,Scrollbar,Listbox,Button,END,VERTICAL
from DbCon import DatabaseOperations as db
class phonebook(Frame):
def __init__(self,master):
@HarshaVardhanBabu
HarshaVardhanBabu / Good Practice Excercises
Created October 25, 2018 09:33
Python online resources for practice
http://python.berkeley.edu/learn/#practice