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.

Veuillez noterIronXL 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.

Veuillez noterAfter 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.

Questions Fréquemment Posées

Comment puis-je obtenir une clé de licence pour mon projet Python ?

Vous pouvez acheter une clé de licence ou vous inscrire pour une clé d'essai gratuite de 30 jours sur la page de licence IronXL.

Quelle est la première étape pour utiliser une bibliothèque Python pour les feuilles de calcul ?

La première étape consiste à ajouter IronXL comme dépendance dans votre projet Python en utilisant pip en exécutant la commande : pip install ironxl.

Pourquoi ai-je besoin du SDK .NET 6.0 pour travailler avec les feuilles de calcul en Python ?

IronXL pour Python repose sur la bibliothèque IronXL .NET, spécifiquement .NET 6.0, comme technologie sous-jacente, rendant le SDK .NET 6.0 nécessaire à l'utilisation.

IronXL pour Python est-il compatible avec .NET 10 comme environnement d'exécution ?

Oui, les composants .NET d'IronXL sont compatibles avec .NET 10, ainsi qu'avec les versions antérieures telles que .NET 6, 7, 8 et 9. Par conséquent, si votre machine dispose du SDK ou de l'environnement d'exécution .NET 10, IronXL fonctionnera comme prévu avec ce framework. (Cette compatibilité multiplateforme, incluant .NET 10, est confirmée par IronXL.)

Comment appliquer une clé de licence dans mon projet Python ?

Vous pouvez appliquer votre clé de licence pour IronXL en définissant l'attribut LicenseKey au début de votre script Python avec le code : ironxl.LicenseKey = 'YOUR_LICENSE_KEY_HERE'.

Comment puis-je vérifier si la clé de licence a été appliquée correctement dans mon projet ?

Vous pouvez vérifier la clé de licence installée en vérifiant l'attribut IsLicensed du module License avec le code : is_licensed = ironxl.License.IsLicensed().

Comment valider la clé de licence pour ma bibliothèque de feuilles de calcul Python ?

Pour valider la clé de licence pour IronXL, utilisez le code : is_valid = ironxl.License.IsValid(). Une valeur de retour de True signifie que la clé est valide.

Que devrais-je faire après avoir appliqué une clé de licence dans mon projet ?

Après avoir appliqué une clé de licence pour IronXL, il est essentiel de nettoyer et republier votre application pour garantir un processus de déploiement fluide.

Où puis-je trouver des tutoriels et des instructions détaillées pour travailler avec des feuilles de calcul en Python ?

Pour des instructions détaillées et des tutoriels, visitez la section IronXL pour Python sur notre site Web ou suivez notre tutoriel complet sur comment commencer avec IronXL.

Ai-je besoin d'une clé de licence pour le développement dans mon projet Python ?

Pendant le développement, vous êtes libre d'utiliser et de tester IronXL pour Python sans clé de licence. Pour les projets en direct, une licence achetée ou une licence d'essai est requise.

Comment puis-je obtenir de l'aide ou de l'assistance avec ma bibliothèque de feuilles de calcul Python ?

Si vous avez besoin d'aide ou si vous avez des questions concernant IronXL, vous pouvez contacter notre équipe pour obtenir de l'assistance ou visiter notre site Web pour une documentation exhaustive et des options de support.

Curtis Chau
Rédacteur technique

Curtis Chau détient un baccalauréat en informatique (Université de Carleton) et se spécialise dans le développement front-end avec expertise en Node.js, TypeScript, JavaScript et React. Passionné par la création d'interfaces utilisateur intuitives et esthétiquement plaisantes, Curtis aime travailler avec des frameworks modernes ...

Lire la suite
Prêt à commencer?
Version : 2025.9 vient de sortir