{ "info": { "author": "Adam Strauch", "author_email": "cx@initd.cz", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Utilities" ], "description": "================\nInvoiceGenerator\n================\n.. image:: https://travis-ci.org/creckx/InvoiceGenerator.svg\n :target: https://travis-ci.org/creckx/InvoiceGenerator\n\nThis is library to generate a simple invoices.\nCurrently supported formats are PDF and XML for Pohoda accounting system.\nPDF invoice is based on ReportLab.\n\nInstallation\n============\n\nRun this command as root::\n\n\tpip install InvoiceGenerator\n\nIf you want upgrade to new version, add ``--upgrade`` flag::\n\n\tpip install InvoiceGenerator --upgrade\n\nYou can use setup.py from GitHub repository too::\n\n\tpython setup.py install\n\n\nDocumentation\n-------------\n\nComplete documentation is available on\n`Read The Docs `_.\n\n\nExample\n=======\n\nBasic API\n---------\n\nDefine invoice data first::\n\n\timport os\n\n\tfrom tempfile import NamedTemporaryFile\n\n\tfrom InvoiceGenerator.api import Invoice, Item, Client, Provider, Creator\n\n\t# choose english as language\n\tos.environ[\"INVOICE_LANG\"] = \"en\"\n\n\tclient = Client('Client company')\n\tprovider = Provider('My company', bank_account='2600420569', bank_code='2010')\n\tcreator = Creator('John Doe')\n\n\tinvoice = Invoice(client, provider, creator)\n\tinvoice.currency_locale = 'en_US.UTF-8'\n\tinvoice.add_item(Item(32, 600, description=\"Item 1\"))\n\tinvoice.add_item(Item(60, 50, description=\"Item 2\", tax=21))\n\tinvoice.add_item(Item(50, 60, description=\"Item 3\", tax=0))\n\tinvoice.add_item(Item(5, 600, description=\"Item 4\", tax=15))\n\nNote: Due to Python's representational error, write numbers as integer ``tax=10``,\nDecimal ``tax=Decimal('10.1')`` or string ``tax='1.2'`` to avoid getting results with\nlot of decimal places.\n\nPDF\n---\n\nGenerate PDF invoice file::\n\n\tfrom InvoiceGenerator.pdf import SimpleInvoice\n\n\tpdf = SimpleInvoice(invoice)\n\tpdf.gen(\"invoice.pdf\", generate_qr_code=True)\n\n\nPohoda XML\n----------\n\nGenerate XML invoice file::\n\n\tfrom InvoiceGenerator.pohoda import SimpleInvoice\n\n\tpdf = SimpleInvoice(invoice)\n\tpdf.gen(\"invoice.xml\")\n\nNote: Pohoda uses three tax rates: none: 0%, low: 15%, high: 21%.\nIf any item doesn't meet those percentage, the rateVat parameter will\nnot be set for those items resulting in 0% tax rate.\n\nOnly SimpleInvoice is currently supported for Pohoda XML format.\n\n\nHacking\n=======\n\nFork the `repository on github `_ and\nwrite code. Make sure to add tests covering your code under `/tests/`. You can\nrun tests using::\n\n python setup.py test\n\nThen propose your patch via a pull request.\n\nDocumentation is generated from `doc/source/` using `Sphinx\n`_::\n\n python setup.py build_sphinx\n\nThen head to `doc/build/html/index.html`.\n\n\nHistory\n=======\n\n1.0.0 - 2018-05-17\n------------------\n- Add support for Pohoda XML format\n- Added much more complex documentation\n- Parameter ``Address.zip`` was renamed to ``Address.zip_code``\n- Add parameters ``division`` and ``country`` to the ``Address``\n- Added parameter ``Address.bank_code``\n If present, the bank code will be written after dash to\n the account number, otherwise whole\n ``Address.bank_account`` will be used\n- Address are rendered to fit the area on the PDF invoice\n- Code style fixes\n- Fixes for rounding: usage of ``decimal.Decimal`` and\n added parameter ``Invoice.rounding_strategy``\n- Fix for QR code\n- Allow to set line width in ``SimpleInvoice``\n\n\n0.5.4 - 2017-03-22\n------------------\n- Fix locale in build package\n\n\n0.5.3 - 2017-01-09\n------------------\n- Use Babel for currency formating; fix and improve tests\n\n0.5.2 - 2014-12-04\n------------------\n- Stop mentionning python2.6 support\n- Make invoice.variable_symbol optional\n\n0.5.1 - 2014-10-28\n------------------\n- Fix conf relative import\n- Use python native function splitlines for notes\n\n0.5.0 - 2014-09-21\n------------------\n- Add property number to object Invoice\n- Replaced variable symbol for invoice number in invoice header\n- Update Czech translations\n\n0.4.9 - 2014-07-3\n-----------------\n- Bug fix previous commit\n\n0.4.8 - 2014-07-3\n-----------------\n- Create proforma invoice\n\n0.4.7 - 2014-07-1\n-----------------\n- Change date format for qr code generator\n- Disable converting datetime to string on Invoice\n- Disable rendering empty values\n\n0.4.6 - 2014-05-14\n------------------\n- The displayed number of pages only when there is more than one\n- Rename Date to Date of exposure\n- Use pillow instead of PIL\n\n0.4.5 - 2014-04-21\n------------------\n\n- Support for multipage items printout\n- Support for multiline item description\n- Use locale to print currency strings and values\n- Adding logo to provider header\n\n\nNo notes on earlier releases.\n\n\nContributors\n============\n\n- Adam Strauch (@creckx)\n- Martin Voldrich (@rbas)\n- Petr Dlouhy (@PetrDlouhy)\n- Antoine Musso (@hashar)\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/creckx/InvoiceGenerator", "keywords": "invoice invoices generator", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "InvoiceGenerator", "package_url": "https://pypi.org/project/InvoiceGenerator/", "platform": "", "project_url": "https://pypi.org/project/InvoiceGenerator/", "project_urls": { "Homepage": "https://github.com/creckx/InvoiceGenerator" }, "release_url": "https://pypi.org/project/InvoiceGenerator/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Library to generate PDF invoice.", "version": "1.0.1" }, "last_serial": 3887824, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a420958ea9f2064cc5ba45e891b4ddcf", "sha256": "81692a84f45ba000ba472b9cd6c9e55070b20cf5b595fda23f3e3f5223cde067" }, "downloads": -1, "filename": "InvoiceGenerator-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a420958ea9f2064cc5ba45e891b4ddcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3677, "upload_time": "2011-08-08T17:11:16", "url": "https://files.pythonhosted.org/packages/fe/67/b4d511793065ff7519fb5e90597f6fa46dd02e7698e2355f4f5cf5360502/InvoiceGenerator-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "a288a5c0ad0c36fdc7ff3741c4acb239", "sha256": "ee742449f4b93c44064657456fa00c33637e6ebebb9533256182090638543ad8" }, "downloads": -1, "filename": "InvoiceGenerator-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a288a5c0ad0c36fdc7ff3741c4acb239", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3742, "upload_time": "2011-08-09T22:41:55", "url": "https://files.pythonhosted.org/packages/47/c4/3b9b764a1cdbf1dd3d0c2c775c5278f912daf710d7d6fac612c0d88d5f77/InvoiceGenerator-0.1.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "238eed9ae432a7b8dce14ce7db8d5d92", "sha256": "b0443c1fd75c24052d2791a170f0912b1e3a065fed7470bf63889919c4a55743" }, "downloads": -1, "filename": "InvoiceGenerator-0.4.0.tar.gz", "has_sig": false, "md5_digest": "238eed9ae432a7b8dce14ce7db8d5d92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7374, "upload_time": "2013-01-07T21:57:49", "url": "https://files.pythonhosted.org/packages/32/b7/c3cb70bef121164b6bebc0ca58e997fec0bdc5e67535515ef132a0dc7d23/InvoiceGenerator-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "7c32adf3d5a621dcfcd9b967333ea01f", "sha256": "319e1e628696b39192018a1902bca6b9c594013dd5a25493d0f390a6b0a50001" }, "downloads": -1, "filename": "InvoiceGenerator-0.4.1.tar.gz", "has_sig": false, "md5_digest": "7c32adf3d5a621dcfcd9b967333ea01f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9218, "upload_time": "2013-01-07T22:04:58", "url": "https://files.pythonhosted.org/packages/87/04/0e19567447b2e58eea63649fcd592138506e093a54c049ad44f98812b446/InvoiceGenerator-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "73b1a49e765b7e29902fe7995e6b8941", "sha256": "8c62d6a0c8fe22c2bc6ca213e4dd02ebcbb8c72816e7d20887526d7ed4179167" }, "downloads": -1, "filename": "InvoiceGenerator-0.4.2.tar.gz", "has_sig": false, "md5_digest": "73b1a49e765b7e29902fe7995e6b8941", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7439, "upload_time": "2013-09-10T21:28:42", "url": "https://files.pythonhosted.org/packages/46/af/294e7d8c2c5e9930e85e0479ebf6edffedbac7dccf238d66ed5e5115b1cd/InvoiceGenerator-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "3d54fce0f73d54d01fd6dbebbc6e16f6", "sha256": "c582eca3fb2d8b43cc25986bf8d5c89d0a39bc09740bc3f346f3a9d4653e8f49" }, "downloads": -1, "filename": "InvoiceGenerator-0.4.3.tar.gz", "has_sig": false, "md5_digest": "3d54fce0f73d54d01fd6dbebbc6e16f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9667, "upload_time": "2013-09-10T21:56:49", "url": "https://files.pythonhosted.org/packages/6e/f0/b9bfadc3c6801e8b848bbc3c9d8f9207b30b0742b03cd8d838ce7d8455c6/InvoiceGenerator-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "71939b5587101eca196abcdf59756c29", "sha256": "66dbaef0f0684977e2cceabd5efb9af94506fca8f62df6785b4cf9bf40258b77" }, "downloads": -1, "filename": "InvoiceGenerator-0.4.4.tar.gz", "has_sig": false, "md5_digest": "71939b5587101eca196abcdf59756c29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10072, "upload_time": "2014-04-15T14:50:13", "url": "https://files.pythonhosted.org/packages/68/05/e7c3c51f4c96770e05361fd639d66d2be83c79fe562b45521065894b707f/InvoiceGenerator-0.4.4.tar.gz" } ], "0.4.5": [ { "comment_text": "", "digests": { "md5": "787a3894ccd4608f8ca13db9e7752a08", "sha256": "540677a8aa68fb61907473f581dfaed1d4ebf8d53f0178abadd459f6f85f8f15" }, "downloads": -1, "filename": "InvoiceGenerator-0.4.5.tar.gz", "has_sig": false, "md5_digest": "787a3894ccd4608f8ca13db9e7752a08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11791, "upload_time": "2014-04-21T13:35:53", "url": "https://files.pythonhosted.org/packages/4d/da/c3b08e2e0d8794e6a0ef1bd29178507590f978491f51886b641cd6e63ba9/InvoiceGenerator-0.4.5.tar.gz" } ], "0.4.6": [ { "comment_text": "", "digests": { "md5": "1f3e60108bd9b2d635c36a8179663c74", "sha256": "4550b8baad6c7c0e383180764f73690b83b9a40d2a40ed29ddf896bf79f204ee" }, "downloads": -1, "filename": "InvoiceGenerator-0.4.6.tar.gz", "has_sig": false, "md5_digest": "1f3e60108bd9b2d635c36a8179663c74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11930, "upload_time": "2014-05-14T07:45:23", "url": "https://files.pythonhosted.org/packages/24/41/e693ff601454fd9e5a973c5a870f9f01439e5121defbc301580738d241b9/InvoiceGenerator-0.4.6.tar.gz" } ], "0.4.7": [ { "comment_text": "", "digests": { "md5": "21c73a120c033661f6f7d461f83f6486", "sha256": "1f44e8e385a92756d24e03defe1229075c39d58de102b423f7b77b31c2ba148b" }, "downloads": -1, "filename": "InvoiceGenerator-0.4.7.tar.gz", "has_sig": false, "md5_digest": "21c73a120c033661f6f7d461f83f6486", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12115, "upload_time": "2014-07-01T08:58:17", "url": "https://files.pythonhosted.org/packages/89/e0/d28215d2ed210297370d4f431f48b18207e99d6953c776f52e2df9c72a53/InvoiceGenerator-0.4.7.tar.gz" } ], "0.4.8": [ { "comment_text": "", "digests": { "md5": "7f1d5d98a721b55e73109ccaa094e9b6", "sha256": "fcaafa315b784c2359b09efa70be233fee71919086e316d2ca47fe26de574119" }, "downloads": -1, "filename": "InvoiceGenerator-0.4.8.tar.gz", "has_sig": false, "md5_digest": "7f1d5d98a721b55e73109ccaa094e9b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12583, "upload_time": "2014-07-03T12:38:20", "url": "https://files.pythonhosted.org/packages/02/fe/5cd79b77dfd72a499c7d9c9379fe073f070a8c033075c0bf53ffdf37ab90/InvoiceGenerator-0.4.8.tar.gz" } ], "0.4.9": [ { "comment_text": "", "digests": { "md5": "a125608d49b800c2104c0b145a71c0f2", "sha256": "a14bdfde41d982dcd16c03f5509ae2d352bc0c49e4ddcff362d2e67db7fc770d" }, "downloads": -1, "filename": "InvoiceGenerator-0.4.9.tar.gz", "has_sig": false, "md5_digest": "a125608d49b800c2104c0b145a71c0f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12615, "upload_time": "2014-07-03T12:42:45", "url": "https://files.pythonhosted.org/packages/21/e7/20a8c4cc1e87e03a012365a05d83c542af0e2682c97fba8a77ae68be5f02/InvoiceGenerator-0.4.9.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "92e8811b83f177917cf079dfe708209e", "sha256": "6a89a2315d08a738ab0462d8c1410b5b41db7534248fd3be7560c769c512566f" }, "downloads": -1, "filename": "InvoiceGenerator-0.5.0.tar.gz", "has_sig": false, "md5_digest": "92e8811b83f177917cf079dfe708209e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12858, "upload_time": "2014-10-21T13:39:01", "url": "https://files.pythonhosted.org/packages/32/2a/5f765c4c714c12b4f27213cdc390ffe4a84b932c064da1197d4abe7bcf69/InvoiceGenerator-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "59cbfd17513407f10e1bf75b384f61ff", "sha256": "a1d2aa34dc7c4ca6430bcc99fc0c6b5954356f080e04370f25a19c2cedb087bd" }, "downloads": -1, "filename": "InvoiceGenerator-0.5.1.tar.gz", "has_sig": false, "md5_digest": "59cbfd17513407f10e1bf75b384f61ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12732, "upload_time": "2014-10-28T16:33:39", "url": "https://files.pythonhosted.org/packages/d0/de/6b1002bd64284ed9e1005e38dc44d0d982160d7f33e1da629baefc3885f1/InvoiceGenerator-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "3c23fc7c4a66393c7de7442b7b4f0121", "sha256": "93ad5246796ef5ecb21e2240d7541a3ac2fa6a1ab0a71d8bf492655b80ee82a2" }, "downloads": -1, "filename": "InvoiceGenerator-0.5.2.tar.gz", "has_sig": false, "md5_digest": "3c23fc7c4a66393c7de7442b7b4f0121", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13143, "upload_time": "2014-12-04T08:11:21", "url": "https://files.pythonhosted.org/packages/6a/3e/f66cba870aae3be705122b760f08df8ce6702ed75e17ee83e76a8b5cfdd2/InvoiceGenerator-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "af0a642bf54aa6a6ab97db2294124d01", "sha256": "d5dd073d6aed333b34bd307eeb4529aa71fd6cff678f2019e6f42972ef2a598c" }, "downloads": -1, "filename": "InvoiceGenerator-0.5.3.tar.gz", "has_sig": false, "md5_digest": "af0a642bf54aa6a6ab97db2294124d01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1128123, "upload_time": "2017-01-09T09:00:28", "url": "https://files.pythonhosted.org/packages/5a/5d/542860435d33a1b2081b421cf4138c00b955006e7dff5bd4c1ed2fa8798b/InvoiceGenerator-0.5.3.tar.gz" } ], "0.5.4": [ { "comment_text": "", "digests": { "md5": "c190d3b2116360bca47ca5e83795c000", "sha256": "9bfe49c1b95fba5009040d393643d6748e3872fbddd2a4f2ac20a656387b7a4e" }, "downloads": -1, "filename": "InvoiceGenerator-0.5.4.tar.gz", "has_sig": false, "md5_digest": "c190d3b2116360bca47ca5e83795c000", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1128150, "upload_time": "2017-03-22T12:34:33", "url": "https://files.pythonhosted.org/packages/2a/75/322f4ddb37803aef62b68ef293ad6027969fddba61434b22a598e0725744/InvoiceGenerator-0.5.4.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e507af26c2a634e4c2ade9b26a152cfa", "sha256": "5345523ef9aae9e39c002455ecc16de9b6e09f42f81369b1e4b267d7c917dbc1" }, "downloads": -1, "filename": "InvoiceGenerator-1.0.1.tar.gz", "has_sig": false, "md5_digest": "e507af26c2a634e4c2ade9b26a152cfa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1234559, "upload_time": "2018-05-22T13:58:18", "url": "https://files.pythonhosted.org/packages/2d/aa/59b993b2e2c438f235dc09f157f7528c314cd4ddb683d895f7df96ff90e8/InvoiceGenerator-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e507af26c2a634e4c2ade9b26a152cfa", "sha256": "5345523ef9aae9e39c002455ecc16de9b6e09f42f81369b1e4b267d7c917dbc1" }, "downloads": -1, "filename": "InvoiceGenerator-1.0.1.tar.gz", "has_sig": false, "md5_digest": "e507af26c2a634e4c2ade9b26a152cfa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1234559, "upload_time": "2018-05-22T13:58:18", "url": "https://files.pythonhosted.org/packages/2d/aa/59b993b2e2c438f235dc09f157f7528c314cd4ddb683d895f7df96ff90e8/InvoiceGenerator-1.0.1.tar.gz" } ] }