Skip to main content

The script (web-version) 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 beer.

  • 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

  • [x] web-version

  • [ ] tests

  • [ ] badges

  • [ ] config support

  • [ ] testing on linux

  • [ ] android app

  • [ ] iOS app

  • [ ] pr

Metadata

Release files for bar-chooser 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bar-chooser 0.1.3
File Size Uploaded Provenance
bar-chooser-0.1.3.tar.gz 2.6 kB Without provenance Details

Release files / bar-chooser-0.1.3.tar.gz

Download URL bar-chooser-0.1.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2a2c1bbe663661446efaa8a14cb1f0f5304945b0964b257e3cd25031803dbd0a
BLAKE2b-256 checksum
How to use checksums
0490ce55cad5fdecd6b60674b57d4b971d49c7bf351d4cd9b6884fe0d6abd01e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bar-chooser 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page