Re: Good editor for python

2018-11-11 Thread Brian J. Oney via Python-list
Hi Olivier I am glad you did not trigger an editor war. I don't know how familiar you are with emacs. The answer depends alot on your preference and future work. Emacs and vi have been around for a long time for good reasons. If you prefer an extensible and futureproof editor, I can wholeheartedl

Re: [Tutor] SyntaxError: can't assign to literal while using ""blkid -o export %s | grep 'TYPE' | cut -d"=" -f3" % (fs)" using subprocess module in Python

2018-11-07 Thread Brian J. Oney via Python-list
On Wed, 2018-11-07 at 10:22 +0100, srinivasan wrote: > blkid -o export %s | grep \'TYPE\' | cut -d\"=\" -f3 You don't need to escape the single quotes. Try either: "blkid -o export %s | grep 'TYPE' | cut -d'=' -f3" or: 'blkid -o export %s | grep "TYPE" | cut -d"=" -f3' or: "blkid -o export %s | g

Re: email automation

2018-10-23 Thread Brian J. Oney via Python-list
On Tue, 2018-10-23 at 10:31 +0100, Ali Rıza KELEŞ wrote: > On Tue, 23 Oct 2018 at 09:07, Thomas Jollans wrote: > > > After some basic research I have a few options: > > >  > > >  1. Grapple with OpenEMM (interesting software, has python library, > > > still alive and kicking, a bit overkill f

Re: regex string matching python3

2018-10-01 Thread Brian J. Oney via Python-list
On Mon, 2018-10-01 at 10:49 -0700, nanman3...@gmail.com wrote: > I have a string like this:  >  > b'\tC:94.3%[S:89.9%,D:4.4%],F:1.7%,M:4.0%,n:1440\n' >  > And I would like to  extract the numbers corresponding to S,D,F and M in this > string and convert them into an array like this:  >  > [ '89.9'

Re: RANT why the *%#&%^ does installing pip not install setuptools???

2018-07-05 Thread Brian J. Oney via Python-list
On Stretch: ~ $ aptitude show python-pip Package: python-pip   Version: 9.0.1-2 ... Maintainer: Debian Python Modules Team ... Depends: ca-certificates, python-pip-whl (= 9.0.1-2), python:any (< 2.8), python:any (>= 2.7.5-5~) Recommends: build-essential, python-all-dev (>= 2.6

Re: Python Templating Language

2017-12-17 Thread Brian J. Oney via Python-list
I am not exactly sure what you mean, so I will guess. Jinja may be what you're looking for. It's an important component of flask & ansible, for example. pyweave may also serve your purposes. HTH -- https://mail.python.org/mailman/listinfo/python-list

advice for inventory software

2017-11-30 Thread Brian J. Oney via Python-list
Dear Python scripters, I am writing modules for my insectary (for food), the processes of which I plan to mostly automate. Currently, inventory and the traceability of material flows is my focus. My best idea (yet) for making things as simple as possible consists of a debian server hooked up t