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

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

    Use
    import sphinxapi
    


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

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

    Copy again? Yes, and for all servers and environments? A ready-made package was found on the github , 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 it up to date.

    Also popular now: