Using IronXL for Python License Keys

This article was translated from English: Does it need improvement?
Translated
View the article in English

How to Get a License Key

Adding an IronXL license key allows you to deploy your project live without restrictions or watermarks.

You can buy a license key or sign up for a free 30 day trial key here.


Step 1: Add IronXL as a Dependency in Your Python Project

To integrate the IronXL library into your Python project, you must install it as a dependency using the widely used Python package management tool, pip. Open the terminal and execute the following command:

pip install IronXL

This will install the specified version of IronXL in your project, making it accessible for import.

请注意IronXL for Python relies on the IronXL for .NET library as its underlying technology. Therefore, it is necessary to have the .NET 6.0 SDK installed on your machine in order to use IronXL for Python.


Step 2: Apply Your License Key

Next, you need to apply your license key or trial key by setting the LicenseKey attribute at the beginning of your Python script, before utilizing IronXL.

:path=/static-assets/excel-python/content-code-examples/how-to/license-keys-apply.py
# Apply your license key
License.LicenseKey = "IRONXL-MYLICENSE-KEY-1EF01"
PYTHON

Step 3: Validate Your License Key

Verify the Installed License Key

To verify whether the license key has been applied correctly, you can check the IsLicensed attribute of the License module. Use the following code snippet:

:path=/static-assets/excel-python/content-code-examples/how-to/license-keys-is-licensed.py
# Check if the license key has been applied
is_licensed = License.IsLicensed
PYTHON

Validate the License Key

To ensure the validity of your license or trial key, you can use the following code snippet:

:path=/static-assets/excel-python/content-code-examples/how-to/license-keys-is-valid.py
# Check if a given license key string is valid
is_valid = License.IsValidLicense("IRONXL-MYLICENSE-KEY-1EF01")
PYTHON

If the return value is True, it means the key is valid, and you can proceed with using IronXL. However, if the return value is False, it indicates that the key is invalid.

请注意After adding a license, it is essential to clean and republish your application to ensure a smooth deployment process and avoid any potential mistakes.

Step 4: Getting Started with Your Project

To start working with IronXL, we highly recommend following our comprehensive tutorial on how to Get Started with IronXL. This tutorial provides detailed instructions and examples to help you understand the fundamentals of using IronXL in your Python projects.

Questions or Need Support?

During the development phase, you are free to use and test IronXL for Python. However, for live projects, you will need to purchase a license. We also provide a trial license for evaluation purposes. A trial licenseis also available.

For a comprehensive collection of code examples, tutorials, licensing details, and extensive documentation, please visit the IronXL for Python section on our website.

If you need additional support or have any inquiries, our team is here to assist you. Don't hesitate to ask our team.

常见问题解答

我如何为我的Python项目获取许可证密钥?

您可以从IronXL授权页面购买许可证密钥或注册免费30天试用密钥。

使用Python库处理电子表格的第一步是什么?

第一步是在您的Python项目中添加IronXL作为依赖项,通过执行命令:pip install ironxl

为什么我需要.NET 6.0 SDK来在Python中处理电子表格?

IronXL for Python依赖于IronXL .NET库,特别是.NET 6.0,作为其基础技术,因此使用时需要.NET 6.0 SDK。

IronXL for Python 能否与 .NET 10 作为运行时环境配合使用?

是的——IronXL 的 .NET 组件支持 .NET 10,以及更早的版本,例如 .NET 6、7、8 和 9。这意味着如果您的计算机上安装了 .NET 10 SDK 或运行时,IronXL 在该框架下将按预期运行。(基于 IronXL 声明的跨平台功能支持,包括 .NET 10。)

我如何在我的Python项目中应用许可证密钥?

您可以通过在Python脚本开头设置LicenseKey属性来应用IronXL的许可证密钥,代码如下:ironxl.LicenseKey = 'YOUR_LICENSE_KEY_HERE'

我怎样才能验证许可证密钥已在我的项目中正确应用?

您可以通过使用代码is_licensed = ironxl.License.IsLicensed()检查License模块的IsLicensed属性来验证安装的许可证密钥。

我如何验证我的Python电子表格库的许可证密钥?

要验证IronXL的许可证密钥,请使用代码:is_valid = ironxl.License.IsValid()。返回值为True表示密钥有效。

在我的项目中应用许可证密钥后,我应该做什么?

在应用IronXL的许可证密钥后,必须清理并重新发布您的应用程序,以确保平稳的部署过程。

我在哪里可以找到有关在Python中处理电子表格的教程和详细说明?

欲获取详细的说明和教程,请访问我们网站上的IronXL for Python部分或追随我们关于如何开始使用IronXL的综合教程。

在我的Python项目中进行开发是否需要许可证密钥?

在开发过程中,您可以免费使用和测试IronXL for Python,而不需要许可证密钥。对于实际项目,则需要购买的许可证或试用许可证。

我如何获得对我的Python电子表格库的支持或帮助?

如果您需要支持或对IronXL有疑问,您可以联系我们的团队寻求帮助,或访问我们的网站获取详细文档和支持选项。

Curtis Chau
技术作家

Curtis Chau 拥有卡尔顿大学的计算机科学学士学位,专注于前端开发,精通 Node.js、TypeScript、JavaScript 和 React。他热衷于打造直观且美观的用户界面,喜欢使用现代框架并创建结构良好、视觉吸引力强的手册。

除了开发之外,Curtis 对物联网 (IoT) 有浓厚的兴趣,探索将硬件和软件集成的新方法。在空闲时间,他喜欢玩游戏和构建 Discord 机器人,将他对技术的热爱与创造力相结合。

准备开始了吗?
版本: 2025.9 刚刚发布