Secure python code


Asked by wiki @ & viewed by 12 persons


How do I protect Python code from being read by users?

I am developing a piece of software in Python that will be distributed to my employer's customers. My employer wants to limit the usage of the software with a time restricted license file.

If we distribute the .py files or even .pyc files it will be easy to (decompile and) remove the code that checks the license file.

Another aspect is that my employer does not want the code to be read by our customers, fearing that the code may be stolen or at least the "novel ideas".

Is there a good way to handle this problem?

Do you know the better answer?

Similar questions

How to run python code in terminal ubuntu

Asked by wiki @ & viewed by 6 persons

How to run python script on terminal (ubuntu)? I'm new with python, I've been learning for a few weeks. However …

How to run python code in atom

Asked by wiki @ & viewed by 11 persons

Running Python from Atom In Sublime, we have an easy and convent way to run Python or almost any language …

Return status code python

Asked by wiki @ & viewed by 10 persons

Return HTTP status code 201 in flask We're using Flask for one of our API's and I was just wondering …

Code visualizer python

Asked by wiki @ & viewed by 9 persons

Visualizing your code's architecture Each weekend I'm coding on a personal project which over time has reached a certain complexity …

Rgb python code

Asked by wiki @ & viewed by 9 persons

Converting Hex to RGB value in Python Working off Jeremy's response here: Converting hex color to RGB and vice-versa I …

How to run python code in cmd

Asked by wiki @ & viewed by 7 persons

How do I run a Python program in the Command Prompt in Windows 7? I'm trying to figure out how …

Python survey code

Asked by wiki @ & viewed by 6 persons

How to implement a survey? I want to build a survey consisting of some question (<10) with 4 options each. …

Tip calculator python code

Asked by wiki @ & viewed by 7 persons

Variable Tip Calculator Inputs I am trying to create a tip calculator like every other newbie and of course I …

Return code in python

Asked by wiki @ & viewed by 6 persons

Exit codes in Python I got a message saying script xyz.py returned exit code 0. What does this mean? What …

Vs code refactor python

Asked by wiki @ & viewed by 5 persons

Python refactoring fails in Visual Studio Code I switched to Visual Studio Code for Python programming recently. Below is my …

How to code a table in python

Asked by wiki @ & viewed by 5 persons

Making a table in Python 3(beginner) So I just started learning Python 3 in school, and we had to make …

Undersampling python code

Asked by wiki @ & viewed by 8 persons

How to perform undersampling (the right way) with python scikit-learn? I am attempting to perform undersampling of the majority class …

Run python visual studio code

Asked by wiki @ & viewed by 6 persons

How to execute Python code from within Visual Studio Code Visual Studio Code was recently released and I liked the …

How to turn your python code into an app

Asked by wiki @ & viewed by 7 persons

How do I turn my .py file into an application like word? I want to turn my .py into a …

Code to reverse a string in python

Asked by wiki @ & viewed by 12 persons

Reverse a string in Python There is no built in reverse function for Python's str object. What is the best …

Most viewed questions


Python strftime milliseconds

Asked by wiki @ & viewed by 201 persons

Format a datetime into a string with milliseconds I want to have a datetime string from the date with milliseconds. …

What does the percent sign mean in python

Asked by wiki @ & viewed by 136 persons

What does the percentage sign mean in Python In the tutorial there is an example for finding prime numbers: >>> …

Self keyword in python

Asked by wiki @ & viewed by 135 persons

What is the purpose of the word 'self'? What is the purpose of the self word in Python? I understand …

Check object type python

Asked by wiki @ & viewed by 133 persons

Determine the type of an object? Is there a simple way to determine if a variable is a list, dictionary, …

Correlation matrix python

Asked by wiki @ & viewed by 132 persons

Plot correlation matrix using pandas I have a data set with huge number of features, so analysing the correlation matrix …

Alphabetical sort python

Asked by wiki @ & viewed by 131 persons

Python data structure sort list alphabetically I am a bit confused regarding data structure in python; (),[], and {}. I …

Python random

Asked by wiki @ & viewed by 127 persons

Generate random integers between 0 and 9 How can I generate random integers between 0 and 9 (inclusive) in Python? …

Python create dataframe from list

Asked by wiki @ & viewed by 124 persons

Python: create a pandas data frame from a list I am using the following code to create a data frame …

Python one line for loop

Asked by wiki @ & viewed by 124 persons

Python one-line “for” expression I'm not sure if I need a lambda, or something else. But still, I need the …

How to add a column to dataframe python

Asked by wiki @ & viewed by 124 persons

Adding new column to existing DataFrame in Python pandas I have the following indexed DataFrame with named columns and rows …

Why we use self in python

Asked by wiki @ & viewed by 116 persons

What is the purpose of the word 'self'? What is the purpose of the self word in Python? I understand …

Shape 0 python

Asked by wiki @ & viewed by 115 persons

x.shape[0] vs x[0].shape in NumPy Let say, I have an array with x.shape = (10,1024) when I try to print …

Python print working directory

Asked by wiki @ & viewed by 113 persons

Find current directory and file's directory [duplicate] This question already has answers here: How do you properly determine the current …

Image shape python

Asked by wiki @ & viewed by 110 persons

Python OpenCV2 (cv2) wrapper to get image size? How to get the size of an image in cv2 wrapper in …

Interface grafica python

Asked by wiki @ & viewed by 108 persons

Como criar interface gráfica em Python? [duplicada] Essa pergunta já tem uma resposta aqui: É possível criar interfaces gráficas para …