Coveo Push API Client
Project description
Python Push API Client
Installation
pip install coveo-push-api-client.py
Usage
See more examples in the ./samples folder.
from push_api_clientpy import Source, DocumentBuilder
source = Source("my_api_key", "my_org_id")
myDocument = DocumentBuilder("https://my.document.uri", "My document title")\
.withData("these words will be searchable")
response = source.addOrUpdateDocument("my_source_id", myDocument)
print(f"Document added: {response.json()}")
Dev
Requires Python 3.9
Requires pipenv: pip install pipenv
Install dependencies: pipenv install --dev
Build: pipenv run tox -e build
Tests: pipenv run tox
Full list of commands: pipenv run tox -av
Release
Tag the commit to release with semver format v{Major}.{Minor}.{Patch} eg: v1.2.5.
Checkout the newly created tag, e.g.: git checkout v1.2.5
Run pipenv run tox -e clean
Run pipenv run tox -e build
Run pipenv run tox -e publish
Note
This project has been set up using PyScaffold 4.0.1. For details and usage information on PyScaffold see https://pyscaffold.org/.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for coveo-push-api-client.py-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2630c03ee9f0305505d414d0d600b56fff804865b95f515936d227b4133d007c |
|
MD5 | b68d7d861f41e28da5531c6e606b1647 |
|
BLAKE2b-256 | 890de73aa19f91b1610ecf536c33d1f4bd821bdcd2b003ae368d8db03d2ab7f9 |
Hashes for coveo_push_api_client.py-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9fd5a6da49e1771a9d2109037079e8a5e75807e80aaa0e93ed71ad9f126ee1f |
|
MD5 | 05a951d24e40774101fa34ac08c61b6a |
|
BLAKE2b-256 | 645efaa8563fc9c4f081c960e90f5f3637e36daceb12655c6942e8a49f210f9f |