Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marklogic_python_client-1.2.1.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

marklogic_python_client-1.2.1-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

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

Hashes for marklogic_python_client-1.2.1.tar.gz
Algorithm Hash digest
SHA256 43127e86557138a1d889857b1d069af001bfa177351d61953e8c4d16ee28d959
MD5 d33fba2b912e2c627d69fb205d2aa601
BLAKE2b-256 bbf60bff8019fc0ebb918218bff98298117e2addbcec3c5a89f4257224cb109b

See more details on using hashes here.

File details

Details for the file marklogic_python_client-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for marklogic_python_client-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a96840c06ec88fde8beef4c62303ef7a21fe8ac25c493c05980b052a112f7af6
MD5 91953a2f1df613fe05547c84d1fee1f9
BLAKE2b-256 0d91b91a36a7ff8a21a4dabef8b65855843b1f705ae9ee0862772fdce2ef4257

See more details on using hashes here.

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