On 2024-09-23 at 19:00:10 +0100,
Barry Scott wrote:
> > On 21 Sep 2024, at 11:40, Dan Sommers via Python-list
> > wrote:
> But once your code gets big the disciple of using classes helps
> maintenance. Code with lots of globals is problematic.
Even before your code gets big, discipline helps
> On 21 Sep 2024, at 11:40, Dan Sommers via Python-list
> wrote:
>
> Despite the fact that "everything is an object" in Python, you don't
> have to put data or functions inside classes or objects. I also know
> nothing about Typer, but there's nothing wrong with functions in a
> module.
Pyt
On 2024-09-21 at 06:38:05 +0100,
Barry via Python-list wrote:
> > On 20 Sep 2024, at 21:01, Loris Bennett via Python-list
> > wrote:
> >
> > Hi,
> >
> > Apologies if the following description is to brief - I can expand if no
> > one knows what I'm on about, but maybe a short description is e
> On 20 Sep 2024, at 21:01, Loris Bennett via Python-list
> wrote:
>
> Hi,
>
> Apologies if the following description is to brief - I can expand if no
> one knows what I'm on about, but maybe a short description is enough.
>
> I am developing a command line application using Typer. Most co
Hi,
Apologies if the following description is to brief - I can expand if no
one knows what I'm on about, but maybe a short description is enough.
I am developing a command line application using Typer. Most commands
need to do something in a database and also do LDAP stuff. Currently
each comma
On 10/15/20 5:09 PM, Samuel Marks wrote:
> Yes it’s my module, and I’ve been using argparse
> https://github.com/SamuelMarks/ml-params
>
> No library I’ve found provides a solution to CLI argument parsing for my
> use-case.
>
> So I’ll write one. But what should it look li
cleanly)
Also there is a project which takes your CLI and turns it into a GUI
(Gooey).
At some future point doctrans will be “complete”, and then you can provide
inputs via:
- CLI arguments
- Config file
- RPC*
- REST*
*TODO, will also optionally generate ORM classes for persistence
On Fri, 16
ve been using argparse
> >https://github.com/SamuelMarks/ml-params
> >
> >No library I’ve found provides a solution to CLI argument parsing for my
> >use-case.
>
> Do you know that with `argparse` you can specify how many arguments an option
> expects? Thus, it sh
Samuel Marks wrote at 2020-10-16 10:09 +1100:
>Yes it’s my module, and I’ve been using argparse
>https://github.com/SamuelMarks/ml-params
>
>No library I’ve found provides a solution to CLI argument parsing for my
>use-case.
Do you know that with `argparse` you can specify how ma
On 2020-10-16 at 11:27:56 +1100,
Regarding "Re: CLI parsing—with `--help` text—`--foo bar`, how to give
additional parameters to `bar`?,"
Samuel Marks wrote:
> The feature that existing CLI parsers are missing is a clean syntax
> for specifying options on the second param
On 16Oct2020 10:59, Samuel Marks wrote:
>--optimizer Adam,learning_rate=0.01,something_else=3
>
>That syntax isn’t so bad! =]
>
>How would you suggest the help text for this looks? (don’t worry about
>implementation, just what goes to stdout/stderr)
Maybe:
Usage: ...
..
Hi Dan,
The feature that existing CLI parsers are missing is a clean syntax
for specifying options on the second parameter (the "value"), where
there may be different options available depending on which you
choose.
For example:
https://www.tensorflow.org/api_docs/python/tf/keras/optim
On 2020-10-16 at 10:20:40 +1100,
Cameron Simpson wrote:
> On 16Oct2020 10:09, Samuel Marks wrote:
> >Yes it’s my module, and I’ve been using argparse
> >https://github.com/SamuelMarks/ml-params
> >
> >No library I’ve found provides a solution to CLI argument parsing
On 2020-10-16 at 10:59:16 +1100,
Samuel Marks wrote:
> --optimizer Adam,learning_rate=0.01,something_else=3
>
> That syntax isn’t so bad! =]
>
> How would you suggest the help text for this looks? (don’t worry about
> implementation, just what goes to stdout/stderr)
--optimizer name[,optio
r to support
your needs.
Karen
> On Oct 15, 2020, at 4:09 PM, Samuel Marks wrote:
>
> Yes it’s my module, and I’ve been using argparse
> https://github.com/SamuelMarks/ml-params
> <https://github.com/SamuelMarks/ml-params>
>
> No library I’ve found provides a soluti
--optimizer Adam,learning_rate=0.01,something_else=3
That syntax isn’t so bad! =]
How would you suggest the help text for this looks? (don’t worry about
implementation, just what goes to stdout/stderr)
PS: Yeah I used square brackets for my Bash arrays
On Fri, 16 Oct 2020 at 10:26 am, Cameron S
One other thing:
On 15Oct2020 20:53, Samuel Marks wrote:
>Idea: preprocess `sys.argv` so that this syntax would work
>`--optimizer Adam[learning_rate=0.01]`*
>
>*square rather than round so as not to require escape characters or
>quoting in `sh`
Square brackets are also shell syntax, introducing
On 16Oct2020 10:09, Samuel Marks wrote:
>Yes it’s my module, and I’ve been using argparse
>https://github.com/SamuelMarks/ml-params
>
>No library I’ve found provides a solution to CLI argument parsing for my
>use-case.
>
>So I’ll write one. But what should it look li
Yes it’s my module, and I’ve been using argparse
https://github.com/SamuelMarks/ml-params
No library I’ve found provides a solution to CLI argument parsing for my
use-case.
So I’ll write one. But what should it look like, syntactically and
semantically?
On Fri, 16 Oct 2020 at 3:14 am, Dieter
Samuel Marks wrote at 2020-10-15 20:53 +1100:
> ...
>To illustrate the issue, using `ml-params` and ml-params-tensorflow:
> ...
>What's the right solution here?
While Python provides several modules in its standard library
to process parameters (e.g. the simple `getopt` and the flexible `argparse`
Previously I have solved related problems with explicit `-}` and `-{`
(or `-b`) as in `nginxctl`:
```
$ python -m nginxctl serve --temp_dir '/tmp' \
-b 'server' \
--server_name 'localhost' --listen '8080' \
-b location '/' \
--root '/tmp/wwwro
Is this anything? When you run a python command from the shell to just print
the command line args you get this:
$ python -c "import sys; print(sys.argv)"
['-c']
But I would expect one of these:
Either the '-c' option consumes both args:
$ python -c "import sys; print(sys.argv)"
in 788357 20180105 132921 Kevin Walzer wrote:
>On 1/1/18 11:45 AM, X. wrote:
>> Ulli Horlacher:
>>> I have to transfer a python 2.7 CLI programm into one with a (simple) GUI.
>>> The program must run on Linux and Windows and must be compilable with
>>>
On 1/1/18 11:45 AM, X. wrote:
Ulli Horlacher:
I have to transfer a python 2.7 CLI programm into one with a (simple) GUI.
The program must run on Linux and Windows and must be compilable with
pyinstall, because I have to ship a standalone windows.exe
Any kind of installer is not acceptable
Not sure why the CLI command "pyjwt decode --no-verify ..." will hang at
sys.stdin.read() even though I provided all the input. Any ideas on how to
work around the problem?
$ pyjwt -v
pyjwt 1.5.3
$ pyjwt decode --no-verify
eyJhbGciOiJIUzI1NiIsInR5cC
If you ever want to quickly check your package's downloads counts or wish to
know more about your users, I'd really recommend this!
--
https://mail.python.org/mailman/listinfo/python-list
https://github.com/ofek/pypinfo
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
i have just released the brand new FTP server based on pyftpdlib, named
PyFTPD.
You can run it from CLI with PyFTPD-cli.py or if you like GUIs run the
PyFTPD.py
It is written on PyQT4 and Python 2.7.12
More at https://github.com/demosthenesk/PyFTPD
Regards,
Dim
--
https
Hi there,
I'm winkidney:), Recently when I work on a cli auto-generating task, I tryed
"click" and "argparse" to handle it.
But I have to write a library myself to do this job finally.
I wish this library helps you :)
Project Github Repo: https://github.com/winkidn
DFS wrote:
> getAddresses.py
>
> Scrapes addresses from www.usdirectory.com and stores them in a SQLite
> database, or writes them to text files for mailing labels, etc
>
> Now, just by typing 'fast food Taco Bell 10 db all' you can find
> out how many Taco Bells are within 10 miles of you, and
On Sat, 07 May 2016 18:24:45 +1200, Gregory Ewing wrote:
> DFS wrote:
>> Maybe it worked because the last time the file was written to was in a
>> for loop, so I got lucky and the files weren't truncated? Don't know.
>
> It "works" because CPython disposes of objects as soon as they are not
> re
DFS wrote:
Maybe it worked because the last time the file was written to was in a
for loop, so I got lucky and the files weren't truncated? Don't know.
It "works" because CPython disposes of objects as soon
as they are not referenced anywhere. Other implementations
of Python (e.g. Jython, PyPy
On Fri, May 6, 2016, at 04:58 PM, DFS wrote:
> Improper f.close didn't seem to affect any of the files my program wrote
> - and I checked a lot of them when I was writing the code.
To be clear, its not an "improper" f.close. That command is simply not
closing the file. Period. "f.close" is how yo
On 2016-05-07 00:58, DFS wrote:
On 5/6/2016 7:29 PM, Ethan Furman wrote:
On 05/06/2016 04:12 PM, DFS wrote:
On 5/6/2016 4:30 PM, MRAB wrote:
If you don't want to use the 'with' statement, note that closing the
file is:
f.close()
It needs the "()"!
I used close() in 1 pla
On 5/6/2016 7:29 PM, Ethan Furman wrote:
On 05/06/2016 04:12 PM, DFS wrote:
On 5/6/2016 4:30 PM, MRAB wrote:
If you don't want to use the 'with' statement, note that closing the
file is:
f.close()
It needs the "()"!
I used close() in 1 place, but close without parens in 2
On 05/06/2016 04:12 PM, DFS wrote:
On 5/6/2016 4:30 PM, MRAB wrote:
If you don't want to use the 'with' statement, note that closing the
file is:
f.close()
It needs the "()"!
I used close() in 1 place, but close without parens in 2 other places.
So it works either way. Go
On 5/6/2016 4:30 PM, MRAB wrote:
On 2016-05-06 20:10, DFS wrote:
getAddresses.py
Scrapes addresses from www.usdirectory.com and stores them in a SQLite
database, or writes them to text files for mailing labels, etc
Now, just by typing 'fast food Taco Bell 10 db all' you can find
out how many
On 2016-05-06 20:10, DFS wrote:
getAddresses.py
Scrapes addresses from www.usdirectory.com and stores them in a SQLite
database, or writes them to text files for mailing labels, etc
Now, just by typing 'fast food Taco Bell 10 db all' you can find
out how many Taco Bells are within 10 miles of
getAddresses.py
Scrapes addresses from www.usdirectory.com and stores them in a SQLite
database, or writes them to text files for mailing labels, etc
Now, just by typing 'fast food Taco Bell 10 db all' you can find
out how many Taco Bells are within 10 miles of you, and store all the
addres
gvim wrote:
> Given that this work in a Python 3 repl:
>
import re
txt = "Some random text"
if re.search(r"\b\w{4}\b", txt): txt
'Some random text'
>
> and this works on the command line, printing all lines in logs.txt:
>
> $ python3 -m oneliner -ne 'line' logs.txt
>
>
Given that this work in a Python 3 repl:
import re
txt = "Some random text"
if re.search(r"\b\w{4}\b", txt): txt
'Some random text'
and this works on the command line, printing all lines in logs.txt:
$ python3 -m oneliner -ne 'line' logs.txt
. why does this fail:
$ python3 -m oneli
On 06/18/2015 12:08 PM, Tony the Tiger wrote:
> Forgot to add, I don't read or see anything posted from outside of the
> groups.
Posting from the mailing list here. I assume the nntp gateway is
two-way. Unless you're manually blocking message originating in google
groups, I don't see why you w
On Thu, Jun 18, 2015 at 11:56 AM, Tony the Tiger wrote:
> I would have assumed there would be something built in to the
> ArgumentParser, but I can't detect anything that seems to do what I want,
> so I wrote the following:
[SNIP]
> So, is there something already in the Python libs? Do I continu
And... 3.0 is released! :-)
Feel free to contact me or reply should you encounter any issues!
http://clize.readthedocs.org/en/3.0/releases.html#v3-0
On Mon, 27 Apr 2015 at 02:02 Yann Kaiser wrote:
> Hello everyone!
>
> After a few years in development, I am proud to say Clize is landing its
>
On Tue, 28 Apr 2015 at 19:16 Chris Angelico wrote:
> On Wed, Apr 29, 2015 at 11:55 AM, Yann Kaiser
> wrote:
> > I'm aware of the pattern, and I don't really like it, especially because
> it
> > gets weird when multiple modules are involved. You'd have to import
> modules
> > because they have a
On Mon, 27 Apr 2015 at 22:30 Ethan Furman wrote:
> On 04/28, Chris Angelico wrote:
>
> > That's a lot of separate pieces. Here's the docstringargs equivalent:
> >
> > https://github.com/Rosuav/snippets/blob/dsa/snippets.py
>
> Just for grins, here's that using Scription:
>
> -- 8< ---
On Mon, 27 Apr 2015 at 17:04 Chris Angelico wrote:
> On Mon, Apr 27, 2015 at 7:02 PM, Yann Kaiser
> wrote:
> > Hello everyone!
> >
> > After a few years in development, I am proud to say Clize is landing its
> > feet again and is now in beta for an upcoming release.
> >
> > You can try it out us
and make a single module that's more likely to
> >> be maintained long-term? No point over-duplicating!
> >
> >
> > Agreed. I'm open to have more maintainers and to take input, but I have
> to
> > admit that at this stage of development, I'm quite a
On Wed, Apr 29, 2015 at 11:55 AM, Yann Kaiser wrote:
> I'm aware of the pattern, and I don't really like it, especially because it
> gets weird when multiple modules are involved. You'd have to import modules
> because they have a side-effect of adding stuff to a list rather than import
> things s
On 04/28, Chris Angelico wrote:
> That's a lot of separate pieces. Here's the docstringargs equivalent:
>
> https://github.com/Rosuav/snippets/blob/dsa/snippets.py
Just for grins, here's that using Scription:
-- 8<
"""Store an
; the test suite helps with that).
If Clize can implement something comparably simple to what I'm doing
in the above examples, I'd be happy to drop docstringargs in favour of
it. Basically, I didn't like how argparse code looked:
https://github.com/Rosuav/snippets/blob/master/snippet
On Mon, Apr 27, 2015 at 7:02 PM, Yann Kaiser wrote:
> Hello everyone!
>
> After a few years in development, I am proud to say Clize is landing its
> feet again and is now in beta for an upcoming release.
>
> You can try it out usingpip install --user clize=3.0b1and you can
> browse the doc
It would be nice if it could automatically generate the python code
for 'clizing a function', i.e., from the example in
https://clize.readthedocs.org/en/latest/
def hello_world(name=None, no_capitalize=False):
...
being able to do
clize.generate_py_code(hello_world)
which would return somet
Hello everyone!
After a few years in development, I am proud to say Clize is landing its
feet again and is now in beta for an upcoming release.
You can try it out usingpip install --user clize=3.0b1and you can
browse the docs athttps://clize.readthedocs.org/
For those who'd like an e
4 7:46:44 PM UTC+5:30, INADA Naoki wrote:
> Click_ is another CLI framework.
>
> It support multi-level nested command like git and it has some nice utilities.
>
> I love it's design.
>
>
>
>
>
>
>
> .. _click: http://click.pocoo.org/3/
>
>
Click_ is another CLI framework.
It support multi-level nested command like git and it has some nice utilities.
I love it's design.
.. _click: http://click.pocoo.org/3/
—
Sent from Mailbox
On Tue, Oct 14, 2014 at 10:35 PM, vijnaana bhairava
wrote:
> Hi Folks,
> The requir
On Wed, Oct 15, 2014 at 12:33 AM, vijnaana bhairava wrote:
> Another question i have is whether it uses argparse?
> If so, what value add does PYCLI do?
It depends what you mean by "CLI framework". If you simply mean
something like hg, where you have subcommands and options an
Hi Folks,
The requirement is to develop a CLI framework in python for a linux router.
The suggestions i got is to use PyCli/Cliff. Not sure which would be the right
choice! Also, a few APIs are mentioned here:
https://pythonhosted.org/pyCLI/#module-cli.app
Since i couldn't find any a
On 10/10/2014 10:43 AM, Rustom Mody wrote:
On Thursday, October 9, 2014 9:31:39 PM UTC+5:30, gelonida wrote:
For calling commands in a slightly nicer way than os.system /
sybprocess.Popen you might look at sh or plumbum
https://pypi.python.org/pypi/sh
https://pypi.python.org/pypi/plumbum
- Original Message -
> From: vijna...@gmail.com
>
> Hi,
>
> I need to develop a python CLI framework.
>
[snip]
> 3. There are other such commands for which i will be using python
> scripts. I came across pyCLI, but it doesn't have much
> documentatio
On Thursday, October 9, 2014 9:31:39 PM UTC+5:30, gelonida wrote:
> For calling commands in a slightly nicer way than os.system /
> sybprocess.Popen you might look at sh or plumbum
> https://pypi.python.org/pypi/sh
> https://pypi.python.org/pypi/plumbum
Both of these look quite nice!
[Im looki
On 09-10-14 14:20, vijna...@gmail.com wrote:
Hi,
I need to develop a python CLI framework.
For example if i need to set an ip address in linux:
ifconfig eth0 172.16.25.125
I should be able to use python to do the above.
1. The user will execute a python script to which i will pass the
n Thu, Oct 9, 2014 at 5:50 PM, mailto:vijna...@gmail.com>> wrote:
Hi,
I need to develop a python CLI framework.
For example if i need to set an ip address in linux:
ifconfig eth0 172.16.25.125
I should be able to use python to do the above.
1. The user will execu
Hello,
Go for Optparse.. Look at below docs on how to use it.
http://pymotw.com/2/optparse/
Regards,
DJ
On Thu, Oct 9, 2014 at 5:50 PM, wrote:
> Hi,
>
> I need to develop a python CLI framework.
>
> For example if i need to set an ip address in linux:
>
> ifconfig eth
Hi,
I need to develop a python CLI framework.
For example if i need to set an ip address in linux:
ifconfig eth0 172.16.25.125
I should be able to use python to do the above.
1. The user will execute a python script to which i will pass the params eth0
and ip address (something like
Hello,
I am intermediate to python and i am familier with OOP, but sometime i lost
some where looking at OOP in class and objects :(
I am looking at https://github.com/pulp/pulp ..
basically it uses okaara to generate CLI and calls API.
so for example if i run "pulp-admin -u adm
On Sat, Feb 25, 2012 at 9:16 AM, Rodrick Brown wrote:
> m = { 'a': 'checkDisks()',
> 'b': 'checkMemSize()',
> 'c': 'checkBondInterfaces()'
> }
>
> runlist = [ c for c in m.keys() if c not in r.d ]
> for runable in runlist:
> eval(m[runable])
It's a reasonable tec
On Fri, Feb 24, 2012 at 2:16 PM, Rodrick Brown wrote:
> I have a bunch of sub routines that run independently to perform various
> system checks on my servers. I wanted to get an opinion on the following code
> I have about 25 independent checks and I'm adding the ability to disable
> certain c
I have a bunch of sub routines that run independently to perform various system
checks on my servers. I wanted to get an opinion on the following code I have
about 25 independent checks and I'm adding the ability to disable certain
checks that don't apply to certain hosts.
m = { 'a': 'checkDis
On Wed, 2009-08-12 at 11:29 +0200, fakhar Gillani wrote:
>
> Hi,
>
> I am a begineer in Python. Actually I am encoding video files with
> different bitrates using ffmpeg CLI. I wanted to ask you that how can
> I make loops so that I can vary the bitrates in the CLI of ffmpeg
Hi,
I am a begineer in Python. Actually I am encoding video files with different
bitrates using ffmpeg CLI. I wanted to ask you that how can I make loops so
that I can vary the bitrates in the CLI of ffmpeg??
I want to bulid a loop for the command below where i just want to vary the
Il Tue, 28 Jul 2009 14:31:56 +0100, Nobody ha scritto:
> Killed by what means?
>
> Ctrl-C sends SIGINT which is converted to a KeyboardInterrupt exception.
> This can be caught, or if it's allowed to terminate the process, any exit
> handlers registered via atexit.register() will be used.
>
> Fo
On Mon, 27 Jul 2009 22:35:01 +0200, David wrote:
> I am writing a command line application, and I need to perform some
> cleaning on exit even if the process is killed. How can I do that with
> python?
Killed by what means?
Ctrl-C sends SIGINT which is converted to a KeyboardInterrupt exception.
On Tue, Jul 28, 2009 at 12:52 AM, Jan Kaliszewski wrote:
> As I wrote, you must use signals. Though sometimes it's a good idea
> to combine these two techniques (i.e. signal handlers call sys.exit(),
> then sys.exitfunc/or function registered with atexit does the actual
> cleaning actions).
Ano
27-07-2009 Ben Finney wrote:
David <71da...@libero.it> writes:
I am writing a command line application, and I need to perform some
cleaning on exit even if the process is killed. How can I do that with
python?
Write an “exit handler” function, then use ‘atexit.register’
http://docs.python.o
David <71da...@libero.it> writes:
> I am writing a command line application, and I need to perform some
> cleaning on exit even if the process is killed. How can I do that with
> python?
Write an “exit handler” function, then use ‘atexit.register’
http://docs.python.org/library/atexit> to registe
27-07-2009 o 22:35:01 David <71da...@libero.it> wrote:
I am writing a command line application, and I need to perform some
cleaning
on exit even if the process is killed.
How can I do that with python?
See: http://docs.python.org/library/signal.html
Cheers,
*j
--
Jan Kaliszewski (zuo)
--
Greetings,
I am writing a command line application, and I need to perform some cleaning
on exit even if the process is killed.
How can I do that with python?
Thank you.
David.
--
http://mail.python.org/mailman/listinfo/python-list
Chris Rebert wrote:
On Thu, Apr 16, 2009 at 12:36 PM, Andreas Balogh wrote:
Only recently I have started developing code for application providing both
a GUI and a command line interface (CLI). Naturally I want to reuse the
business logic code for both GUI and CLI interfaces. The problem is to
Andreas Balogh wrote:
Only recently I have started developing code for application providing
both a GUI and a command line interface (CLI). Naturally I want to reuse
the business logic code for both GUI and CLI interfaces. The problem is
to provide feedback to the GUI on the one hand, to the
On Thu, Apr 16, 2009 at 12:36 PM, Andreas Balogh wrote:
> Only recently I have started developing code for application providing both
> a GUI and a command line interface (CLI). Naturally I want to reuse the
> business logic code for both GUI and CLI interfaces. The problem is to
Only recently I have started developing code for application providing
both a GUI and a command line interface (CLI). Naturally I want to reuse
the business logic code for both GUI and CLI interfaces. The problem is
to provide feedback to the GUI on the one hand, to the CLI on the other
hand
On Tue, 06 Jan 2009 17:30:19 +0200, Dotan Cohen wrote:
> I don't know about the code, but would there be a reason _not_ to alias
> rm, rmdir to this program? I see that it is GPL, so this would be a
> great addition to any Linux distro.
I sure as hell don't want rm to move files to the trash. If
Dotan Cohen wrote:
2009/1/6 Andrea Francia
:
The trash-cli project is a opensource implementation of the FreeDesktop.org
I don't know about the code, but would there be a reason _not_ to
alias rm, rmdir to this program?
Actually the trash-put command accept all the options of GNU
2009/1/6 Andrea Francia
:
> The trash-cli project is a opensource implementation of the FreeDesktop.org
> Trash Specification that provides a command line interface to manage the
> trashcan.
>
> It's provide the following commands:
> * trash-put trashes files and
The trash-cli project is a opensource implementation of the
FreeDesktop.org Trash Specification that provides a command line
interface to manage the trashcan.
It's provide the following commands:
* trash-put trashes files and directories.
* trash-empty empty the trash
On 3 apr, 11:57, Ben Finney <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] writes:
> > for one of mypythonprojects I need an user interface similar to that
> > of cisco IOS or even better JuniperJUNOS.
> > Does anyone know of existingpythonmodules that gives this kind of
> > functionality?
>
> I su
[EMAIL PROTECTED] writes:
> for one of my python projects I need an user interface similar to that
> of cisco IOS or even better Juniper JUNOS.
> Does anyone know of existing python modules that gives this kind of
> functionality?
I suspect you've not checked the standard library index:
Pyth
Hi,
for one of my python projects I need an user interface similar to that
of cisco IOS or even better Juniper JUNOS.
Does anyone know of existing python modules that gives this kind of
functionality ?
-P
--
http://mail.python.org/mailman/listinfo/python-list
mwt wrote:
> I want to do programmatic terminal commands on unix with python - i.e.
> I want my program to issue commands to start and stop scripts, other
> programs, etc. I'm sure this must be fairly straightforward, but
> haven't been able to find a reference for it. Any help?
>
Try:
pexpect.s
mwt:
>I want to do programmatic terminal commands on unix with python - i.e.
>I want my program to issue commands to start and stop scripts, other
>programs, etc. I'm sure this must be fairly straightforward, but
>haven't been able to find a reference for it. Any help?
http://www.python.org/doc/2.
mwt enlightened us with:
> I want to do programmatic terminal commands on unix with python
If you want to use a real terminal, search for pty. If you just want
to start and stop scripts, check the popen2 module.
Sybren
--
The problem with the world is stupidity. Not saying there should be a
cap
I want to do programmatic terminal commands on unix with python - i.e.
I want my program to issue commands to start and stop scripts, other
programs, etc. I'm sure this must be fairly straightforward, but
haven't been able to find a reference for it. Any help?
--
http://mail.python.org/mailman/li
Terry Hancock wrote:
> On Monday 05 September 2005 08:10 am, Laszlo Zsolt Nagy wrote:
>
>>The problem is that now I have so many modules that the shell (cmd.exe)
>>cannot interpret this as a one command.
>
> In POSIX systems, the shell expands wildcards into multiple files on
> the command line
On Monday 05 September 2005 08:10 am, Laszlo Zsolt Nagy wrote:
> I have a problem under Windows.
There's your problem. ;-)
> I use the cli.py program included with
> epydoc. I wrote a small program that lists all of my modules after the
> cli. Something like this:
&g
Laszlo Zsolt Nagy enlightened us with:
> I wrote a small program that lists all of my modules after the
> cli. Something like this:
>
> cli.py --html --inheritance=grouped module1.py module2.py module3.py
> ..
>
> The problem is that now I have so many modules that
Hello,
I have a problem under Windows. I use the cli.py program included with
epydoc. I wrote a small program that lists all of my modules after the
cli. Something like this:
cli.py --html --inheritance=grouped module1.py module2.py module3.py
..
The problem is that now I have so many
97 matches
Mail list logo