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

Move utils to python -m vectortile #9

Open
geowurster opened this issue Nov 2, 2015 · 2 comments
Open

Move utils to python -m vectortile #9

geowurster opened this issue Nov 2, 2015 · 2 comments

Comments

@geowurster
Copy link
Contributor

There is no easy way to translate vectortile data unless you have the git repo at hand. We don't need to clutter everyone's path with utils like tile2tile.py, but they are useful to have accessible whenever the module is installed.

@redhog
Copy link
Contributor

redhog commented Nov 6, 2015

Why can't we have one click-based toplevel "vectortile" command that has subcommands for all needs?
Requiring the user to use a script in lib/python2.7/site-packages/vectortile with python -m sounds clumsy and non-standard to me...

@geowurster
Copy link
Contributor Author

@redhog We can, but we use it so infrequently that python -m seems fine for now and we can always switch to an actual utility. python -m is a standard way to do this, for example: python3 -m venv is the new method for creating virtual environments now that virtualenv is part of the standard lib, and echo '{"key": "val"}' | python -m json.tool pretty prints JSON.

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

No branches or pull requests

2 participants