Install PyMeilisearch ##################### Installing PyMeilisearch is as simple as installing any other Python library. However, to scrape and upload documents or a website to Meilisearch, you must have Meilisearch running as a service. For more information, see `Installation and operating systems `_ in the Meilisearch documentation. You can install PyMeilisearch as either a user installation or a developer installation. User installation ================= For a user installation, you can install the latest stable version of PyMeilisearch from many different sources. Click the following tabs to see the one or more commands for installing PyMeilisearch from the public PyPI (Python Package Index), Ansys private PyPI, or GitHub. .. jinja:: install_guide .. tab-set:: .. tab-item:: Public PyPI .. code-block:: console python -m pip install pymeilisearch .. tab-item:: Private PyPI .. code-block:: console export TWINE_USERNAME="__token__" export TWINE_REPOSITORY_URL="https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload" export TWINE_PASSWORD=*** python -m pip install pymeilisearch .. tab-item:: GitHub .. code-block:: console python -m pip install git+https://github.com/ansys/pymeilisearch.git@v{{ version }} Developer installation ====================== The developer installation is specifically intended for project maintainers. This specialized installation is tailored to equip developers with the essential tools and resources required for effective contribution to the project's development and maintenance. The developer installation assumes a certain level of technical expertise and familiarity with the project's codebase, rendering it most suitable for individuals actively engaged in its continuous development and maintenance. Start by cloning the repository: .. code-block:: git clone git@github.com:ansys/pymeilisearch Move inside the project and create a new Python environment: .. tab-set:: .. tab-item:: Windows .. tab-set:: .. tab-item:: CMD .. code-block:: text py -m venv .. tab-item:: PowerShell .. code-block:: text py -m venv .. tab-item:: Linux/UNIX .. code-block:: text python -m venv Activate this newly created environment: .. tab-set:: .. tab-item:: Windows .. tab-set:: .. tab-item:: CMD .. code-block:: text \Scripts\activate.bat .. tab-item:: PowerShell .. code-block:: text \Scripts\Activate.ps1 .. tab-item:: Linux/UNIX .. code-block:: text source /bin/activate Install the project in editable mode with this command: .. code-block:: python -m pip install --editable . You can now make changes to the package's source code. Your changes are immediately reflected in your project without requiring you to reinstall it.