Python client for MarkLogic, built on the requests library
Project description
MarkLogic Python Client
The Python requests
library allows Python developers to easily create
applications that communicate with the MarkLogic REST API. The
MarkLogic Python Client further simplifies usage of the requests
library by supporting common authentication
strategies with MarkLogic and improving the user experience with some of the more common endpoints in the MarkLogic
REST API.
The client requires Python 3.9 or higher. It is available at PyPI and can be installed via pip:
pip install marklogic-python-client
The client's sole dependency with MarkLogic is on the MarkLogic REST API. MarkLogic 10 and higher is supported, and earlier versions of MarkLogic that support the MarkLogic REST API are likely to work as well though are not tested.
An instance of the client can be easily created and then used in the exact same way as the requests
API:
from marklogic import Client
client = Client("http://localhost:8000", digest=("python-user", "pyth0n"))
response = client.get("/v1/search", params={"q": "marklogic and python", "pageLength": 100})
Please see the user guide to start using the client.
Project details
Release history Release notifications | RSS feed
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 marklogic_python_client-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d6bd1019425268f65c1a6c7b816e751d5eb76a810f17e1b2fe11e56b098c7ab |
|
MD5 | c22c138455e1e2334ea866c9bcdc144c |
|
BLAKE2b-256 | c94890a6f08c5137991e97f3c121bfe88b35f7bf82a4fa6c5a886a923d820927 |
Hashes for marklogic_python_client-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c206a353b92c28125283ee0b9a8df1843f036cdf0373492e96abc2917444afe |
|
MD5 | 05859b06438c42c6746263b8c7397389 |
|
BLAKE2b-256 | be7027dcb227ea8bde2f6228ff14f8eff302eb97735da688704a6ecc7f6da3ad |