{"id":17694666,"url":"https://github.com/amit9838/invoice_generator","last_synced_at":"2025-04-23T03:08:18.804Z","repository":{"id":65538395,"uuid":"593892743","full_name":"amit9838/invoice_generator","owner":"amit9838","description":"Generate Invoice using python.","archived":false,"fork":false,"pushed_at":"2023-01-29T03:51:50.000Z","size":1700,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T03:08:07.639Z","etag":null,"topics":["automatic","bills","business","customer","invoice","pdf","python","sales","shops"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amit9838.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-27T04:27:29.000Z","updated_at":"2025-03-13T23:33:35.000Z","dependencies_parsed_at":"2023-02-15T14:16:39.380Z","dependency_job_id":null,"html_url":"https://github.com/amit9838/invoice_generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amit9838%2Finvoice_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amit9838%2Finvoice_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amit9838%2Finvoice_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amit9838%2Finvoice_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amit9838","download_url":"https://codeload.github.com/amit9838/invoice_generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250360487,"owners_count":21417721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automatic","bills","business","customer","invoice","pdf","python","sales","shops"],"created_at":"2024-10-24T13:49:23.314Z","updated_at":"2025-04-23T03:08:18.788Z","avatar_url":"https://github.com/amit9838.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automate your invoice with python\n\nAutomatically generate print friendly invoices/bills using python. [Sample pdf](https://github.com/amit9838/invoice_generator/blob/master/sample_invoice.pdf)\n\n\u003cimg title=\"\" src=\"https://github.com/amit9838/invoice_generator/blob/master/Screenshot/sample_invoice.png\" alt=\"\" width=\"724\" style = \"border-radius:5px;\"\u003e\n\n\n\n### Directions to use\n\nStep 1 - Clone the repo or download the archive to you local system. Now head to \"invoice_genarator\"  directory.\n\nStep 2 - Install \"reportlab\" and \"pillow\" with following commands:\n\nRun these commands in your terminal -\n\n`pip install reportlab`\n\n`pip install pillow`\n\nor simply run\n\n`pip install requirements.txt`\n\nStep 3 - Now feed the data into the pdf.py file in array format.\n\nThat's it\n\n### Working\n\nData is converted into objects for simplicity.\n\n```python\n# Sample Data \nitem = ['Dell Keboard Wireless', 'Samsung RAM 4GB','Samsung SSD 480GB']\nwarrenty=[12,24,36]  # in months\nunit_price = [700, 2400,4860]\nqty = [1,2,1]\ntax = [0,.18,.18]\n\nobjects = []\nclass Product:\n    def __init__(self,item,warrenty,unit_price,tax,quantity):\n        self.item = item\n        self.unit_price = unit_price\n        self.warrenty = warrenty\n        self.tax = tax\n        self.quantity = quantity\n        self.t_price = unit_price*quantity\n```\n\nSome useful offsets for repositioning of elements.\n\n```python\n# Y offsets - Global\ny_offset = 0   # Header section (above Invoice,company) \ncust_offset = 50 #Customer section\ntable_offset = 0   #Table section\nsub_total_y_offset = -5  # Subtotal/total section offset\n\n# x-offsets in the table\nunit_price_x_pos = 370  #Default 370\nwarrenty_x_pos = 280  #Default 280\nqty_x_pos = 470  #Default 470\nprice_x_pos = 550  #Default 550\n\n# y-offset for new entries is dynamically calculated.\n```\n\n### Reference\n\n\n\nFor in-depth usage visit  [Documentation](https://docs.reportlab.com/reportlab/userguide/ch1_intro/)  or for some extra recipies visit [More](https://www.reportlab.com/dev/docs/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famit9838%2Finvoice_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famit9838%2Finvoice_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famit9838%2Finvoice_generator/lists"}