📜 ⬆️ ⬇️

import sphinxapi without dancing or simple sphinxapi.py installation via pip

Slightly facilitated the installation of sphinxapi.py through pip.
Simply
pip install https://github.com/Romamo/sphinxapi/zipball/master 

We use
 import sphinxapi 


When I decided to use Sphinxsearch for full-text search in my project, I simply copied sphinxapi.py to myself. And, of course, safely forgot about him for several years. However, the sphinxsearch itself continued to be updated regularly. Fortunately, the API has not changed and nothing unexpectedly broke in my hands.

The problem arose when using a new third-party library, which contained a concise
 import sphinxapi 

Copy again? Yes, and for all servers and environments? There was a ready-made package on the githaba, but it has not been updated for 3 years. Updated sphinxapi.py
Install fresh sphinxapi with one command
 pip install https://github.com/Romamo/sphinxapi/zipball/master 

Current API from 2.1.7 release

I will try to keep up to date.

')

Source: https://habr.com/ru/post/220781/


All Articles