Skip to main content

Python create excel

Project description

pip install easy_excel, xlwt

Example

from python_easy_excel import Excel, Column

class A:
def __init__(self, a=’Nothing’, b=’Все хорошо’, c=43):
self.a, self.b, self.c = a, b, c

excel_example = Excel()

columns = [Column(‘a’), Column(‘b’, lambda x: x.b), Column(‘Thi is C’, lambda x: x.c)] excel_example.add_sheet(‘New sheet’, columns=columns, objects=[A(), A(b=354), A(423,12)]) excel_example.add_sheet(‘double’, columns=columns, objects=[A(b=’4233’), A(12, 12)]) excel_example.add_sheet(‘third’, columns=columns, objects=[A(), A(b=354), A(423,12)])

excel_example.save(file_name=’Новый файл’, dir=’/home/nicking/’)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for easy_excel, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size easy_excel-0.0.5.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page