{ "info": { "author": "nick1994209", "author_email": "nick1994209@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "pip install easy_excel, xlwt\r\n\r\n\r\n###Example easy\r\n\r\n import os\r\n from easy_excel import Column, Sheet, Excel\r\n\r\n\r\n class A:\r\n def __init__(self, a='Nothing', b='Hello my friend', c=43):\r\n self.a, self.b, self.c = a, b, c\r\n\r\n\r\n excel_example = Excel()\r\n columns = [\r\n Column('a', lambda x: x.b, width=5000),\r\n Column('b', lambda x: x.b, width=6000),\r\n Column('Thi is C', lambda x: x.c)\r\n ]\r\n sheet = Sheet('New sheet', columns=columns, objects=[A(), A(b='54'), A('Hi', 'example')])\r\n excel_example.add_sheet(sheet)\r\n\r\n base_dir = os.path.dirname(os.path.abspath(__file__))\r\n excel_example.save(file_name='example1', dir=base_dir + '/excel/')\r\n\r\n###Example inheritance\r\n import os\r\n from easy_excel import Column, Sheet, Excel\r\n\r\n\r\n class CustomTemplateSheet(Sheet):\r\n title = 'Example title sheet'\r\n name = 'Example name sheet'\r\n columns = [\r\n Column('first', lambda x: x['first']),\r\n Column('this is second', lambda x: x['second'], width=15000),\r\n ]\r\n\r\n excel = Excel()\r\n objects = [\r\n {'first': \"I'm first\", 'second': 'Hi'},\r\n {'first': '1', 'second': 2},\r\n {'first': 'and me', 'second': 'and you'},\r\n {'first': 'and me', 'second': 'and you'},\r\n {'first': 'and me', 'second': 'and you'},\r\n {'first': 'and me', 'second': 'and you'},\r\n {'first': 'and me', 'second': 'and you'},\r\n {'first': 'and me', 'second': 'and you'},\r\n ]\r\n sheet1 = CustomTemplateSheet(objects=objects)\r\n sheet2 = CustomTemplateSheet(\r\n name='Im second sheet', title='Im for first object', object=objects[0]\r\n )\r\n\r\n excel.add_sheet(sheet1)\r\n excel.add_sheet(sheet2)\r\n\r\n base_dir = os.path.dirname(os.path.abspath(__file__))\r\n excel.save(file_name='example2', dir=base_dir + '/excel/')", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Nick1994209/python_easy_excel/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "easy_excel", "package_url": "https://pypi.org/project/easy_excel/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/easy_excel/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Nick1994209/python_easy_excel/" }, "release_url": "https://pypi.org/project/easy_excel/0.0.7/", "requires_dist": null, "requires_python": null, "summary": "Python create excel", "version": "0.0.7" }, "last_serial": 2399025, "releases": { "0.0.1": [], "0.0.2": [], "0.0.4": [], "0.0.5": [ { "comment_text": "", "digests": { "md5": "9651aa5b97ef644cc0f551e00ec62606", "sha256": "5f22aa4b0724fc40e3c9a2bd52363a23dc250cccd12788d7c5df24d8cb5950d9" }, "downloads": -1, "filename": "easy_excel-0.0.5.tar.gz", "has_sig": false, "md5_digest": "9651aa5b97ef644cc0f551e00ec62606", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3111, "upload_time": "2016-10-12T15:02:40", "url": "https://files.pythonhosted.org/packages/56/90/50c4e217058df5b8c4525769e39a9d3be888b3e7019737c5e0a7be117a57/easy_excel-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "a481d7d22ca2662208f7a7b7d77a4fea", "sha256": "bcb98aa2594b89102a15f640355a7ae0ad36444cefc84809510363f642412bb3" }, "downloads": -1, "filename": "easy_excel-0.0.6.tar.gz", "has_sig": false, "md5_digest": "a481d7d22ca2662208f7a7b7d77a4fea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3130, "upload_time": "2016-10-12T22:15:56", "url": "https://files.pythonhosted.org/packages/92/a4/84353e27028fdc4408f2fd0d93a02bfaa1bbda0b6db00453b36f883d7b06/easy_excel-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "c4ad268c7a7ae88a441e01cc76a636bd", "sha256": "bdac8645229aaee23619010fd86376af1e991f843cd57c7cdcc063da6642bbff" }, "downloads": -1, "filename": "easy_excel-0.0.7.tar.gz", "has_sig": false, "md5_digest": "c4ad268c7a7ae88a441e01cc76a636bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3291, "upload_time": "2016-10-14T09:36:50", "url": "https://files.pythonhosted.org/packages/48/41/89ad56f10327570bfe5556bf2f023bd7205a0333caf6ff6c5c7bee0c277d/easy_excel-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c4ad268c7a7ae88a441e01cc76a636bd", "sha256": "bdac8645229aaee23619010fd86376af1e991f843cd57c7cdcc063da6642bbff" }, "downloads": -1, "filename": "easy_excel-0.0.7.tar.gz", "has_sig": false, "md5_digest": "c4ad268c7a7ae88a441e01cc76a636bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3291, "upload_time": "2016-10-14T09:36:50", "url": "https://files.pythonhosted.org/packages/48/41/89ad56f10327570bfe5556bf2f023bd7205a0333caf6ff6c5c7bee0c277d/easy_excel-0.0.7.tar.gz" } ] }