Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15985

Re: ProgressBar - Python and Powershell

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <alec.taylor6@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.04; 'pypi': 0.04; 'subject:Python': 0.05; 'python': 0.08; 'scripts': 0.09; '21,': 0.09; 'throw': 0.09; 'am,': 0.12; 'message-----': 0.12; 'received:209.85.210.174': 0.13; 'received:mail- iy0-f174.google.com': 0.13; 'from:addr:alec.taylor6': 0.16; 'from:name:alec taylor': 0.16; 'installer.': 0.16; 'it..': 0.16; 'non-standard': 0.16; 'sane': 0.16; 'temp': 0.16; 'vmware': 0.16; 'wix': 0.16; '\xa0as': 0.16; '\xa0for': 0.16; '\xa0using': 0.16; 'cc:addr:python-list': 0.16; 'mon,': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.20; 'written': 0.20; 'suggest': 0.20; 'trying': 0.21; 'bangalore': 0.21; 'mechanism': 0.21; 'header:In-Reply- To:1': 0.22; 'sunday,': 0.23; 'cc:2**0': 0.24; 'command': 0.24; 'creating': 0.25; 'windows': 0.26; 'all,': 0.28; 'url:mailman': 0.28; 'script': 0.28; 'message-id:@mail.gmail.com': 0.28; 'module.': 0.29; 'cc:addr:python.org': 0.29; 'nov': 0.29; 'environment': 0.30; 'environment.': 0.30; 'installer': 0.30; 'cc:': 0.31; 'thanks': 0.31; 'anyone': 0.31; 'shared': 0.31; 'does': 0.32; 'yet': 0.32; 'url:listinfo': 0.32; 'implement': 0.32; 'there': 0.33; 'it.': 0.34; 'subject:': 0.34; 'too': 0.34; 'file.': 0.34; 'anything': 0.34; '17,': 0.34; 'light': 0.35; 'rest': 0.35; 'are:': 0.35; 'test': 0.35; 'install': 0.35; 'url:python': 0.36; 'file': 0.36; 'sent:': 0.36; 'uses': 0.36; 'executing': 0.37; 'skip:p 50': 0.37; 'thread': 0.37; 'thursday,': 0.37; 'entry': 0.37; 'received:google.com': 0.37; 'using': 0.38; 'some': 0.38; 'received:209.85': 0.38; 'from:': 0.39; 'url:org': 0.39; 'else': 0.39; 'why': 0.39; 'received:209': 0.40; '2011': 0.61; 'your': 0.61; 'world.': 0.64; 'alternative': 0.65; 'taking': 0.66; 'here.': 0.66; 'taylor': 0.67; 'dealing': 0.69; 'completion': 0.82; '1.\xa0\xa0\xa0\xa0\xa0\xa0': 0.84; '12:01': 0.84; '2.\xa0\xa0\xa0\xa0\xa0\xa0': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=hP/HUPnQxkPAZpgGk9dgjr0yXciNsNu7U+ouq+pCSsE=; b=tiKHEwR3qR4x9P6/R8hITXXFCzNt9nXKxkGNvUvQSrLDv59gPdY21Sz8zOhNOxpz6B +aHHCG8lpbj3aA9oyJXVjVTlYWwcUB0I+ag9JbWZ8uUy6IST9mqRUiWBtTGRFqDWbBQ1 5g5X9KWe7ydIcknOvgnK/QX6SNd2+OaX/CiNk=
MIME-Version 1.0
In-Reply-To <599CEBACD49B4144A61212D837EE3C0F144604D355@MX34A.corp.emc.com>
References <599CEBACD49B4144A61212D837EE3C0F144604D184@MX34A.corp.emc.com> <599CEBACD49B4144A61212D837EE3C0F144604D352@MX34A.corp.emc.com> <CAO+9iGde9_bUDPOVDYGOErmGK43s32KCs=dQWKp+D7S2pazBjA@mail.gmail.com> <599CEBACD49B4144A61212D837EE3C0F144604D355@MX34A.corp.emc.com>
Date Mon, 21 Nov 2011 17:28:55 +1100
Subject Re: ProgressBar - Python and Powershell
From Alec Taylor <alec.taylor6@gmail.com>
To Nikunj.Badjatya@emc.com
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2887.1321856938.27778.python-list@python.org> (permalink)
Lines 118
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1321856938 news.xs4all.nl 6971 [2001:888:2000:d::a6]:35402
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:15985

