Re: What's the latest best practice on Python project directory layouts?

2019-06-14 Thread Cameron Simpson
On 14Jun2019 09:23, Malcolm Greene wrote: I have a collection of command line scripts that share a collection of common modules. This code collection is for internal use and will run under a single version of Python 3.6+ and a single OS. My understanding of best practice is to organize this c

Re: How control a GUI for an unrelated application from a Python script?

2019-06-14 Thread Christian Seberino
On Friday, June 14, 2019 at 1:42:17 PM UTC-5, Rob Gaddi wrote: > Condolences. TI is a world-leader in giving every eval board its own > complicated, proprietary digital interface, then not documenting it > because "You can just use the provided software" that hasn't been > updated since 2001 an

Re: How control a GUI for an unrelated application from a Python script?

2019-06-14 Thread Rob Gaddi
On 6/14/19 11:14 AM, Christian Seberino wrote: Out of curiosity, what hardware? Texas Instruments ADS1675REF card Condolences. TI is a world-leader in giving every eval board its own complicated, proprietary digital interface, then not documenting it because "You can just use the provid

Re: How control a GUI for an unrelated application from a Python script?

2019-06-14 Thread Christian Seberino
> Out of curiosity, what hardware? Texas Instruments ADS1675REF card -- https://mail.python.org/mailman/listinfo/python-list

Re: Dataframe with two groups of cols. [RESOLVED]

2019-06-14 Thread Paulo da Silva
Às 18:31 de 14/06/19, Paulo da Silva escreveu: > Às 04:56 de 14/06/19, Paulo da Silva escreveu: ... > > After digging a lot :-) , and for those who may be interested, I found > one way: > > In [21]: d1 = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, > 9]]),columns=['C1', 'C2', 'C3']) > >

Re: Dataframe with two groups of cols. [RESOLVED]

2019-06-14 Thread Paulo da Silva
Às 04:56 de 14/06/19, Paulo da Silva escreveu: > Hi! > > How do I create a pandas dataframe with two (or more) groups of cols.? > > Ex.: > > G1 G2 > C1 C2 C3 C1 C2 C3 > Rows of values ... > > I then should be able to access for example > df['G2']['C3'][] > > > Thanks. > After digging

Re: How control a GUI for an unrelated application from a Python script?

2019-06-14 Thread Rob Gaddi
On 6/14/19 8:49 AM, Christian Seberino wrote: Thanks for all the help. I'll definitely try to bypass the GUI first if possible. This is on Windows 7 so maybe AutoIt will do the trick if can't avoid the GUI. Thanks again everyone. Out of curiosity, what hardware? -- Rob Gaddi, Highland Te

Re: How control a GUI for an unrelated application from a Python script?

2019-06-14 Thread Christian Seberino
Thanks for all the help. I'll definitely try to bypass the GUI first if possible. This is on Windows 7 so maybe AutoIt will do the trick if can't avoid the GUI. Thanks again everyone. -- https://mail.python.org/mailman/listinfo/python-list

What's the latest best practice on Python project directory layouts?

2019-06-14 Thread Malcolm Greene
I have a collection of command line scripts that share a collection of common modules. This code collection is for internal use and will run under a single version of Python 3.6+ and a single OS. My understanding of best practice is to organize this collection of Python files into a folder struc

Re: can not use pycharm

2019-06-14 Thread Informatico de Neurodesarrollo
El 10/06/19 a las 13:28, aris escribió: Hello,this is my first time trying to learn coding and programming and I wanted to start with python.Though,when I download pycharm, I go to configure>settings>project interpreter and i can not put a project interpreter( I have download python version

Re: pysftp / paramiko problem

2019-06-14 Thread Robin Becker
... I tried an experiment with a remote server that I control and pysftp works perfectly there. A difference that I know of is that this server is using ubuntu 18.04 and we don't use passwords, but a private_key. Also this server is using the openssh internal sftp. I believe the failing se

Re: pysftp / paramiko problem

2019-06-14 Thread Robin Becker
On 13/06/2019 18:23, MRAB wrote: . What does: sftp.normalize('.') return? It returns '/'. sftp.chdir('') and that also fails in paramiko as it seems to use CMD_REALPATH to do that. File "tsftp.py", line 7, in main print(sftp.chdir('')) File "/home/rptlab/tmp/tpy3

Re: can not use pycharm

2019-06-14 Thread Johann Spies
On Mon, 10 Jun 2019 at 19:46, aris wrote: > > > Hello,this is my first time trying to learn coding and programming and I > wanted to start with python.Though,when I download pycharm, I go to > configure>settings>project interpreter and i can not put a project > interpreter( I have download python

Re: How control a GUI for an unrelated application from a Python script?

2019-06-14 Thread Chris Hills
On 6/14/2019 12:49 AM, Christian Seberino wrote: I have a third party GUI that manages some hardware. I want to control the hardware from a Python script. This seems to mean I need to somehow have Python code that imitates a human doing the necessary actions on the GUI (selecting menu o

Re: How control a GUI for an unrelated application from a Python script?

2019-06-14 Thread Thomas Jollans
On 14/06/2019 01.49, Christian Seberino wrote: > I have a third party GUI that manages some hardware. > > I want to control the hardware from a Python script. Forget about the GUI, see if you can control your device without it. See how well the device is documented. Maybe there's an API? If not f

EuroPython 2019: Warning - Spoiler alert!

2019-06-14 Thread M.-A. Lemburg
Usually, we try to have something as surprise for our attendees every year. However, for this year’s conference, we have decided to give our attendees something to play with and this needs a little more preparation than a bottle or a beach towel. Drum roll… crowd screaming… and here it is: we’re p