Code Monkey home page Code Monkey logo

khorosjx's Introduction

Khoros JX Python Library

The khorosjx library acts as a Python software development kit (SDK) to administer and manage Khoros JX (formerly Jive-x) and Jive-n online community platforms.

Latest Stable Release PyPI
Build Status GitHub Workflow Status
Supported Versions PyPI - Python Version
Documentation Documentation Status
License License (GitHub)
Issues GitHub open issues
GitHub closed issues
Pull Requests GitHub pull open requests
GitHub closed pull requests

Installation

The package can be installed via pip using the syntax below.

pip install khorosjx

You may also clone the repository and install from source using the syntax below.

git clone git://github.com/jeffshurtliff/khorosjx.git
cd khorosjx/
python setup.py install

Change Log

The change log is located in the documentation here: https://khorosjx.readthedocs.io/en/latest/changelog.html

Usage

This section provides basic usage instructions for the package.

Importing the package

The package can be imported into a Python script using the syntax below.

import khorosjx

Initializing the modules

While it is certainly possible to import modules directly (e.g. from khorosjx import users), it is recommended that you instead leverage the init_module() function as shown below.

khorosjx.init_module('content', 'users')

In the example above, both the khorosjx.content and the khoros.users modules have been initiated.

Note: It is not necessary to import the khorosjx.core module as it is imported by default.

Establishing the API connection

Before leveraging the API in function calls, you must first establish your connection by providing the base URL for the environment (e.g. https://community.example.com) and the username and password for the unfederated service account through which the API calls will be made. This is demonstrated below.

base_url = 'https://community.example.com'
credentials = ('adminuser', 'password123!')
khorosjx.core.connect(base_url, credentials)

Note: At this time the library only allow connections using basic authentication, but there are plans to include the ability to leverage OAuth 2.0 in a future release.

Once the connection has been established, you can proceed to leverage the library of functions in the various modules as needed.

Requirements

The following packages are leveraged within the khorosjx package:

  • numpy 1.17.4
  • pandas-0.25.3
  • python-dateutil 2.8.1
  • pytz 2019.3
  • requests 2.22.0
  • urllib3 1.25.7

The full requirements list can be found in the requirements.txt file.

Documentation

The documentation is located here: https://khorosjx.readthedocs.io/en/latest/

License

MIT License

Reporting Issues

Issues can be reported within the GitHub repository.

Disclaimer

This package is considered unofficial and is in no way endorsed or supported by the Khoros or Aurea Software, Inc. companies.

khorosjx's People

Contributors

jeffshurtliff avatar dependabot[bot] avatar

Stargazers

Hu avatar  avatar

Watchers

James Cloos avatar  avatar

khorosjx's Issues

khorosjx.users.get_recent_logins() not making verify_core_connection()

The khorosjx.users.get_recent_logins() function is missing the function call for verify_core_connection() which can result in the following NameError exception occurring:

Traceback (most recent call last):
  File "recurring/analyze_logins.py", line 50, in get_logins
    login_data = khorosjx.users.get_recent_logins(count, start_index)
  File "/home/shurtj/.local/lib/python3.6/site-packages/khorosjx/users.py", line 338, in get_recent_logins
    query_url = f"{base_url}/people?sort=lastLoggedIn&" + \
NameError: name 'base_url' is not defined

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.