Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Keeps Track of Products in your fridge!
Python
branch: master

This branch is 19 commits ahead, 7 commits behind koeart:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
fridge.json
fridge.py
test.py

README.md

redFridge - mintyPT

Keeps track of products in your fridge!

About this

I forked this in first place to learn about python, json, etc.

This is simply a dict{} containing several keys, your products, and an amount, their value.

How to use this:

  1. load the script:
    run fridge.py

  2. pick your fridge:
    f = fridge()

  3. open it:
    f.open()

  4. use your fridge like a big boy.

  5. What's next?

    In your fridge you have:
    f.show()

    If you need to add 6 beers, no problem:
    fridge.add('Beer',6)

    If after all you just have 4 beers, just remove 2:
    f.sub('Beer',2)

    How many beers do you have after all?
    f.amountOf('Beer')

    To get rid of everything:
    f.clear()

  6. Don't forget to close it after you're done:
    f.close()

Something went wrong with that request. Please try again.