Skip to content

A Python script to check user input against a table in a Supabase database.

Notifications You must be signed in to change notification settings

raulkolaric/PlacesCheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ—ΊοΈ PlacesCheck

Python Supabase Rich

A beautiful terminal application to verify place names against a large Supabase database, featuring a colorful and responsive TUI interface with smart parsing and progress tracking.

✨ Features

  • One-Click Operations: Easily fetch and compare places from terminal
  • Smart Parsing: Supports comma-separated, bulleted, and numbered lists
  • Progress Bars: Clear visual progress using rich.progress
  • Colorful Output: Displays results in neatly formatted tables
  • Windows Friendly: Built-in Unicode handling

πŸ› οΈ Setup

  1. Clone the repository:

    git clone https://github.com/raulkolaric/PlacesCheck.git
    cd PlacesCheck
  2. Install dependencies:

    pip install -r requirements.txt
  3. Configure Supabase credentials: Create a .env file:

    SUPABASE_URL=your_project_url
    SUPABASE_SERVICE_ROLE_KEY=your_service_key

πŸš€ Usage

Run the app:

python src/main.py

Menu Options:

  1. Fetch Data – Loads existing place names from Supabase table google_places
  2. Compare – Parses insert.txt and compares each name
  3. Exit – Closes the program

{3D06C0BF-52BF-443A-A3C1-08FC989EA9EE}

πŸ“ Project Structure

PlacesCheck/
β”œβ”€β”€ src/
β”‚   └── main.py             # Main application
β”‚   └── compare.py
β”‚   └── fetch.py
β”œβ”€β”€ data/          # Input list of place names
β”‚   └── fetched_data.json       # Cached data from Supabase
β”‚   └── missing_places.txt      # Auto-saved unmatched entries
β”‚   └── insert.txt              # Your input against the data from Supabase
β”œβ”€β”€ .env                    # Your Supabase credentials
β”œβ”€β”€ requirements.txt        # Python dependencies
└── README.md               # Project overview

βš™οΈ Configuration

Default values:

TABLE_NAME = "google_places"
COLUMN_NAME = "name"

Change these in main.py to use a different table or column.

πŸ’‘ Tips

  • Supports copy-pasting from various formats (e.g., Excel, Google Docs)
  • Automatically saves unmatched entries to missing_places.txt
  • Press Ctrl+C to exit safely at any time

πŸ“œ License

MIT License – Free to use, modify, and distribute!

About

A Python script to check user input against a table in a Supabase database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages