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.3.1.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marklogic_python_client-1.3.1-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file marklogic_python_client-1.3.1.tar.gz.

File metadata

  • Download URL: marklogic_python_client-1.3.1.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.5 Darwin/25.2.0

File hashes

Hashes for marklogic_python_client-1.3.1.tar.gz
Algorithm Hash digest
SHA256 5de37cdf7a3a334bb1f4cd870cbdba76e9d830acf91501ade90b307e19a1ccdf
MD5 71fc869791c35351d3a29c1b59da28bf
BLAKE2b-256 c46ea6e4c4de05edaaa7d6c34ea0d614adef0acf120ab42298339b3af1544023

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marklogic_python_client-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a65cf5ebac885008d1d8e95a6acf1589bf599f9273c289c92150058e5d7c2eb
MD5 cb62d9ccf4688a2f2f8f339dbc9e3a30
BLAKE2b-256 60a99dce5d2ebc4f67db57f757c523ccd3073189a27417427b51273792aee1b8

See more details on using hashes here.

Supported by

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