Skip to main content

Provides an API for interfacing with License Manager Simulator

Project description

ContributorsForksStargazersIssuesMIT LicenseDocumentationContact Us

An Omnivector initiative

omnivector-logo

License Manager Simulator

A License management simulator project for testing license integration in user applications.

About The Project

The License Manager Simulator APIis an REST API that simulates a license server data for use in the development of applications which interface to the license servers.

License servers supported:

  • FlexLM
  • RLM
  • LS-Dyna
  • LM-X
  • OLicense

Installation

To install this project, clone the repository and use docker-compose to run it in containers:

$ cd lm-simulator-api
$ docker-compose up

This will create a container for the API, and also a PostgreSQL container for the database.

The API will be available at http://localhost:8000/lm-sim.

Prerequisites

To use the License Manager Simulator API you must have License Manager Simulator scripts deployed together with a running License Manager Agent.

Instructions for this can be found at the License Manager documentation.

Usage

You can add/remove licenses from the license server API using the online interface at http://localhost:8000/lm-sim/docs. This helps you to make requests directly with the browser into the API, with examples.

Make sure the license name in the API matches the feature name of your license in Slurm and in the License Manager API configuration.

For example:

License Manager Simulator API:

{
  "name": "abaqus",
  "type": "flexlm",
  "total": 1000
}

Slurm:

LicenseName=abaqus.abaqus@flexlm
  Total=1000 Used=0 Free=1000 Reserved=0 Remote=yes

License Manager API configuration:

{
  "id": 1,
  "name": "Abaqus",
  "cluster_client_id": "client_id",
  "features": [
    {
      "id": 1,
      "name": "abaqus",
      "product": {
        "id": 1,
        "name": "abaqus"
      },
      "config_id": 1,
      "reserved": 0,
      "total": 0,
      "used": 0,
      "booked_total": 0
    }
  ],
  "license_servers": [
    {
      "id": 1,
      "config_id": 1,
      "host": "localhost",
      "port": 8000
    }
  ],
  "grace_time": 300,
  "type": "flexlm"
}

The API IP address should go into the license server section of the configuration to ensure the scripts can communicate with the API.

License

Distributed under the MIT License. See the LICENSE file for details.

Contact

Email us: Omnivector Solutions

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

license_manager_simulator_api-4.5.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

license_manager_simulator_api-4.5.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file license_manager_simulator_api-4.5.0.tar.gz.

File metadata

  • Download URL: license_manager_simulator_api-4.5.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for license_manager_simulator_api-4.5.0.tar.gz
Algorithm Hash digest
SHA256 ed2cf069a246d6893aa7e498e08b6a3d8984747d7c7c0f46c092fc5a897c94b3
MD5 72cc2c0fe252ad025a9e9ac6bc24d470
BLAKE2b-256 f4bc4627e40b8e54e8cc613a276d0457cdf2ffdf409f2d3e3a61fcc4dd5f8eeb

See more details on using hashes here.

File details

Details for the file license_manager_simulator_api-4.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for license_manager_simulator_api-4.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b611ccd0bad0f5b992e0588e2ebcda7b454b67625c4f1af1b81aa44faeb8854
MD5 63aee6241a9faaf8af18775216464afb
BLAKE2b-256 11e61402974222ad25a8077d529125af6388260ed8535c28f3be41e454217590

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