Skip to main content

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

coveo-push-api-client.py-1.0.0.tar.gz (25.7 kB view hashes)

Uploaded Source

Built Distribution

coveo_push_api_client.py-1.0.0-py2.py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page