Skip to main content

spacy-model-manager

PyPI version Build Status codecov Maintainability Twitter Follow

Command line utility to view, install, and upgrade spaCy models

Installation

The spacy-model-manager package requires Python 3.7 or newer, and can be installed from PyPI (Python Package Index). Installing with pip will automatically install all required dependencies. A selection of environments we have tested follows:

  • Ubuntu 20.04LTS and later releases require build-essential, python3, python3-pip, and python3-venv packages
  • macOS 11 (and newer) releases require Xcode 13 (or newer), Xcode CLI tools, and Python 3 installed using Homebrew (or your preferred method)
  • Windows 10 and Windows 11 releases require Visual Studio Code, Build Tools for Visual Studio, and Python 3 installed using Anaconda 3 (or your preferred method)

We strongly recommend you create and activate a Python virtual environment prior to installing spacy-model-manager. With your environment configured and a Python virtual environment created and activated, run the following commands.

Make sure pip is upgraded to the latest version:

pip install --upgrade pip

Install spacy-model-manager:

pip install spacy-model-manager

CLI introduction

The spacy-model-manager CLI provides a command line interface to determine which spaCy models are currently installed, install additional models, and remove models. To see available commands, type:

(venv) user@host:~$ spacy-model -h

Model management

New spaCy releases are generally accompanied by newly trained models. Using different versions of models over the same collection may produce different results. Depending on your workflow and needs, you may wish to install earlier versions of models, upgrade models that were previously installed, or install multiple models. The spacy-model command assists with these tasks.

To see a list of available models, type:

(venv) user@host:~$ spacy-model list

To install an available model:

(venv) user@host:~$ spacy-model install en_core_web_sm

To install a specific version of an available model:

(venv) user@host:~$ spacy-model install en_core_web_sm --model-version 3.1.0

Note: requesting a model version that does not match the minor version of the spaCy package installed may result in dependency conflict messages and further errors. A request to install a specific version will replace any existing version of that model, even if the existing version is newer.

To remove an installed model:

(venv) user@host:~$ spacy-model remove en_core_web_sm

To upgrade an installed model:

(venv) user@host:~$ spacy-model upgrade en_core_web_sm

License(s)

Logos, documentation, and other non-software products of the CARASCAP team are distributed under the terms of Creative Commons 4.0 Attribution. Software items in CARASCAP repositories are distributed under the terms of the MIT License. See the LICENSE file for additional details.

© 2021, The University of North Carolina at Chapel Hill.

Development Team and Support

Developed by the CARASCAP team at the University of North Carolina at Chapel Hill.

Release files for spacy-model-manager 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spacy-model-manager 0.1.3
File Size Uploaded
spacy-model-manager-0.1.3.tar.gz 18.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spacy-model-manager 0.1.3
File Interpreter ABI Platform
spacy_model_manager-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 25.9 kB

Release files / spacy-model-manager-0.1.3.tar.gz

Download URL spacy-model-manager-0.1.3.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2cf41c1ffb5aad216e2dc951566825c6b2964af70b25fdf76943371c74540414
BLAKE2b-256 checksum
How to use checksums
581d3b46b347dc49e5d894089fd5e4c1d1a65605cea014c912d973da687a38eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / spacy_model_manager-0.1.3-py3-none-any.whl

Download URL spacy_model_manager-0.1.3-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a6b6cb42553a049b05c6d4e3ea230cca4a87292dfe45fb4039be3f1d0236630
BLAKE2b-256 checksum
How to use checksums
b860937195e572a27fe8520bc2586a7015307aa0ee7c881d205640d6a2f398c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page