Giter VIP home page Giter VIP logo

python_api's Introduction

MarkLogic Python API

This is a (relatively low-level) Python(3) API to the MarkLogic REST Management API. It may grow to support the Client API as well, over time, and it will certainly grow higher-level APIs.

The API aims to provide complete coverage of what's in the MarkLogic REST API in idiomatic Python.

Churn warning

Several aspects of the API design are still in flux. Some inconsistencies are present. If you write scripts based on it, you'll probably have to fix them after each update. Apologies, in advance, and thanks for your feedback.

Some aspects of the current API rely on server features that have not yet been released to the public. In particular, it’s likely that attempts to work with forest properties will not work with the current public releases of MarkLogic server.

The installer has not been widely tested. Feedback welcome.

Features

  • Creation and configuration of clusters, groups, databases, forests, servers, hosts, users, roles, permissions, and privileges.
  • A sample command-line utility
  • Several example scripts
  • Some rather crude at the moment API docs.

Getting Started

  1. Download and install MarkLogic (http://developer.marklogic.com/products)
  2. Install using pip (pip3 install marklogic_python_api) Note that you must be using Python3!
  3. Checkout the MarkLogic python package from http://github.com/marklogic/python_api

At this point you should be able to script away.

Pythonistas may find it useful to simply create a virtualenv for the project and run python setup.py install.

Running Tests

The tests run using a default configuration:

{

"hostname": "localhost", "username": "admin", "password": "admin", "protocol": "http", "port": 8000, "management-port": 8002, "root": "manage", "version": "v2", "client-version": "v1"

}

If you want to change any of those defaults, create an mlconfig.json file in the python_api directory. You can omit the properties that you don’t need to change.

Credits

This library began as a project by Paul Hoehne, to whom we are indebted.

python_api's People

Contributors

ndw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.