A
A
Akshin Yolchuev2020-03-23 18:30:59
Python
Akshin Yolchuev, 2020-03-23 18:30:59

How to set an expiration date for a Python program?

I created a program I want to sell, but I don’t know how to sell the rental program, that is, after a certain time the program will not work and only I can renew it. What modules should I use for this?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sanes, 2020-03-23
@Sanes

Part of the functionality must be moved to the server. This is the only thing that can be done for python.
Or compile. And hope that the majority of users will be smart enough and paranoid not to run any rubbish from exchangers.

Y
yerdnaandrey, 2020-03-23
@yerdnaandrey

It is necessary to use date.time.
And for the first time launch to see the time.
And at each start to view how much time.
If 30 days have already passed, then the user will be prompted to pay

S
Sergey Karbivnichy, 2020-03-23
@hottabxp

what modules should be used for this?
- Brains
First of all - nowadays you don't sell a PC program any more.
Secondly - you did not write the OS, on each OS this is done differently.
Third - look towards the web (Django, etc.)

A
Anatoly Ivanov, 2020-03-25
@apeks

Move everything to the server. Then it will be possible to restrict the rights at the user level. You can also obfuscate the code and encrypt it. At least I have seen encryption for php. Those. the user must download encryption tools to use the program. And already in the encrypted program, you can add any means of checking rights

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question