Data Science Jupyter Notebooks
10.9K subscribers
268 photos
31 videos
9 files
697 links
Explore the world of Data Science through Jupyter Notebooksβ€”insights, tutorials, and tools to boost your data journey. Code, analyze, and visualize smarter with every post.
Download Telegram
πŸ”₯ 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:
#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:
#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:
#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.

---

#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 UI

Create 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:
#mysql #java #gui #sql #database #ai #nosql #jdbc #sqlite #postgresql #oracle #openai #dbeaver #erd #redshift #db2 #sqlserver #copilot


==================================
🧠 By: https://t.iss.one/DataScienceM