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.0.tar.gz (16.4 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.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: marklogic_python_client-1.3.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.5 Darwin/23.6.0

File hashes

Hashes for marklogic_python_client-1.3.0.tar.gz
Algorithm Hash digest
SHA256 603aeb2baf7e815a0f78955104bd29e32635f7469ca46a295034db3588bff72f
MD5 149a5d38fe2750c8fb28b7dbede70029
BLAKE2b-256 cce779eef841f7da6c1332fb69b02173aa501db896908ac7b3d93b274b50655c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marklogic_python_client-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6351f7d39656fb69fb27ef0dd0850f33c47c74d4729f3ebe3dfe0412ddca2b1
MD5 cd48480ff6c60301f7de5530de08c1fb
BLAKE2b-256 19f30bdaf97a14f011b3de6c606a54df6e7f267892c66efb1c392b7d0851ebe2

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