Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Script that help you to choose a bar to drink with someone.

Project description

The script that helps you to choose a bar to drink with someone.

Why?

I spent too much time to choose a bar to go with different people:

  • One need vegan food.
  • Second wants to drink nice bear.
  • Third wants perfect steak.
  • Fourth has little money but want to drink a lot.
  • I want to drink near my home.
  • Sometimes we need to meet somewhere at the city center.

And all these metrics should be combined to find a perfect place for a given booze.

Installation

pip install bar-chooser

Usage

$ bar-chooser --meat=2 --beer=1 --cheap=1 --at-work=1 --at-home=1
pan-smetan: 4
8500: 4
ratskeller: 3
new-bar: 3
peperonni: 3
yankee-bar: 3
jawsspot: 2
marusya: 2
misantrop: 2

Customizing

Create your own utility based on BarChooser.

from bar_chooser import BarChooser

MY_KEYS = ['vodka', 'seledka']
MY_BARS = {
    'bar1': [2, 1],
    'bar2': [0, 2],
}

def main():
    BarChooser(MY_KEYS, MY_BARS)

if __name__ == '__main__':
    main()

TODO

  • [x] prototype
  • [x] argparse
  • [x] submit a package in PYPI
  • [ ] tests
  • [ ] badges
  • [ ] config support
  • [ ] testing on linux
  • [ ] android app
  • [ ] iOS app
  • [ ] pr

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bar-chooser, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size bar-chooser-0.1.2.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page