Zentitle SDK and Library
Python3 Access to the Nalpeiron V10 licensing library

The Nalpeiron Python SDK has been written for Python v3. The Nalpeiron library completely functions in Python v2 but the example scripts in the SDK will need to be modified to run in v2.

Introduction:

This SDK contains a Python example of a java wrapper to access the Nalpeiron C library.

The basic structure of the example is:

Main Dir- 
    cshafer.py      - File containing wrapper for generic C functions
    cnsl.py         - File containing wrapper for C licensing functions
    cnsa.py         - File containing wrapper for C analytics functions
    cpsl.py         - File containing wrapper for C passive licensing functions
    pnilm.py        - Python 3 script for accessing the library's
                        functions from the command line
    pnsaTest.py     - Python 3 script demonstrating access and
                        testing of the analytics functions
    shaferExample.py- Python 3 script demonstrating usage of library
                        licensing and analytics
    nslTerm.py      - Python 3 script demonstrating account base licensing and
                        the RPC call.
    pslTerm.py      - Python 3 script demonstrating usage of the passive
                        licensing library.  Script uses ANSI escape seq
                        to move cursor. May not display properly on version
                        of Windows prior to Win10.
    nalpParse.py    - Simply Python 3 module to aid in entering
                        parametes from the command line.

    libShafer.so OR libShafer.dylib OR Shafer.dll
        you must use a copy of your stamped library in ALL the 
        demo scripts.  Use can use the `--`Library /path/to/libShafer.so
        command line parameter to point the scripts to the library.

INSTRUCTIONS:

More information is available on pnilm and pnsaTEst are available at:

Nilm nsaTest

shaferExample.py example command:

pnsaTest.py example command:

nslTerm.py example command:

pslTerm.py example command:

pnilm.py example commands and example output:

1 <?xml version="1.0" encoding="UTF-8"?>
2 <NSA Current Statistics>
3 <OfflineMode>0</OfflineMode>
4 <LocationInfo>0</LocationInfo>
5 <Cache Thread>
6  <Max Cache Que Len>25</Max Cache Que Len>
7  <Current Cache Que Len>0</Current Cache Que Len>
8  <Cache writes>0</Cache writes>
9  <Cache fails>0</Cache fails>
10 </Cache Thread>
11 <Soap Pool>
12  <Min Soap Threads>10</Min Soap Threads>
13  <Max Soap Threads>10</Max Soap Threads>
14  <Queued Jobs>0</Queued Jobs>
15  <Running Jobs>1</Running Jobs>
16  <Finished Jobs>1</Finished Jobs>
17 </Soap Pool>
18 </NSA Current Statistics>