Licensing – Aspose.SVG for Python via .NET

Evaluation Version Limitations

Aspose.SVG for Python via .NET is software that developers can try before purchasing. A free evaluation version of the library can be downloaded from the downloads section of Aspose’s website at:  Download Aspose.SVG Python Library.

Limitation

The evaluation version of Aspose.SVG is the same as the purchased one. By incorporating a few lines of code to apply the license, the trial version simply transitions to a licensed version. The evaluation version provides all the features except the following:

If you want to try Aspose.SVG without evaluation limitations, request a 30 day temporary license. Please refer to How to get a Temporary License? for more information.

Apply License using File or Stream Object

The license can be loaded from a file or stream object. Aspose.SVG for Python via .NET will try to find the license in the following locations:

  1. Explicit path.
  2. The folder that contains Aspose.SVG.dll.
  3. The folder that contains the assembly that called Aspose.SVG.dll.
  4. The folder that contains the entry assembly (your .exe).
  5. An embedded resource in the assembly that called Aspose.SVG.dll.

The license filename is not limited to “Aspose.SVG.Python.NET.lic”. Feel free to rename it as you wish and use that name when applying the license in your application.

Loading a License from File

The easiest way to apply a license is to put the license file in the same folder as the Aspose.SVG.dll file and specify just the file name without a path. You can create a license folder and place the license file there. The set_license() method then gets the path to the license file.

Example:

1# Initialize license object
2lic = License()
3
4# Set license from file
5lic.set_license("./license/Aspose.SVG.Python.via.NET.lic")
6
7print("License set successfully.")

Apply Metered License

Aspose.SVG for Python via .NET API allows developers to apply the metered license. It is a new licensing mechanism. The new licensing mechanism will be used along with the existing licensing method. Those customers who want to be billed based on the usage of the API features can use the metered licensing. For more details, please refer to  Metered Licensing FAQ section.

After completing all the necessary steps to obtain this type of license, you will receive the keys, not the license file. A new class  Metered has been added to apply the metered key. This code example demonstrates how to set metered public and private keys:

1# Create an instance of the Metered class
2metered = Metered()
3
4# Set the public and private keys for metered licensing
5public_key = "your-public-key"
6private_key = "your-private-key"
7
8# Apply the metered license
9metered.set_metered_key(public_key, private_key)

Using Multiple Aspose Products

When employing multiple Aspose products within your application, for example Aspose.SVG and Aspose.HTML, consider the following helpful guidelines:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.