Skip to content

# PyContacts: A Pythonic Contacts Manager with SQLite and API Integration, SQlite database, SQlite studio, read-write functionality to delete/edit/update contacts with Python, and more.

Notifications You must be signed in to change notification settings

MayCooper/Contacts-Manager-SQLiteApp-Python-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Contacts-Manager-SQLiteApp-Python-API

PyContacts: A Pythonic Contacts Manager with SQLite and API Integration with APIs

Utilizing SQlite database, SQlite studio, read-write functionality to delete/edit/update contacts with Python, and more.

This is a project for managing contacts using a graphical user interface (GUI) built with the Tkinter library in Python. The project provides a contact management system with features such as adding new contacts, viewing existing contacts, deleting selected contacts, and modifying selected contacts.

The contacts are stored in an SQLite database (contacts.db) and the GUI allows users to interact with the data through a tree view widget.

Additionally, the project includes an API for interacting with the contact data programmatically, providing external access to the contact management functionality.

Some examples from the project:

Creating tables in the database:

Tables

Creating contacts in the database:

Contacts

Downloading Tkinter, our Python GUI:

GUI

Starting Code:

Starting Code

Adding a logo and code for widgets for the application:

Logo

Adding a LabelFrame, labels, entry fields for contacts, and a button:

Buttons And Fields

Now, we’re going to add another label where we’d be able to see a message come up when we add or delete a lead or a contact. We’re going to be using a treeview widget from tkinter that will allow us to display messages. Some of the code development:

Code Development

So right now, we’re seeing a message area but it’s not populated yet:

Message Area

Changed some fonts and bolded the font. Also added a scroll bar and buttons to modify or delete entries.

Scrollbar and more

Creating a function to be able to call the GUI:

GUI

Importing the SQL database into my application:

SQL

I'll create another function to be able to interact with the database. I'll also create a function to add new contacts into the database, validate inputs, and be able to fetch all records from the database to be able to display in treeview, the function that allows this in the application:

treeview

Adding contacts:

Hermione_contact

Adding contact message:

message

Now that we can add records and see it in the app, we want a way to delete records as well:

delete_contacts

I'll also add this code block to deal with exceptions if you try to delete without having selected anything:

exceptions

Wiring up buttons for the modify selected button and changing contacts:

Buttons

Testing “modify selected” button:

Items_not_selected

Creating virtual environment, installing Django, installing REST framework

VM_Creation_Django

Registering products:

Registering_products

Creating API infob backend:

API_info_

API:

API_info_

About

# PyContacts: A Pythonic Contacts Manager with SQLite and API Integration, SQlite database, SQlite studio, read-write functionality to delete/edit/update contacts with Python, and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages