Skip to content

Commit 10cd2fe

Browse files
committed
Add python2 version + example update
1 parent bd2c9f3 commit 10cd2fe

File tree

2 files changed

+513
-0
lines changed

2 files changed

+513
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@ Python docs can be found here: https://help.cryptolens.io/api/python/
66

77
## Installation
88

9+
### Python 3
910
```
1011
pip install licensing
1112
```
1213

14+
### Python 2
15+
Please copy `cryptolens_python2.py` file into your project folder. The entire library is contained in that file.
16+
> In the examples below, please disregard the imports and use only the following one:
17+
18+
```python
19+
from cryptolens_python2 import *
20+
```
21+
1322
## Example
1423

1524
### Key verification
@@ -18,11 +27,18 @@ The code below will work exactly as the one explained in the [key verification t
1827

1928
First, we need to add the namespaces:
2029

30+
In Python 3:
2131
```python
2232
from licensing.models import *
2333
from licensing.methods import Key, Helpers
2434
```
2535

36+
In Python 2:
37+
38+
```python
39+
from cryptolens_python2 import *
40+
```
41+
2642
Now we can perform the actual key verification:
2743

2844
```python

0 commit comments

Comments
 (0)