New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Simpler import #26

Closed
jkyeung opened this Issue Jun 26, 2013 · 0 comments

Comments

2 participants
@jkyeung
Contributor

jkyeung commented Jun 26, 2013

Instead of basically forcing

from xlsxwriter.workbook import Workbook
wb = Workbook('myfile.xlsx')

allow something like

import xlsxwriter
wb = xlsxwriter.Workbook('myfile.xlsx')

The main point is not to be shorter (though that's nice), but rather more intuitive. Besides Workbook, I think it would also be good to expose a version constant (akin to xlwt.__VERSION__. Other than that, I'd say best to keep the top-level namespace uncluttered.

@ghost ghost assigned jmcnamara Jun 26, 2013

@jmcnamara jmcnamara closed this in cc0837d Jul 23, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment