nginxinc / crossplane

Quick and reliable way to convert NGINX configurations into JSON and back.
Apache License 2.0
717 stars 86 forks source link

Clean up module import structure #13

Closed aluttik closed 7 years ago

aluttik commented 7 years ago

we shouldn't have to make the user do something stupid like

from crossplane.parse import parse_file
parse_file(filename)

Instead, make it simpler so they can just do something like

import crossplane
crossplane.parse(filename)

or obviously

from crossplane import parse
parse(filename)