{ "info": { "author": "Serge A. Levin", "author_email": "serge.levin.spb@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "=========================================================\npyofd - Python library for interacting with OFD providers\n=========================================================\n\n.. image:: https://travis-ci.org/sergelevin/pyofd.svg?branch=master\n :target: https://travis-ci.org/sergelevin/pyofd\n\n``pyofd`` is a Python package for receipts query from OFD providers.\nIt is inspired by `bobby_boy`_ project.\n\n.. contents::\n\nInstallation\n============\n\nInstall via `pip`_:\n\n::\n\n $ pip install pyofd\n\nInstall from source:\n\n::\n\n $ git clone git://github.com/sergelevin/pyofd.git\n $ cd pyofd\n $ python setup.py install\n\nUsage\n=====\n\nHere is basic usage example.\n\n::\n\n import pyofd, datetime\n\n receipt = pyofd.OFDReceipt(\n fpd='FPD', total='total', rn_kkt='RN_KKT', fn='FN',\n fd='FD', inn='INN', purchase_date=datetime.datetime.now()\n )\n result = receipt.load_receipt()\n\n``OFDReceipt`` class might be constructed only with arguments known from receipt data, but omitting arguments\nmight narrow the list of OFD providers to be checked against, because different providers require different\nsubset of data to validate receipt\n\nExamples\n========\n\nFor some basic examples read unit tests in `test`_ directory. More complicated examples can be found within\n`examples`_ directory.\n\n* `load_receipt.py `_: Load receipt by\n known attributes and save items into tab-delimited file.\n* `xlsx_receipt.py `_: Load receipt by\n known attributes and export it to MS Excel (r) .xlsx file. If `nalog.ru `_ official receipt\n check application credentials are provided in ``PYOFD_NALOGRU_LOGIN`` and ``PYOFD_NALOGRU_PASSWORD`` environment\n variables, receipt lookup via ``NalogRu`` provider is also performed. Excel file is filled with formulas and\n conditional formatting suitable for my personal receipt handling needs - column *F* is for partial refund and\n columns *G* to *Z* - for receipt entries categorization with autocounting subtotal across categories.\n\n.. _pip: https://pip.pypa.io/\n.. _bobby_boy: https://github.com/ohbobbyboy/bobby_boy/\n.. _test: https://github.com/sergelevin/pyofd/tree/master/test/\n.. _examples: https://github.com/sergelevin/pyofd/tree/master/examples/\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyofd", "package_url": "https://pypi.org/project/pyofd/", "platform": "Posix; MacOS X; Windows", "project_url": "https://pypi.org/project/pyofd/", "project_urls": null, "release_url": "https://pypi.org/project/pyofd/0.1.6/", "requires_dist": null, "requires_python": "", "summary": "OFD providers interface", "version": "0.1.6" }, "last_serial": 4552242, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "80498931eb083f3174d2b6e338b77417", "sha256": "6eac977f91dc80b705d7b30e063dcac8a310cb5b7fd713e6584fea0b90febfec" }, "downloads": -1, "filename": "pyofd-0.1.0.tar.gz", "has_sig": false, "md5_digest": "80498931eb083f3174d2b6e338b77417", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13819, "upload_time": "2018-01-24T19:54:26", "url": "https://files.pythonhosted.org/packages/14/31/30d5da371c38e401aaa3c2cc1991d8006b449602a7f8b82fcd83af1ddf02/pyofd-0.1.0.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "d65792caea86d2244b6e53cf02a9cc1c", "sha256": "028f5133db95072b06ea84cf4290c06a96ea90ba2b3346d43b93fe42a191a21f" }, "downloads": -1, "filename": "pyofd-0.1.2.tar.gz", "has_sig": false, "md5_digest": "d65792caea86d2244b6e53cf02a9cc1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14643, "upload_time": "2018-03-12T20:12:25", "url": "https://files.pythonhosted.org/packages/d3/6c/6966fe6ae136a3a0d95b7b8c536572a8e86fd8947e9ba241c9041e24fb49/pyofd-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "4fa18895d9405b7cefe677cbf29996c3", "sha256": "bb1d78e6f693d1265d67d2f06519b0b1cfbfe49767241296c1becaa0b3fb48ad" }, "downloads": -1, "filename": "pyofd-0.1.3.tar.gz", "has_sig": false, "md5_digest": "4fa18895d9405b7cefe677cbf29996c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15239, "upload_time": "2018-05-12T08:35:30", "url": "https://files.pythonhosted.org/packages/f5/58/b8e0a3dcff70ab340baf51ca340ec3b94d472e2fc9d461700bc06ef79c16/pyofd-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "637918be20291e5dd5b03c4f2fa33a08", "sha256": "221c1527ef0487d39e8deb5e937b2730602845b16072806c608a667fc35d36a5" }, "downloads": -1, "filename": "pyofd-0.1.4.tar.gz", "has_sig": false, "md5_digest": "637918be20291e5dd5b03c4f2fa33a08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15331, "upload_time": "2018-07-09T19:43:13", "url": "https://files.pythonhosted.org/packages/50/02/5a838ebf4fc15a2e336f63c139886b9bfdcea0d6a0164c6cc51e42a0bc56/pyofd-0.1.4.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "5d392875c142b4b655772be70e46e4e7", "sha256": "b2ed36d8a042f317d20d1b4fe10866e007782b84de0bdd4b894bf1badfb348b1" }, "downloads": -1, "filename": "pyofd-0.1.6.tar.gz", "has_sig": false, "md5_digest": "5d392875c142b4b655772be70e46e4e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15873, "upload_time": "2018-12-02T11:09:05", "url": "https://files.pythonhosted.org/packages/76/0e/1d0ef23cc28be892c4fb12568c2daa724e1f2d31e8267554fb8ba7d253a1/pyofd-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5d392875c142b4b655772be70e46e4e7", "sha256": "b2ed36d8a042f317d20d1b4fe10866e007782b84de0bdd4b894bf1badfb348b1" }, "downloads": -1, "filename": "pyofd-0.1.6.tar.gz", "has_sig": false, "md5_digest": "5d392875c142b4b655772be70e46e4e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15873, "upload_time": "2018-12-02T11:09:05", "url": "https://files.pythonhosted.org/packages/76/0e/1d0ef23cc28be892c4fb12568c2daa724e1f2d31e8267554fb8ba7d253a1/pyofd-0.1.6.tar.gz" } ] }