Re: Python scripts in .exe form

2022-08-22 Thread Mona Lee
ages-being-installed-to-this-strange-folder On Saturday, August 20, 2022 at 7:25:31 AM UTC-6, Jim Schwartz wrote: > What method did you use to create the exe file from your python scripts? If > it was pyinstaller, then it puts the compiled versions of these python > scripts in a windows temp

Re: Python scripts in .exe form

2022-08-20 Thread Barry
> On 20 Aug 2022, at 14:28, Jim Schwartz wrote: > > What method did you use to create the exe file from your python scripts? If > it was pyinstaller, then it puts the compiled versions of these python > scripts in a windows temp folder when you run them. You’ll be

Re: Python scripts in .exe form

2022-08-20 Thread Jim Schwartz
What method did you use to create the exe file from your python scripts? If it was pyinstaller, then it puts the compiled versions of these python scripts in a windows temp folder when you run them. You’ll be able to get the scripts from there. Sent from my iPhone > On Aug 19, 2022, at 9

Python scripts in .exe form

2022-08-19 Thread Mona Lee
I'm pretty new to Python, and I had to do some tinkering because I was running into issues with trying to download a package from PIP and must've caused some issues in my program that I don't know how to fix 1. It started when I was unable to update PIP to the newest version because of some "Un

RE: Python Scripts

2020-07-21 Thread David Raymond
t is long) What version of Python are you using? Etc... > no the scripts work but python wont open them > >> im having problems when running python scripts >> >> When running the scripts it always closes immediately -- https://mail.python.org/mailman/listinfo/python-list

RE: Python Scripts

2020-07-21 Thread David Raymond
> im having problems when running python scripts > > When running the scripts it always closes immediately If you're running it in Windows, and running it by double clicking on a .py file, then it will pop up a console window while it's running, and then immediately close t

Python Scripts

2020-07-21 Thread Wasdeq68
im having problems when running python scripts When running the scripts it always closes immediately -- https://mail.python.org/mailman/listinfo/python-list

Re: Python scripts

2019-08-05 Thread Rhodri James
On 04/08/2019 10:29, Arun Kumar wrote: In python application in scripts folder files are missing then how to get those files. That depends on exactly what you mean by "files are missing". If (most likely) the application is trying to import a third party module that you don't have instal

Python scripts

2019-08-05 Thread Arun Kumar
Dear sir In python application in scripts folder files are missing then how to get those files. -- https://mail.python.org/mailman/listinfo/python-list

Re: Multiprocessing vs subprocess to run Python scripts in parallel

2019-03-12 Thread Chris Angelico
On Wed, Mar 13, 2019 at 2:01 AM Malcolm Greene wrote: > > Use case: I have a Python manager script that monitors several conditions > (not just time based schedules) that needs to launch Python worker scripts to > respond to the conditions it detects. Several of these worker scripts may end > u

Multiprocessing vs subprocess to run Python scripts in parallel

2019-03-12 Thread Malcolm Greene
Use case: I have a Python manager script that monitors several conditions (not just time based schedules) that needs to launch Python worker scripts to respond to the conditions it detects. Several of these worker scripts may end up running in parallel. There are no dependencies between individu

Can't drop files on python scripts in a fresh installation of Windows

2018-09-05 Thread Random832
Python itself runs fine, but when I try to drop a file on a script it just doesn't work. If I try to regsvr32 the shell extension, it says: The module "c:\windows\pyshellext.amd64.dll" failed to load. There was no indication of any problem until this. Apparently it is linked against "VCRUNTIME140

Can't drop files on python scripts in a fresh installation of Windows 10 and Python 3.7

2018-09-02 Thread Random832
Python itself runs fine, but when I try to drop a file on a script it just doesn't work. If I try to regsvr32 the shell extension, it says: The module "c:\windows\pyshellext.amd64.dll" failed to load. There was no indication of any problem until this. Apparently it is linked against "VCRUNTIME

Re: Best practice for managing secrets (passwords, private keys) used by Python scripts running as daemons

