GithubHelp home page GithubHelp logo

marklogic_client's Introduction

MarkLogic client

MarkLogic is a trademark of MarkLogic Corporation. We are not affiliated with MarkLogic Corporation.

TODO: Write readme.

How to use this in another Python project

Install using pip:

pip install git+https://github.com/quangis/marklogic_client.git@master

(TODO: Build releases and distribute them archived and versioned. This is much faster than using git.)

How to run the tests

  1. First, run the setup script:
./setup.sh

This will make a file, .env, where you'll have to fill in the credentials of the MarkLogic Server that you want to use.

  1. Fill in the credentials:

    • MARKLOGIC_URL: Replace {address} and {port} with the correct address and port, and either remove [s] or replace it with s.
    • MARKLOGIC_USERNAME: Replace {username} with the username.
    • MARKLOGIC_PASSWORD: Replace {password} with the password.
  2. Run the tests:

python setup.py pytest  # Or `python3 setup.py pytest` if `python` is version 2.

If all went well, you should see something along the lines of this:

running pytest
running egg_info
writing marklogic_client.egg-info/PKG-INFO
writing dependency_links to marklogic_client.egg-info/dependency_links.txt
writing requirements to marklogic_client.egg-info/requires.txt
writing top-level names to marklogic_client.egg-info/top_level.txt
reading manifest file 'marklogic_client.egg-info/SOURCES.txt'
writing manifest file 'marklogic_client.egg-info/SOURCES.txt'
running build_ext
============================= test session starts =============================
platform linux -- Python 3.6.8, pytest-5.0.1, py-1.8.0, pluggy-0.12.0
rootdir: /home/han/Projects/marklogic_client
collected 3 items                                                             

tests/test_marklogic_client.py ...                                      [100%]

========================== 3 passed in 0.38 seconds ===========================

marklogic_client's People

Contributors

e-nyamsuren avatar hankruiger avatar

Stargazers

 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.