bar-chooser-0.1.3
توضیحات
Script that help you to choose a bar to drink with someone.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bar-chooser-0.1.3 |
| نام | bar-chooser |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Oleg Strizhechenko |
| ایمیل نویسنده | oleg.strizhechenko@gmail.com |
| آدرس صفحه اصلی | https://github.com/strizhechenko/bar-chooser |
| آدرس اینترنتی | https://pypi.org/project/bar-chooser/ |
| مجوز | MIT |
Bar-chooser
===========
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
------------
.. code:: shell
pip install bar-chooser
Usage
-----
.. code:: shell
$ 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.
.. code:: python
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
.. _web-version: https://strizhechenko.github.io/bar-chooser/web/
نحوه نصب
نصب پکیج whl bar-chooser-0.1.3:
pip install bar-chooser-0.1.3.whl
نصب پکیج tar.gz bar-chooser-0.1.3:
pip install bar-chooser-0.1.3.tar.gz