Skip to content
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

Add a framework for including predefined specifications. #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

svvitale
Copy link

@svvitale svvitale commented Aug 8, 2017

I'm not sure if something like this is desired in pylabels, but since I needed to build a library of predefined specifications for my own use, I thought I would see if you'd like to include it directly.

The idea is to house a number of predefined specifications for known label types. In this PR, I've included a specification for Avery 22822. I focused on making the definition super simple, with a built-in conversion for portrait vs landscape orientation.

I included some unit tests for this new approach as well as a convenience method for listing known specifications (run python -m labels.predefined)

Let me know what you think. I'm happy to make additional changes, but thought this would be a good spot to start the conversation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant