---
title: "Apply License in Python"
---

## Aspose.Words - Apply License/Python

To set license of Aspose.Words Java in Python, simply invoke the setLicense() method of License class.

**Python Code**

```csharp
license = jpype.Jclass('com.aspose.words.License')
license.setLicense("Aspose.Words.lic")
```

## Download Running Code

Download **Apply License (Aspose.Words)** from any of the below mentioned social coding sites:

- [GitHub](https://github.com/aspose-words/Aspose.Words-for-Java/blob/master/Plugins/Aspose_Words_Java_for_Python/tests/quickstart/applylicense/ApplyLicense.py)
