Skip to main content

Stonefish license creator for Python

Project description

slic

PyPi Version

SLiC (Stonefish License Creator) is a command-line tool for creating licenses compatible with the Stonefish License Manager (SLiM).

Install with

pip install stonefish-license-creator

Quickstart

  • Make sure you have a valid license for Stonefish. (Trial licenses are available.)

  • Have your private key ready. If you don't have a key pair yet, create one with, e.g.,

    slic create-random-keypair
    

    slic

  • Create a license with

    slic create-license <your-input-file> <your-ed25519-private-key-hex>
    

    where <your-input-file> is a YAML- or JSON-formatted configuration file, e.g.,

    vendor:
      id: your-vendor-uuid # assigned to you
    
    product:
      id: your-product-uuid # set by you, e.g., `slic uuid`
      name: KewlPack
    
    user:
      id: user-uuid # set by you
      name: J. Doe # optional
      email: j.doe@example.com
    
    machines: # optional
      - name: prometheus # optional
        # fingerprints can be retrieved with `slic fp` or `slim fp`
        fingerprint: 914b7459c8db4229ac9ef9e5dbf2837e
    
    license:
      expiry: 2030-01-08T15:13:17Z # ISO 8601 datetime
      # expiry: P1Y  # or ISO 8601 duration, here: 1 year
    
  • Your users can install the resulting key with the Stonefish License Manager via

    slim install <key-file>
    
  • Add a key check somewhere in your software. For example:

    import stonefish_license_manager as slim
    
    # Throws a slim.LicenseError if no valid license is found:
    slim.slic.find_license_and_validate(
        vendor_id="<your-vendor-uuid>",
        product_id="<your-product-uuid>",
    )
    

    (More info here.)

[!TIP]

SLiM is also compatible with various other license services such as Keygen.sh, LicenseSpring, or Cryptolens.

More info

For more info, don't hestitate to contact us at support@mondaytech.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

stonefish_license_creator-0.1.2-py3-none-any.whl (15.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page