spaCy/spacy/cli
Ines Montani d4cc736b7c 💫 Improve model downloads: check for existing install, customise pip and use requests library again (#2346)
* Go back to using requests instead of urllib (closes #2320)

Fewer dependencies are good, but this one was simply causing too many other problems around SSL verification and Python 2/3 compatibility. requests is a popular enough package that it's okay for spaCy to depend on it – and this will hopefully make model downloads less flakey.

* Only download model if not installed (see #1456)

Use #egg=model==version to allow pip to check for existing installations. The download is only started if no installation matching the package/version is found. Fixes a long-standing inconvenience.

* Pass additional options to pip when installing model (resolves #1456)

Treat all additional arguments passed to the download command as pip options to allow user to customise the command. For example:

python -m spacy download en --user

* Add CLI option to enable installing model package dependencies

* Revert "Add CLI option to enable installing model package dependencies"

This reverts commit 9336ffe695.

* Update documentation
2018-05-20 20:26:56 +02:00
..
converters 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
__init__.py Rename model command to init_model and fix formatting 2017-12-07 09:59:23 +01:00
_messages.py 💫 Improve model downloads: check for existing install, customise pip and use requests library again (#2346) 2018-05-20 20:26:56 +02:00
convert.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
download.py 💫 Improve model downloads: check for existing install, customise pip and use requests library again (#2346) 2018-05-20 20:26:56 +02:00
evaluate.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
info.py Return data in cli.info and add silent option (resolves #2196) 2018-04-29 01:59:44 +02:00
init_model.py Update argument annotations and formatting 2018-04-10 21:45:11 +02:00
link.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
package.py Fix typo in package command message (closes #2200) 2018-04-10 19:14:31 +02:00
profile.py Don't pass CLI command name as dummy argument 2018-01-04 21:33:47 +01:00
train.py 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
validate.py 💫 Improve model downloads: check for existing install, customise pip and use requests library again (#2346) 2018-05-20 20:26:56 +02:00
vocab.py Don't pass CLI command name as dummy argument 2018-01-04 21:33:47 +01:00