{ "info": { "author": "Brutus", "author_email": "brutus.dmc@googlemail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License (GPL)" ], "description": "========\nboozelib\n========\n\nA Python module containing a couple of functions to calculate the\n*blood alcohol content* of people.\n\nIt's at home at GitHub: https://github.com/brutus/boozelib/\n\n**boozelib** has no dependencies. If you want to run the included test cases\nyou need the nose_ testing framework though (see below).\n\nFunctions\n=========\n\nThe two main functions are:\n\n* ``get_bac(age, weight, height, sex, volume, percent)``\n\n Returns the *Blood Alcohol Content* (raise) for a person (described by the\n given attributes) after a drink containing *volume* ml of alcohol with the\n given *percent* (vol/vol).\n\n* ``get_degradation(age, weight, height, sex, minutes)``\n\n Returns the *alcohol degradation* (per mill) of a person with the given\n stats in the given number of *minutes*.\n\nSee the documentation inside the source file (``boozelib.py``) for more\ninformation and other probably helpful stuff. You can browse the full\ndocumentation_ online, there is also a quick overview_ of all available\nconstants and functions. Or you can get help with ``pydoc boozelib``, if you\nalready got **boozelib** installed.\n\nIf you're interested in the used formulas, see the source and documentation or\nbrowse the formulas_ online (maybe easier to read).\n\nExamples\n--------\n\n>>> get_bac(32, 96, 186, False, 500, 4.9)\n0.28773587455687716\n\n>>> get_bac(32, 48, 162, True, 500, 4.9)\n0.5480779730398769\n\n>>> get_degradation(32, 96, 186, False, 60)\n0.21139778538872606\n\n>>> get_degradation(32, 48, 162, True, 60)\n0.20133476560648536\n\nInstall\n=======\n\nYou can install **boozelib** with pip_ or from source.\n\nInstall with pip\n----------------\n\npip_ is \"*a tool for installing and managing Python packages*\". If you have it\ninstalled, simply get **boozelib** like this:\n\nInstall system wide:\n\n ``sudo pip install boozelib``\n\nInstall only for the current user:\n\n ``pip install --user boozelib``\n\nInstall pip\n~~~~~~~~~~~\n\nIf you don't have pip_ installed yet, you can get it with these two commands:\n\n ``$ sudo curl http://python-distribute.org/distribute_setup.py | python``\n\n ``$ sudo curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python``\n\nInstall from source\n-------------------\n\nYou can fetch the latest sourceball_ from github and unpack it, or just clone\nthe repository: ``git clone git://github.com/brutus/boozelib.git``. If you got\nthe source, change into the directory and use ``setup.py``:\n\nInstall system wide:\n\n ``sudo python setup.py install``\n\nInstall only for the current user:\n\n ``python setup.py install --user``\n\nTesting\n=======\n\nThere are some doctes in the module, you can run them from the ``boozelib``\ndirectory by either running the module by itself ``python boozelib.py`` or\nrunning ``python -m doctest -v boozelib.py``.\n\nIf you want to run the test cases, see that you got nose_ installed and run\n``nosetests`` from the ``boozelib`` directory (the one containing the module).\nIf you got **boozelib** already installed, run them like this: ``nosetest\ntest_boozelib``\n\nIf something fails, please get in touch.\n\nInstall nose\n------------\n\nYou can install nose_ with pip_ ``sudo pip install nose`` or propably also\ntrough your OS package management, eg: ``sudo apt-get install python-nose`` or\nthe like.\n\nThanks and Contributions\n========================\n\n* Big hugs to Mathilda for hanging around and helping me figuring out all\n that math and biology stuff.\n\nIf you find any bugs, issues or anything, please use the `issue tracker`_ on\nGitHub.\n\n.. _documentation: http://boozelib.readthedocs.org/\n.. _overview: http://boozelib.readthedocs.org/en/latest/functions.html\n.. _formulas: http://boozelib.readthedocs.org/en/latest/formulas.html\n.. _`issue tracker`: https://github.com/brutus/boozelib/issues\n.. _sourceball: https://github.com/brutus/boozelib/zipball/master\n.. _nose: http://readthedocs.org/docs/nose/en/latest/testing.html\n.. _pip: http://www.pip-installer.org/en/latest/index.html", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/brutus/boozelib/zipball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/brutus/boozelib", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "BoozeLib", "package_url": "https://pypi.org/project/BoozeLib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/BoozeLib/", "project_urls": { "Download": "https://github.com/brutus/boozelib/zipball/master", "Homepage": "https://github.com/brutus/boozelib" }, "release_url": "https://pypi.org/project/BoozeLib/0.4/", "requires_dist": null, "requires_python": null, "summary": "A Python module containing a couple of functions to calculate the *blood alcohol content* of people.", "version": "0.4" }, "last_serial": 743294, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "0bec3a587ea270204f2daea56865277c", "sha256": "d29a4aca0b4cdf31bec0094f9d9181e4be95bc96b2fd74b2bb2376f1a415105e" }, "downloads": -1, "filename": "BoozeLib-0.3.tar.gz", "has_sig": false, "md5_digest": "0bec3a587ea270204f2daea56865277c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17953, "upload_time": "2012-04-17T16:53:46", "url": "https://files.pythonhosted.org/packages/e3/02/06f26deeeb5acb424bb4abe3596d165455a1e3de36833f15097b42ec5379/BoozeLib-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "c16d8618c5f2a8f15e377d1a124782c9", "sha256": "a1b0a2134e364708a6d226140052d1020065d26abbfae481ff3f980c394c90c6" }, "downloads": -1, "filename": "BoozeLib-0.4.tar.gz", "has_sig": false, "md5_digest": "c16d8618c5f2a8f15e377d1a124782c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 88534, "upload_time": "2012-04-18T02:38:20", "url": "https://files.pythonhosted.org/packages/5e/87/7fa82d05c71ff540f231855d6081dfd5b69ceee0fa350b27b6b9636a0a63/BoozeLib-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c16d8618c5f2a8f15e377d1a124782c9", "sha256": "a1b0a2134e364708a6d226140052d1020065d26abbfae481ff3f980c394c90c6" }, "downloads": -1, "filename": "BoozeLib-0.4.tar.gz", "has_sig": false, "md5_digest": "c16d8618c5f2a8f15e377d1a124782c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 88534, "upload_time": "2012-04-18T02:38:20", "url": "https://files.pythonhosted.org/packages/5e/87/7fa82d05c71ff540f231855d6081dfd5b69ceee0fa350b27b6b9636a0a63/BoozeLib-0.4.tar.gz" } ] }