2018-03-25 Thread Gregory Ewing
Peter J. Holzer wrote: (Historically, many unixes allowed all users to read the environment variables of all processes. I don't know if this is still the case for e.g. Solaris or AIX - or macOS) A quick test suggests it's still true in MacOSX 10.6: % ps aeuww USER PID %CPU %MEM VSZ

Re: Best practice for managing secrets (passwords, private keys) used by Python scripts running as daemons

2018-03-24 Thread Chris Angelico
On Sun, Mar 25, 2018 at 7:23 AM, Thomas Jollans wrote: > On 24/03/18 20:41, Chris Angelico wrote: >> On Sun, Mar 25, 2018 at 4:24 AM, Peter J. Holzer wrote: >>> On 2018-03-23 11:50:52 -0700, Dan Stromberg wrote: I'd put them in a file with access to the daemon.. Putting credentials

Re: Best practice for managing secrets (passwords, private keys) used by Python scripts running as daemons

2018-03-24 Thread Thomas Jollans
On 24/03/18 20:41, Chris Angelico wrote: > On Sun, Mar 25, 2018 at 4:24 AM, Peter J. Holzer wrote: >> On 2018-03-23 11:50:52 -0700, Dan Stromberg wrote: >>> I'd put them in a file with access to the daemon.. >>> >>> Putting credentials in an environment variable is insecure on Linux, >>> because p

Re: Best practice for managing secrets (passwords, private keys) used by Python scripts running as daemons

2018-03-24 Thread Chris Angelico
On Sun, Mar 25, 2018 at 4:24 AM, Peter J. Holzer wrote: > On 2018-03-23 11:50:52 -0700, Dan Stromberg wrote: >> I'd put them in a file with access to the daemon.. >> >> Putting credentials in an environment variable is insecure on Linux, >> because ps auxwwe lists environment variables. > > But on

Re: Best practice for managing secrets (passwords, private keys) used by Python scripts running as daemons

2018-03-24 Thread Peter J. Holzer
On 2018-03-23 11:50:52 -0700, Dan Stromberg wrote: > I'd put them in a file with access to the daemon.. > > Putting credentials in an environment variable is insecure on Linux, > because ps auxwwe lists environment variables. But only those of your own processes. So both methods are about equally

Re: Best practice for managing secrets (passwords, private keys) used by Python scripts running as daemons

2018-03-23 Thread Dan Stromberg
I'd put them in a file with access to the daemon.. Putting credentials in an environment variable is insecure on Linux, because ps auxwwe lists environment variables. On Fri, Mar 23, 2018 at 9:37 AM, Malcolm Greene wrote: > Looking for your suggestions on best practice techniques for managing >

Best practice for managing secrets (passwords, private keys) used by Python scripts running as daemons

2018-03-23 Thread Malcolm Greene
Looking for your suggestions on best practice techniques for managing secrets used by Python daemon scripts. Use case is Windows scripts running as NT Services, but interested in Linux options as well. Here's what we're considering 1. Storing secrets in environment vars 2. Storing secrets in confi

Re: How to run self-contained Python scripts who don't need Python installation?

2017-06-09 Thread Akira Li
"Juan C." writes: > I need to run some Python 3.6.0 scripts on the users' machines (W7 and > W10) in an enterprise environment, but I can't install Python on those > machines. I tried looking for those "py to exe", but sadly they don't > support Python 3.6.0. I've tried PyInstaller (development

Re: How to run self-contained Python scripts who don't need Python installation?

2017-06-08 Thread Michael Torrie
On 06/08/2017 07:40 PM, Juan C. wrote: > 2. I'd like to create a simple BAT to run my Python script, so there > would be only 2 things (a 'dist' folder with everything and a run.bat > to make it clear what should be run), for example: Sure you can. You just have to do it like this (untested; I hav

How to run self-contained Python scripts who don't need Python installation?

2017-06-08 Thread Juan C.
I need to run some Python 3.6.0 scripts on the users' machines (W7 and W10) in an enterprise environment, but I can't install Python on those machines. I tried looking for those "py to exe", but sadly they don't support Python 3.6.0. Then I found out about "Windows x86/x86-64 embeddable zip file" t

Re: Logging from different python scripts to different output files

2017-03-29 Thread Peter Otten
James McMahon wrote: [Please keep the discussion on the list] > Thank you Peter. Is it necessary to employ a close() on the handlers and a > shutdown() on the loggers themselves? -Jim Not unless you run into problems with the default mechanism -- logging.shutdown() is scheduled via atexit.regis

Re: Logging from different python scripts to different output files

2017-03-28 Thread Peter Otten
James McMahon wrote: > I'm struggling with Python logging. Have tried to apply several examples I > have found in the open source literature, but can't get it to work. What I > need to do is this: I have two python scripts, a.py and b.py. Each is > called by NiFi E

Logging from different python scripts to different output files

2017-03-27 Thread James McMahon
I'm struggling with Python logging. Have tried to apply several examples I have found in the open source literature, but can't get it to work. What I need to do is this: I have two python scripts, a.py and b.py. Each is called by NiFi ExecuteScript processor repeatedly against man

Re: Quick way to calculate lines of code/comments in a collection of Python scripts?

2016-10-24 Thread Tomasz Rola
On Mon, Oct 24, 2016 at 10:03:29AM +0100, Stephen Tucker wrote: > Tomasz, > > How about using the command prompt command FIND /C on each of your source > files as follows: > > FIND/C "#" >NumbersOfLinesContainingPythonComments.dat > FIND/C /V "#" >NumbersOfLinesNotContainingPythonComments.dat >

Re: Quick way to calculate lines of code/comments in a collection of Python scripts?

2016-10-24 Thread MrJean1
On Wednesday, October 5, 2016 at 1:57:14 PM UTC-4, Malcolm Greene wrote: > Looking for a quick way to calculate lines of code/comments in a > collection of Python scripts. This isn't a LOC per day per developer > type analysis - I'm looking for a metric to quickly judge the co

Re: Quick way to calculate lines of code/comments in a collection of Python scripts?

2016-10-24 Thread Stephen Tucker
ode/comments in a > > collection of Python scripts. This isn't a LOC per day per developer > > type analysis - I'm looking for a metric to quickly judge the complexity > > of a set of scripts I'm inheriting. > > > > Thank you, > > Malcolm > > A b

Re: Quick way to calculate lines of code/comments in a collection of Python scripts?

2016-10-23 Thread Tomasz Rola
On Wed, Oct 05, 2016 at 01:56:59PM -0400, Malcolm Greene wrote: > Looking for a quick way to calculate lines of code/comments in a > collection of Python scripts. This isn't a LOC per day per developer > type analysis - I'm looking for a metric to quickly judge the complexity &g

Re: Quick way to calculate lines of code/comments in a collection of Python scripts?

2016-10-20 Thread John Strick
On Wednesday, October 5, 2016 at 12:57:14 PM UTC-5, Malcolm Greene wrote: > Looking for a quick way to calculate lines of code/comments in a > collection of Python scripts. This isn't a LOC per day per developer > type analysis - I'm looking for a metric to quickly judge the co

Re: Quick way to calculate lines of code/comments in a collection of Python scripts?

2016-10-20 Thread Brandon McCaig
(Sorry for the late reply) On Wed, Oct 05, 2016 at 01:56:59PM -0400, Malcolm Greene wrote: > Looking for a quick way to calculate lines of code/comments in a > collection of Python scripts. This isn't a LOC per day per developer > type analysis - I'm looking for a metric t

Code complexity analysis of Python code (was: Quick way to calculate lines of code/comments in a collection of Python scripts?)

2016-10-05 Thread Ben Finney
Malcolm Greene writes: > Looking for a quick way to calculate lines of code/comments in a > collection of Python scripts. This isn't a LOC per day per developer > type analysis - I'm looking for a metric to quickly judge the complexity > of a set of scripts I'm i

Re: Quick way to calculate lines of code/comments in a collection of Python scripts?

2016-10-05 Thread Chris Angelico
On Thu, Oct 6, 2016 at 4:56 AM, Malcolm Greene wrote: > Looking for a quick way to calculate lines of code/comments in a > collection of Python scripts. This isn't a LOC per day per developer > type analysis - I'm looking for a metric to quickly judge the complexity > o

Quick way to calculate lines of code/comments in a collection of Python scripts?

2016-10-05 Thread Malcolm Greene
Looking for a quick way to calculate lines of code/comments in a collection of Python scripts. This isn't a LOC per day per developer type analysis - I'm looking for a metric to quickly judge the complexity of a set of scripts I'm inheriting. Thank you, Malcolm -- https://mail.pyt

Re: Other difference with Perl: Python scripts in a pipe

2016-03-11 Thread Jussi Piitulainen
Alan Bawden writes: > Fillmore writes: > >> On 3/10/2016 7:08 PM, INADA Naoki wrote: > ... >> I don't like it. It makes Python not so good for command-line utilities >> > > You can easily restore the standard Unix command-line-friendly behavior > by doing: > > import signal > signal.signal(

Re: Other difference with Perl: Python scripts in a pipe

2016-03-11 Thread Ethan Furman
On 03/10/2016 04:26 PM, Fillmore wrote: On 3/10/2016 7:08 PM, INADA Naoki wrote: No. I see it usually. Python's zen says: Errors should never pass silently. Unless explicitly silenced. When failed to write to stdout, Python should raise Exception. You can silence explicitly when it's

Re: Other difference with Perl: Python scripts in a pipe

2016-03-10 Thread Alan Bawden
Fillmore writes: > On 3/10/2016 7:08 PM, INADA Naoki wrote: ... > I don't like it. It makes Python not so good for command-line utilities > You can easily restore the standard Unix command-line-friendly behavior by doing: import signal signal.signal(signal.SIGINT, signal.SIG_DFL) si

Re: Other difference with Perl: Python scripts in a pipe

2016-03-10 Thread Fillmore
On 3/10/2016 7:08 PM, INADA Naoki wrote: No. I see it usually. Python's zen says: Errors should never pass silently. Unless explicitly silenced. When failed to write to stdout, Python should raise Exception. You can silence explicitly when it's safe: try: print(...) except Broken

Re: Other difference with Perl: Python scripts in a pipe

2016-03-10 Thread INADA Naoki
On Fri, Mar 11, 2016 at 8:48 AM, Fillmore wrote: > On 3/10/2016 5:16 PM, Ian Kelly wrote: > >> >> Interesting, both of these are probably worth bringing up as issues on >> the bugs.python.org tracker. I'm not sure that the behavior should be >> changed (if we get an error, we shouldn't just swall

Re: Other difference with Perl: Python scripts in a pipe

2016-03-10 Thread Fillmore
On 3/10/2016 5:16 PM, Ian Kelly wrote: Interesting, both of these are probably worth bringing up as issues on the bugs.python.org tracker. I'm not sure that the behavior should be changed (if we get an error, we shouldn't just swallow it) but it does seem like a significant hassle for writing co

Re: Other difference with Perl: Python scripts in a pipe

2016-03-10 Thread Ian Kelly
On Thu, Mar 10, 2016 at 3:09 PM, Peter Otten <__pete...@web.de> wrote: > I suppose you need to fill the OS-level cache: > > $ cat somescript.py > import sys > > for i in range(int(sys.argv[1])): > sys.stdout.write('line %d\n' % i) > $ python somescript.py 20 | head -n5 > line 0 > line 1 > line

Re: Other difference with Perl: Python scripts in a pipe

2016-03-10 Thread Peter Otten
Ian Kelly wrote: > On Thu, Mar 10, 2016 at 2:33 PM, Fillmore > wrote: >> >> when I put a Python script in pipe with other commands, it will refuse to >> let go silently. Any way I can avoid this? > > What is your script doing? I don't see this problem. > > ikelly@queso:~ $ cat somescript.py > i

Re: Other difference with Perl: Python scripts in a pipe

2016-03-10 Thread Fillmore
On 3/10/2016 4:46 PM, Ian Kelly wrote: On Thu, Mar 10, 2016 at 2:33 PM, Fillmore wrote: when I put a Python script in pipe with other commands, it will refuse to let go silently. Any way I can avoid this? What is your script doing? I don't see this problem. ikelly@queso:~ $ cat somescript.p

Re: Other difference with Perl: Python scripts in a pipe

2016-03-10 Thread Ian Kelly
On Thu, Mar 10, 2016 at 2:33 PM, Fillmore wrote: > > when I put a Python script in pipe with other commands, it will refuse to > let go silently. Any way I can avoid this? What is your script doing? I don't see this problem. ikelly@queso:~ $ cat somescript.py import sys for i in range(20):

Other difference with Perl: Python scripts in a pipe

2016-03-10 Thread Fillmore
when I put a Python script in pipe with other commands, it will refuse to let go silently. Any way I can avoid this? $ python somescript.py | head -5 line 1 line 3 line 3 line 4 line 5 Traceback (most recent call last): File "./somescript.py", line 50, in sys.stdout.write(row[0]) Broken

Re: Execute Python Scripts

2015-10-14 Thread Larry Hudson via Python-list
On 10/14/2015 10:04 AM, Cai Gengyang wrote: So I am going through this article on Python for newbies ---http://askpython.com/execute-python-scripts/ Managed to create a file with these contents : 1 #!/usr/bin/env python3 2 3 print('hello world') and saved it as hello.py You did

Re: Execute Python Scripts

2015-10-14 Thread Cai Gengyang
y, October 15, 2015 at 1:47:50 AM UTC+8, Ian wrote: > On Wed, Oct 14, 2015 at 11:04 AM, Cai Gengyang wrote: > > So I am going through this article on Python for newbies > > ---http://askpython.com/execute-python-scripts/ > > That looks like a terrible resource. There are plen

Re: Execute Python Scripts

2015-10-14 Thread Ian Kelly
On Wed, Oct 14, 2015 at 11:04 AM, Cai Gengyang wrote: > So I am going through this article on Python for newbies > ---http://askpython.com/execute-python-scripts/ That looks like a terrible resource. There are plenty of tutorials and books out there that are actually good. I suggest st

Re: Execute Python Scripts

2015-10-14 Thread Cai Gengyang
On Thursday, October 15, 2015 at 1:18:27 AM UTC+8, paul.her...@gmail.com wrote: > > Where do I find the "command line" ? > > Welcome to Python. > > Starting a command shell depends on which operating system you are running. > > If you are on Microsoft Windows, choose the Start button, then type

Re: Execute Python Scripts

2015-10-14 Thread paul.hermeneutic
> Where do I find the "command line" ? Welcome to Python. Starting a command shell depends on which operating system you are running. If you are on Microsoft Windows, choose the Start button, then type "cmd" into the edit control, then press Enter. -- https://mail.python.org/mailman/listinfo/py

Execute Python Scripts

2015-10-14 Thread Cai Gengyang
So I am going through this article on Python for newbies ---http://askpython.com/execute-python-scripts/ Managed to create a file with these contents : 1 #!/usr/bin/env python3 2 3 print('hello world') and saved it as hello.py Next step, I wanted to open the 'command line

Re: Pyarmor, guard your python scripts

2015-10-06 Thread Josef Pktd
On Monday, October 5, 2015 at 11:27:58 PM UTC-4, Ian wrote: > On Oct 5, 2015 4:27 PM, "Ben Finney" wrote: > > > > > > Josef Pktd writes: > > > > > > > related > > > > > > Care to give us a summary of what that is, and describe what you think > > > is the relevant point? > > Following the

Re: Pyarmor, guard your python scripts

2015-10-05 Thread Ian Kelly
On Oct 5, 2015 4:27 PM, "Ben Finney" wrote: > > Josef Pktd writes: > > > related > > Care to give us a summary of what that is, and describe what you think > is the relevant point? Following the link reveals it to be the video of a talk on Python exe compilation from PyCon 2014. If you're worri

Re: Pyarmor, guard your python scripts

2015-10-05 Thread Ben Finney
Josef Pktd writes: > related Care to give us a summary of what that is, and describe what you think is the relevant point? -- \ “The best way to get information on Usenet is not to ask a | `\ question, but to post the wrong information.” —Aahz | _o__)

Re: Pyarmor, guard your python scripts

2015-10-05 Thread sohcahtoa82
On Thursday, September 17, 2015 at 10:55:19 PM UTC-7, Jondy Zhao wrote: > On Friday, September 18, 2015 at 11:06:25 AM UTC+8, Ben Finney wrote: > > Jondy Zhao writes: > > > > > For example, I develop a game by python. What I want to do is that the > > > player or the agent could not simply copy t

Re: Pyarmor, guard your python scripts

2015-10-05 Thread Josef Pktd
related https://youtu.be/wsczq6j3_bA?t=20m9s Josef -- https://mail.python.org/mailman/listinfo/python-list

Line by Line Debug Python Scripts In GDB

2015-09-22 Thread Jondy Zhao
There is a gdb extension "libpython.py" within Python sources, it could print Python frame, locals/globals variable, Python sources in GDB. But it couldn't set breakpoints in Python scripts directly. Finally, I decided to write a debugger to extend GDB could debug Python scrip

Re: Pyarmor, guard your python scripts

2015-09-18 Thread Jondy Zhao
On Friday, September 18, 2015 at 9:08:27 PM UTC+8, Lorenzo Sutton wrote: > On 18/09/2015 13:41, Jondy Zhao wrote: > [...] > > In reality, when we leave the house, we lock the door, even the lock could > > not make sure the safe of our property. It's just make it difficult. > > It's same in the soft

Re: Pyarmor, guard your python scripts

2015-09-18 Thread Lorenzo Sutton
On 18/09/2015 13:41, Jondy Zhao wrote: [...] In reality, when we leave the house, we lock the door, even the lock could not make sure the safe of our property. It's just make it difficult. It's same in the software world. Someone need the lock in both of the world. I think you meant "in the *pr

Re: Pyarmor, guard your python scripts

2015-09-18 Thread Ben Finney
Jondy Zhao writes: > In reality, when we leave the house, we lock the door, even the lock > could not make sure the safe of our property. It's just make it > difficult. It's same in the software world. Someone need the lock in > both of the world. Yes, please don't encourage authors to put locks

Re: Pyarmor, guard your python scripts

2015-09-18 Thread Jondy Zhao
On Friday, September 18, 2015 at 6:06:51 PM UTC+8, alister wrote: > On Fri, 18 Sep 2015 01:31:50 -0700, Jondy Zhao wrote: > > > On Friday, September 18, 2015 at 4:08:57 PM UTC+8, alister wrote: > >> On Thu, 17 Sep 2015 22:38:32 -0700, Jondy Zhao wrote: > >> > >> > On Friday, September 18, 2015 at

Re: Pyarmor, guard your python scripts

2015-09-18 Thread alister
On Fri, 18 Sep 2015 01:31:50 -0700, Jondy Zhao wrote: > On Friday, September 18, 2015 at 4:08:57 PM UTC+8, alister wrote: >> On Thu, 17 Sep 2015 22:38:32 -0700, Jondy Zhao wrote: >> >> > On Friday, September 18, 2015 at 1:02:09 PM UTC+8, Chris Angelico >> > wrote: >> >> On Fri, Sep 18, 2015 at 12

Re: Pyarmor, guard your python scripts

2015-09-18 Thread Jondy Zhao
On Friday, September 18, 2015 at 4:08:57 PM UTC+8, alister wrote: > On Thu, 17 Sep 2015 22:38:32 -0700, Jondy Zhao wrote: > > > On Friday, September 18, 2015 at 1:02:09 PM UTC+8, Chris Angelico wrote: > >> On Fri, Sep 18, 2015 at 12:40 PM, Jondy Zhao > >> wrote: > >> > The loader only can see the

Re: Pyarmor, guard your python scripts

2015-09-18 Thread Chris Angelico
On Fri, Sep 18, 2015 at 6:05 PM, Jondy Zhao wrote: > I know you hate it. But I have purchased some commercial software in this way > before, a tool named ERWIN used to create relation database. The license I > got from software provider is bind to the network card of my PC. I can't use > this t

Re: Pyarmor, guard your python scripts

2015-09-18 Thread alister
On Thu, 17 Sep 2015 22:38:32 -0700, Jondy Zhao wrote: > On Friday, September 18, 2015 at 1:02:09 PM UTC+8, Chris Angelico wrote: >> On Fri, Sep 18, 2015 at 12:40 PM, Jondy Zhao >> wrote: >> > The loader only can see the compiled scripts as ast nodes, even if >> > the load some tools could dump th

Re: Pyarmor, guard your python scripts

2015-09-18 Thread Jondy Zhao
On Friday, September 18, 2015 at 3:27:28 PM UTC+8, Chris Angelico wrote: > On Fri, Sep 18, 2015 at 3:55 PM, Jondy Zhao wrote: > > On Friday, September 18, 2015 at 11:06:25 AM UTC+8, Ben Finney wrote: > >> Jondy Zhao writes: > >> > >> > For example, I develop a game by python. What I want to do is

Re: Pyarmor, guard your python scripts

2015-09-18 Thread Chris Angelico
On Fri, Sep 18, 2015 at 3:55 PM, Jondy Zhao wrote: > On Friday, September 18, 2015 at 11:06:25 AM UTC+8, Ben Finney wrote: >> Jondy Zhao writes: >> >> > For example, I develop a game by python. What I want to do is that the >> > player or the agent could not simply copy the game to others. For th

Re: Pyarmor, guard your python scripts

2015-09-17 Thread Jondy Zhao
On Friday, September 18, 2015 at 11:06:25 AM UTC+8, Ben Finney wrote: > Jondy Zhao writes: > > > For example, I develop a game by python. What I want to do is that the > > player or the agent could not simply copy the game to others. For the > > player or the agent, they needn't research the game

Re: Pyarmor, guard your python scripts

2015-09-17 Thread Jondy Zhao
On Friday, September 18, 2015 at 1:02:09 PM UTC+8, Chris Angelico wrote: > On Fri, Sep 18, 2015 at 12:40 PM, Jondy Zhao wrote: > > The loader only can see the compiled scripts as ast nodes, even if the load > > some tools could dump the separated ast node to bytecode and de-compile it, > > think

Re: Pyarmor, guard your python scripts

2015-09-17 Thread Chris Angelico
On Fri, Sep 18, 2015 at 12:40 PM, Jondy Zhao wrote: > The loader only can see the compiled scripts as ast nodes, even if the load > some tools could dump the separated ast node to bytecode and de-compile it, > think of one script is divided into thousands of pieces, it's not easy to > assemble

Re: Pyarmor, guard your python scripts

2015-09-17 Thread Ben Finney
Jondy Zhao writes: > For example, I develop a game by python. What I want to do is that the > player or the agent could not simply copy the game to others. For the > player or the agent, they needn't research the game. Deciding for the customer what they may not do, on their own computer, is qui

Re: Pyarmor, guard your python scripts

2015-09-17 Thread Jondy Zhao
On Friday, September 18, 2015 at 10:27:35 AM UTC+8, Ben Finney wrote: > Jondy Zhao writes: > > > Think that python developer is manufacturer, and he want to sell his > > product to the customers who don't know anything about programming. > > Are you also assuming those customers have no-one they

Re: Pyarmor, guard your python scripts

2015-09-17 Thread Jondy Zhao
On Friday, September 18, 2015 at 10:06:30 AM UTC+8, Chris Angelico wrote: > On Fri, Sep 18, 2015 at 11:58 AM, Jondy Zhao wrote: > > Think that python developer is manufacturer, and he want to sell his > > product to the customers who don't know anything about programming. He > > don't hope his c

Re: Pyarmor, guard your python scripts

2015-09-17 Thread Jondy Zhao
On Tuesday, September 15, 2015 at 5:49:15 PM UTC+8, Chris Angelico wrote: > On Tue, Sep 15, 2015 at 7:21 PM, Jondy Zhao wrote: > > Pyarmor is dedicated to users who create their applications, components, > > scripts or any file with the help of the Python programming language. You > > may use th

Re: Pyarmor, guard your python scripts

2015-09-17 Thread Ben Finney
Jondy Zhao writes: > Think that python developer is manufacturer, and he want to sell his > product to the customers who don't know anything about programming. Are you also assuming those customers have no-one they can talk with who knows programming? > He don't hope his customers redistribute

Re: Pyarmor, guard your python scripts

2015-09-17 Thread Chris Angelico
On Fri, Sep 18, 2015 at 11:58 AM, Jondy Zhao wrote: > Think that python developer is manufacturer, and he want to sell his product > to the customers who don't know anything about programming. He don't hope his > customers redistribute his product, that's protected by Pyarmor. > The trouble wit

Re: Pyarmor, guard your python scripts

2015-09-17 Thread Jondy Zhao
On Tuesday, September 15, 2015 at 5:36:52 PM UTC+8, Ben Finney wrote: > Jondy Zhao writes: > > > Pyarmor is a simple to use tool which is capable of importing or > > running encrypted Python script files. Moreover, it can apply encoding > > algorithms to your Python scrip

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Chris Angelico
On Wed, Sep 16, 2015 at 2:40 AM, Grant Edwards wrote: > On 2015-09-15, Chris Angelico wrote: >> >>> I you may be underestimating the laziness and overestimating the >>> cleverness of most people. ;) >> >> Heh :) But in that case, you can probably get away with just >> zipimport. Deflation sure is

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Grant Edwards
On 2015-09-15, Chris Angelico wrote: > >> I you may be underestimating the laziness and overestimating the >> cleverness of most people. ;) > > Heh :) But in that case, you can probably get away with just > zipimport. Deflation sure isn't encryption, but the code is pretty > thoroughly concealed a

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Grant Edwards
On 2015-09-15, Chris Angelico wrote: > On Tue, Sep 15, 2015 at 11:16 PM, Grant Edwards > wrote: >> On 2015-09-15, Chris Angelico wrote: >>> On Tue, Sep 15, 2015 at 7:21 PM, Jondy Zhao wrote: Pyarmor is dedicated to users who create their applications, components, scripts or any file

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Chris Angelico
On Wed, Sep 16, 2015 at 2:20 AM, Grant Edwards wrote: > On 2015-09-15, Chris Angelico wrote: >> On Tue, Sep 15, 2015 at 11:16 PM, Grant Edwards >> wrote: >>> On 2015-09-15, Chris Angelico wrote: If they can be run as if no protection had been applied, that presumably means the loader

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Chris Angelico
On Tue, Sep 15, 2015 at 11:16 PM, Grant Edwards wrote: > On 2015-09-15, Chris Angelico wrote: >> On Tue, Sep 15, 2015 at 7:21 PM, Jondy Zhao wrote: >>> Pyarmor is dedicated to users who create their applications, components, >>> scripts or any file with the help of the Python programming langua

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Grant Edwards
On 2015-09-15, Chris Angelico wrote: > On Tue, Sep 15, 2015 at 7:21 PM, Jondy Zhao wrote: >> Pyarmor is dedicated to users who create their applications, components, >> scripts or any file with the help of the Python programming language. You >> may use this application to encrypt the files, in

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Chris Angelico
On Tue, Sep 15, 2015 at 7:21 PM, Jondy Zhao wrote: > Pyarmor is dedicated to users who create their applications, components, > scripts or any file with the help of the Python programming language. You may > use this application to encrypt the files, in order to protect their content > and your

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Ben Finney
Jondy Zhao writes: > Pyarmor is a simple to use tool which is capable of importing or > running encrypted Python script files. Moreover, it can apply encoding > algorithms to your Python scripts, in order to help you protect them > before you can distribute them. You may also gene

Pyarmor, guard your python scripts

2015-09-15 Thread Jondy Zhao
Pyarmor is a simple to use tool which is capable of importing or running encrypted Python script files. Moreover, it can apply encoding algorithms to your Python scripts, in order to help you protect them before you can distribute them. You may also generate license files with custom validity

Re: Can anyone help me run python scripts with http.server?

2015-09-07 Thread Cameron Simpson
On 07Sep2015 14:57, Chris Angelico wrote: On Mon, Sep 7, 2015 at 2:05 PM, Cameron Simpson wrote: Another nice thing about Flask is that you can run it standalone without Apache. I'm knocking something together right now using Flask, and I'm intending to run it without Apache at all. There'll b

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Chris Angelico
On Mon, Sep 7, 2015 at 2:05 PM, Cameron Simpson wrote: > Another nice thing about Flask is that you can run it standalone without > Apache. I'm knocking something together right now using Flask, and I'm > intending to run it without Apache at all. There'll be an haproxy in front > of it for other

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Cameron Simpson
On 06Sep2015 23:23, Chris Angelico wrote: On Sun, Sep 6, 2015 at 11:07 PM, wrote: I will definitely look into python web frameworks in the future, they seem complicated to me compared to php for example. I am looking for the simplest way to test my python scripts till I understand better how

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Chris Angelico
On Mon, Sep 7, 2015 at 6:04 AM, Denis McMahon wrote: > On Sun, 06 Sep 2015 23:23:14 +1000, Chris Angelico wrote: > >> WSGIScriptAlias / /path/to/scripts/MinstrelHall/mh.wsgi > > One wonders if the OP has mod_wsgi installed. > > https://code.google.com/p/modwsgi/wiki/WhereToGetHelp might be useful

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Denis McMahon
On Sun, 06 Sep 2015 23:23:14 +1000, Chris Angelico wrote: > WSGIScriptAlias / /path/to/scripts/MinstrelHall/mh.wsgi One wonders if the OP has mod_wsgi installed. https://code.google.com/p/modwsgi/wiki/WhereToGetHelp might be useful too. -- Denis McMahon, denismfmcma...@gmail.com -- https://ma

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Chris Angelico
On Mon, Sep 7, 2015 at 1:03 AM, Laura Creighton wrote: > As I was walking around town it occurred to me to ask if you have > made your something.py file executable? I don't even know if > apache on windows cares about such things, though if you are using cgi > and a unix like system you will need

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 06:07:05 -0700, tropical.dude@gmail.com wr ites: >Thank you very much. > >I will definitely look into python web frameworks in the future, they seem >complicated to me compared to php for example. I am looking for the simplest >way to test my

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Chris Angelico
On Sun, Sep 6, 2015 at 11:07 PM, wrote: > I will definitely look into python web frameworks in the future, they seem > complicated to me compared to php for example. I am looking for the simplest > way to test my python scripts till I understand better how it works and when > I can

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
nt to > do. > > Laura Thank you very much. I will definitely look into python web frameworks in the future, they seem complicated to me compared to php for example. I am looking for the simplest way to test my python scripts till I understand better how it works and when I can configu

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
gure http.server > to run python scripts? > > I ran the command python -m http.server --cgi to start the http server, > and if I put index.html, I will see the page but if I use > index.py, it doesn't show the page, I can only see the > directory listing of the files and whe

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 05:38:50 -0700, tropical.dude@gmail.com wr ites: >> What operating system are you running? It sounds to me as if you haven't >> configured apache to add a Handler for python scripts, or you have, but >> forgot to restart apache after y

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
; >with the guides I found on the internet. > > > >Can anyone help me configure http.server > >to run python scripts? > > > >I ran the command python -m http.server --cgi to start the http server, > >and if I put index.html, I will see the page but if I use > &

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Peter Otten
Peter Otten wrote: > tropical.dude@gmail.com wrote: > >> I want to use python for web development but I >> could not configure my Apache server to run python >> with the guides I found on the internet. >> >> Can anyone help me configure http.server >&g

  1   2   3   4   5   6   >