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
File details
Details for the file marklogic_python_client-1.2.1.tar.gz
.
File metadata
- Download URL: marklogic_python_client-1.2.1.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.5 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43127e86557138a1d889857b1d069af001bfa177351d61953e8c4d16ee28d959 |
|
MD5 | d33fba2b912e2c627d69fb205d2aa601 |
|
BLAKE2b-256 | bbf60bff8019fc0ebb918218bff98298117e2addbcec3c5a89f4257224cb109b |
File details
Details for the file marklogic_python_client-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: marklogic_python_client-1.2.1-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.5 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a96840c06ec88fde8beef4c62303ef7a21fe8ac25c493c05980b052a112f7af6 |
|
MD5 | 91953a2f1df613fe05547c84d1fee1f9 |
|
BLAKE2b-256 | 0d91b91a36a7ff8a21a4dabef8b65855843b1f705ae9ee0862772fdce2ef4257 |