Show key headers only | View raw


So you're executing Powershell commands into Virtual Machines?

Add this into the installer (probably WiX is your best bet)

On Mon, Nov 21, 2011 at 3:40 AM,  <Nikunj.Badjatya@emc.com> wrote:
> Thanks for reply.
> Python and Powershell are required because the installer would deal in virtual machines ( VMware environment ).
> Some prechecks and postconfig are required in both VMware and Windows environment. For dealing with VMware environment powershell has the best bonding. For windows I am  using Python.
>
> I am new to this field and do not know if there is an alternative available.! Can you please suggest an alternative to Powershell in VM environment. ?
>
> The current look of the installer is completely command line based.
>
>
> -----Original Message-----
> From: Alec Taylor [mailto:alec.taylor6@gmail.com]
> Sent: Sunday, November 20, 2011 7:22 PM
> To: Badjatya, Nikunj
> Cc: python-list@python.org
> Subject: Re: ProgressBar - Python and Powershell
>
> Why are you writing an installer in Python and Powershell?
>
> Just write an installer in WiX, NSIS or Inno like the rest of the sane world.
>
> Alternatively take a look at MakeMSI or the script python uses to
> generate there .MSI.
>
> Anything else is WAY too non-standard to consider.
>
> On Mon, Nov 21, 2011 at 12:01 AM,  <Nikunj.Badjatya@emc.com> wrote:
>> Can anyone throw some light on this please ! ?
>>
>>
>>
>>
>>
>> From: python-list-bounces+nikunj.badjatya=emc.com@python.org
>> [mailto:python-list-bounces+nikunj.badjatya=emc.com@python.org] On Behalf Of
>> Nikunj.Badjatya@emc.com
>> Sent: Thursday, November 17, 2011 4:10 PM
>> To: python-list@python.org
>> Subject: ProgressBar - Python and Powershell
>>
>>
>>
>> Hi All,
>>
>>
>>
>> I am using Python 2.7, windows Env.
>>
>> I have an Installer written in Python(45%) and Powershell(55%) which is used
>> to install Virtual Machines at specific locations. It is single threaded.
>>
>> I am trying to implement a ProgressBar  for this installer. So that the user
>> will come to know the progress of the installation.
>>
>> I am using pypi progressbar module.
>>
>> The top script is in python which inturns calls powershell scripts using
>> subprocess.call() and proceeds with the installation.
>>
>>
>>
>> I am taking a shared file between python and powershell, so that diff
>> functions can update their %age completion level in to the file. Ex. Func1()
>> updates it to 5%,  func2() will add its own 5% to it.. and so on.
>>
>> At the start of the (main.py) script I am creating a thread whose sole
>> purpose would be to keep "READ" a temp file for a new entry in it.
>>
>> Based on this entry I can have my thread update the progressbar on the
>> console.
>>
>>
>>
>> My questions are:
>>
>> 1.       Can I have a better shared mechanism between python and
>> powershell.?  As I am using a file here. Reading + writing in python and
>> writing only in powershell.  !
>>
>> 2.       Does this thread mechanism work.? I am yet to implement and test
>> it.! :P What can be the possible shortfalls.?
>>
>>
>>
>>
>> Thanks
>>
>>
>>
>> Nikunj
>>
>> Bangalore - India
>>
>>
>>
>>
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: ProgressBar - Python and Powershell Alec Taylor <alec.taylor6@gmail.com> - 2011-11-21 17:28 +1100

csiph-web