Re: [Tutor] don't steel my code Mister user
On 04/05/2019 00:45, nathan tech wrote: > There are tools like py2exe and pyinstaller that are able to compile > your python code into .exe format. > > but why bother? It's easier and more convenient to distribute a single .exe file than a swathe of individual .py or .pyc files. It also removes any potential issues around the python interpreter version. > Lets say I create a program called awesomesauce. > > Now then, mister user comes along. > > He decompiles it with pyinstaller ("Which I'm told is easy"), removes > the check, and has himself a free product. Never consider compilation a security feature, it isn't. Regardless of the language not just Python. A skilled technician can hack the binary if necessary. Compilation is simply a distribution feature that makes life easier for both the distributor and the recipient. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Finding unique strings.
Mark and all, Thanks for the link to the different dictionaries. The book which was recommended I have already got and read which doesn't answer my question. The structure of the CSV file is: Account no, date, transaction description (what I am trying to build unique keys from), credit, debit, serial and transaction type. I have already loaded the cSV file into a list. Thus why I did not show any code. I will review the page provided and if I have more questions which are going to e more than likely. I will come back using the same bat channel. Sean -Original Message- From: Tutor On Behalf Of Mark Lawrence Sent: Saturday, 4 May 2019 7:35 AM To: tutor@python.org Subject: Re: [Tutor] Finding unique strings. On 03/05/2019 13:07, mhysnm1...@gmail.com wrote: > All, > > I have a list of strings which has been downloaded from my bank. I am > trying to build a program to find the unique string patterns which I > want to use with a dictionary. So I can group the different > transactions together. Below are example unique strings which I have manually extracted from the data. > Everything after the example text is different. I cannot show the full > data due to privacy. > > WITHDRAWAL AT HANDYBANK > > PAYMENT BY AUTHORITY > > WITHDRAWAL BY EFTPOS > > WITHDRAWAL MOBILE > > DEPOSIT ACCESSPAY > > Note: Some of the entries, have an store name contained in the string > towards the end. For example: > > WITHDRAWAL BY EFTPOS 0304479 KMART 1075 CASTLE HILL 24/09 > > Thus I want to extract the KMART as part of the unique key. As the > shown example transaction always has a number. I was going to use a > test condition for the above to test for the number. Then the next > word would be added to the string for the key. > I tried to use dictionaries and managed to get unique first words. But > got stuck at this point and could not work out how to build a unique > keyword with multiple words. I hope someone can help. > > Sean > Please check out https://docs.python.org/3/library/collections.html#collections.defaultdict as I think it's right up your street. Examples are given at the link :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] don't steel my code Mister user
It has to be said, after extensive research, and responses here, it seems python was just not designed to be a commercial product. Licenses are all well and good, but if you're hacking a product, you're just not going to be stopped by a lisence. Furthering to that, if I ever sold products it would be £5, or $7, and 7 bucks just isn't worth all the effort to make python difficult to hack. Nothing is impossible, but, deterring the average user just for $7? Not worth it. Thanks anyway guys. Nate On 04/05/2019 12:46, Alan Gauld via Tutor wrote: > On 04/05/2019 00:45, nathan tech wrote: > >> There are tools like py2exe and pyinstaller that are able to compile >> your python code into .exe format. >> >> but why bother? > It's easier and more convenient to distribute a single .exe > file than a swathe of individual .py or .pyc files. It also > removes any potential issues around the python interpreter > version. > >> Lets say I create a program called awesomesauce. >> >> Now then, mister user comes along. >> >> He decompiles it with pyinstaller ("Which I'm told is easy"), removes >> the check, and has himself a free product. > Never consider compilation a security feature, it isn't. > Regardless of the language not just Python. A skilled > technician can hack the binary if necessary. > > Compilation is simply a distribution feature that makes > life easier for both the distributor and the recipient. > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] pip issue
> > 9a0d86eb (from https://pypi.org/simple/aiorpcx/) (requires- > > python:>=3.6) is incompatible with the pythonversion in use. > > Acceptable > > python versions are:>=3.6 > > Ok, so it clearly says you need a Python version greater > than or equal to 3.6. Which version of Python are you using? I am running python3 version 3.5.3. That is an incredible coincidence then, that the problem arose specifically when I interrupted an install process. I thought that was it. Thanks, that clears it up. Debian loves to have older software as default. > Can you clarify your current status since that will help > us provide suitable solutions. > Normally when learning a language it's best to start with > the basics which don't require installing third party > libraries. Is there some specific task you need this > library for? Actually. I am not planning to do any coding relating to this. I am just looking to install a piece of software, that required installing some dependencies. Thanks very much. This will make my move to Ubuntu happen earlier I think, ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] don't steel my code Mister user
On 04/05/2019 15:35, nathan tech wrote: > It has to be said, after extensive research, and responses here, it > seems python was just not designed to be a commercial product. That depends. Python wasn't designed to be a commercial product in that it is an open source programming language and interpreter and so is free and inherently non-commercial(*). Can it produce commercial products? Of course it can and has. It is no different to any other similar development environment such as Visual Basic, PHP, even JAVA or Lisp or Smalltalk. > Licenses are all well and good, but if you're hacking a product, you're > just not going to be stopped by a lisence. True, but you can hack any product regardless of the language, even C++ or assembler can be hacked. The vast majority of users don't have the skills nor the time nor the inclination. And, if you can catch them, the license allows you to sue... > Furthering to that, if I ever sold products it would be £5, or $7, and 7 > bucks just isn't worth all the effort to make python difficult to hack. 7 bucks isn't worth building a commercial product, unless you are sure you will sell 100's of thousands. And 7 bucks is also not worth the time and effort of hacking anything! But there are commercial products that sell for 100s of dollars that are written, in part at least, in Python. > Nothing is impossible, but, deterring the average user just for $7? Not > worth it. A license is cheap to produce and deters the "average user". Very few users will know how to hack code of any kind, and even those that do will have better things to do with their time than try to save 7 bucks! The real question is whether you can produce something that is worth $7 to your customers. If it is they will buy it. If not they will look elsewhere, they won't try to decompile it and disable the protection - assuming you installed any. If your software is worth, say, $700 then possibly they might think about spending time getting round the license. Then it might be worth some minor effort on protection. but not much because if they really want to they can reverse engineer it regardless. That's the rules and reality of commercial software. The value lies in always being one step better than the guys who are following. That's how Adobe, et al maintain their lead and why they keep issuing updates! (*)Even open source can be commercial if you build a support plan around it. Red Hat and Cygnus are good examples of that strategy. Selling support for opensource software can work. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor