π₯ Trending Repository: nocodb
π Description: π₯ π₯ π₯ Open Source Airtable Alternative
π Repository URL: https://github.com/nocodb/nocodb
π Website: https://nocodb.com
π Readme: https://github.com/nocodb/nocodb#readme
π Statistics:
π Stars: 57K stars
π Watchers: 387
π΄ Forks: 4.2K forks
π» Programming Languages: TypeScript - Vue - JavaScript - PLpgSQL - Shell - CSS
π·οΈ Related Topics:
==================================
π§ By: https://t.iss.one/DataScienceM
π Description: π₯ π₯ π₯ Open Source Airtable Alternative
π Repository URL: https://github.com/nocodb/nocodb
π Website: https://nocodb.com
π Readme: https://github.com/nocodb/nocodb#readme
π Statistics:
π Stars: 57K stars
π Watchers: 387
π΄ Forks: 4.2K forks
π» Programming Languages: TypeScript - Vue - JavaScript - PLpgSQL - Shell - CSS
π·οΈ Related Topics:
#rest_api #sqlite #postgresql #swagger #spreadsheet #airtable #restful_api #hacktoberfest #low_code #no_code #automatic_api #no_code_platform #no_code_database #airtable_alternative
==================================
π§ By: https://t.iss.one/DataScienceM
β€1
π₯ Trending Repository: directus
π Description: The flexible backend for all your projects π° Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.
π Repository URL: https://github.com/directus/directus
π Website: https://directus.io
π Readme: https://github.com/directus/directus#readme
π Statistics:
π Stars: 32.4K stars
π Watchers: 328
π΄ Forks: 4.4K forks
π» Programming Languages: TypeScript - Vue - SCSS - JavaScript - Liquid - CSS
π·οΈ Related Topics:
==================================
π§ By: https://t.iss.one/DataScienceM
π Description: The flexible backend for all your projects π° Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.
π Repository URL: https://github.com/directus/directus
π Website: https://directus.io
π Readme: https://github.com/directus/directus#readme
π Statistics:
π Stars: 32.4K stars
π Watchers: 328
π΄ Forks: 4.4K forks
π» Programming Languages: TypeScript - Vue - SCSS - JavaScript - Liquid - CSS
π·οΈ Related Topics:
#javascript #mysql #api #graphql #cms #app #node #typescript #sql #database #vue #sqlite #postgresql #mariadb #data_visualization #mssql #directus #composable #headless_cms #no_code
==================================
π§ By: https://t.iss.one/DataScienceM
π₯ Trending Repository: drawdb
π Description: Free, simple, and intuitive online database diagram editor and SQL generator.
π Repository URL: https://github.com/drawdb-io/drawdb
π Website: https://drawdb.app
π Readme: https://github.com/drawdb-io/drawdb#readme
π Statistics:
π Stars: 33.4K stars
π Watchers: 125
π΄ Forks: 2.5K forks
π» Programming Languages: JavaScript
π·οΈ Related Topics:
==================================
π§ By: https://t.iss.one/DataScienceM
π Description: Free, simple, and intuitive online database diagram editor and SQL generator.
π Repository URL: https://github.com/drawdb-io/drawdb
π Website: https://drawdb.app
π Readme: https://github.com/drawdb-io/drawdb#readme
π Statistics:
π Stars: 33.4K stars
π Watchers: 125
π΄ Forks: 2.5K forks
π» Programming Languages: JavaScript
π·οΈ Related Topics:
#react #javascript #svg #editor #sql #sql_server #sqlite #postgresql #mariadb #indexeddb #oracle_db #erd #database_schema #oracle_database #diagram_editor #tailwindcss #erdiagram
==================================
π§ By: https://t.iss.one/DataScienceM
#PyQt5 #SQLite #DesktopApp #Pharmacy #Barcode #Python
Lesson: Building a Pharmacy Management System with PyQt5 and Barcode Scanning
This tutorial will guide you through creating a complete desktop application for managing a pharmacy. The system will use a SQLite database for inventory, and a Point of Sale (POS) interface that uses barcode scanning to add drugs to a sale and automatically deducts stock upon completion.
---
First, we create a dedicated file to handle all SQLite database operations. This keeps our data logic separate from our UI logic. Create a file named
---
Create the main application file,
Lesson: Building a Pharmacy Management System with PyQt5 and Barcode Scanning
This tutorial will guide you through creating a complete desktop application for managing a pharmacy. The system will use a SQLite database for inventory, and a Point of Sale (POS) interface that uses barcode scanning to add drugs to a sale and automatically deducts stock upon completion.
---
#Step 1: Database Setup (database.py)First, we create a dedicated file to handle all SQLite database operations. This keeps our data logic separate from our UI logic. Create a file named
database.py.import sqlite3
DB_NAME = 'pharmacy.db'
def connect():
return sqlite3.connect(DB_NAME)
def setup_database():
conn = connect()
cursor = conn.cursor()
cursor.execute('''
CREATE TABLE IF NOT EXISTS drugs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
barcode TEXT NOT NULL UNIQUE,
quantity INTEGER NOT NULL,
price REAL NOT NULL,
expiry_date TEXT NOT NULL
)
''')
conn.commit()
conn.close()
def add_drug(name, barcode, quantity, price, expiry_date):
conn = connect()
cursor = conn.cursor()
try:
cursor.execute("INSERT INTO drugs (name, barcode, quantity, price, expiry_date) VALUES (?, ?, ?, ?, ?)",
(name, barcode, quantity, price, expiry_date))
conn.commit()
except sqlite3.IntegrityError:
return False # Barcode already exists
finally:
conn.close()
return True
def get_all_drugs():
conn = connect()
cursor = conn.cursor()
cursor.execute("SELECT id, name, barcode, quantity, price, expiry_date FROM drugs ORDER BY name")
drugs = cursor.fetchall()
conn.close()
return drugs
def find_drug_by_barcode(barcode):
conn = connect()
cursor = conn.cursor()
cursor.execute("SELECT id, name, barcode, quantity, price, expiry_date FROM drugs WHERE barcode = ?", (barcode,))
drug = cursor.fetchone()
conn.close()
return drug
def update_drug_quantity(drug_id, sold_quantity):
conn = connect()
cursor = conn.cursor()
cursor.execute("UPDATE drugs SET quantity = quantity - ? WHERE id = ?", (sold_quantity, drug_id))
conn.commit()
conn.close()
# Hashtags: #SQLite #DatabaseDesign #DataPersistence #Python
---
#Step 2: Main Application and Inventory Management UICreate the main application file,
main.py. We will set up the main window with tabs for "Point of Sale" and "Inventory Management". We will fully implement the inventory tab first, allowing users to view and add drugs to the database.π₯ Trending Repository: dbeaver
π Description: Free universal database tool and SQL client
π Repository URL: https://github.com/dbeaver/dbeaver
π Website: https://dbeaver.io
π Readme: https://github.com/dbeaver/dbeaver#readme
π Statistics:
π Stars: 46.1K stars
π Watchers: 527
π΄ Forks: 3.9K forks
π» Programming Languages: Java - C++ - ANTLR - CSS - HTML - XSLT
π·οΈ Related Topics:
==================================
π§ By: https://t.iss.one/DataScienceM
π Description: Free universal database tool and SQL client
π Repository URL: https://github.com/dbeaver/dbeaver
π Website: https://dbeaver.io
π Readme: https://github.com/dbeaver/dbeaver#readme
π Statistics:
π Stars: 46.1K stars
π Watchers: 527
π΄ Forks: 3.9K forks
π» Programming Languages: Java - C++ - ANTLR - CSS - HTML - XSLT
π·οΈ Related Topics:
#mysql #java #gui #sql #database #ai #nosql #jdbc #sqlite #postgresql #oracle #openai #dbeaver #erd #redshift #db2 #sqlserver #copilot
==================================
π§ By: https://t.iss.one/DataScienceM