Skip to content

espmancer/glg-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glg-py

A grocery list generator made in Python. Originally I used Dataview within Obsidian to generate a numerically sorted list of items I linked in another list of recipes. Each entry was its own page with metadata, which got tricky to work with on mobile. After that I tried to make it in using JSON and a JSONPath addon in LabVIEW called JSONText, but I suddenly needed to fix problems in that JSONText library in order to get it to do what I wanted, so I switched to Python instead.

How It Works

  • This program uses and manipulates a list of dictionaries stored in a txt file within your system's local appdata folder. It will be under a GLG folder if you want to manually edit it for some reason.
  • There are functions to add, remove, and edit these dictionaries.
  • Once the list is configured, an alphanumerically sorted list of items and their aisles is created, with each item having the markdown checkbox.
    • Like this

Items

Items are the most concrete level of elements in the list. They contain a name, type, and set of aisles, which is formatted as such:

{
  "name":"Element Name",
  "type":"item",
  "aisle": {
    "College":"A1",
    "Grandparents":"A2"
  }
}

Currently the aisles are hardcoded and are specific to Walmart's aisle system, but I may add functionality to add and edit stores and their particular locations.

Recipes

Recipes are lists of items. They contain a name, type, and list of items, and are formatted as such:

{
  "name":"Recipe Name",
  "type":"item",
  "items": [
    "Item A",
    "Item B"
  ]
}

Future Ideas

  • I will start with text-based then move to Tkinter. This one is confirmed.
  • I may try and make this compatible with mobile and remove a computer from the equation altogether. Python has an Android library that I might be able to use.

About

Grocery list generator made in python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages