[Tutor] Query: How to fetch data to Python from InfluxDB database?

2018-04-23 Thread Hemendra Singh Rathod
Hello Tutor Members,


I want to import the big Data’s from InfluxDB database. Could anyone please
guide me on how can I do it in Python 3.x?

Please help me on this. Thank you in advance.

Regards
Hemendra Rathod
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Query: How to fetch data to Python from InfluxDB database?

2018-04-23 Thread Mats Wichmann
On 04/23/2018 01:00 AM, Hemendra Singh Rathod wrote:
> Hello Tutor Members,
> 
> 
> I want to import the big Data’s from InfluxDB database. Could anyone please
> guide me on how can I do it in Python 3.x?
> 
> Please help me on this. Thank you in advance.

There is a project listed on PyPi which might help:

https://pypi.org/project/influxdb/


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Python 3.6.5 for MAC

2018-04-23 Thread Giorgio De Angelis
Hello guys,

I have a problem with my MacBook Pro ’13, version 10.13.4, because when I try 
to open the shell it says that it couldn’t make any connection because it 
wasn’t able to make a subprocess. Can you help me?

Giorgio
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Python 3.6.5 for MAC

2018-04-23 Thread William Ray Wing

> On Apr 23, 2018, at 6:29 AM, Giorgio De Angelis  
> wrote:
> 
> Hello guys,
> 
> I have a problem with my MacBook Pro ’13, version 10.13.4, because when I try 
> to open the shell it says that it couldn’t make any connection because it 
> wasn’t able to make a subprocess. Can you help me?
> 

Sorry, do you mean open a shell in the Terminal application, or open a shell in 
a python subprocess?

Bill

> Giorgio
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Python 3.6.5 for MAC

2018-04-23 Thread Mats Wichmann
On 04/23/2018 09:37 AM, William Ray Wing wrote:
> 
>> On Apr 23, 2018, at 6:29 AM, Giorgio De Angelis  
>> wrote:
>>
>> Hello guys,
>>
>> I have a problem with my MacBook Pro ’13, version 10.13.4, because when I 
>> try to open the shell it says that it couldn’t make any connection because 
>> it wasn’t able to make a subprocess. Can you help me?
>>
> 
> Sorry, do you mean open a shell in the Terminal application, or open a shell 
> in a python subprocess?
> 
> Bill
> 

Indeed, more details, please.

This *sounds* like the old IDLE problem with Tcl/Tk on the Mac, Python
itself shouldn't need to create a subprocess in the way that causes a
problem.

Did you read the "macOS users" section of

https://www.python.org/downloads/release/python-365/

and did you, in fact, get the second installer listed, which is supposed
to get around that particular problem?


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] about tree input

2018-04-23 Thread 劉權陞
 I still have no idea about how to write the code. Can you make a
demonstration?

2018-04-23 0:42 GMT+08:00 Zachary Ware :

> Basically what you want to do here is give Tree a local name (d), loop
> through T reassigning d to d[k_from_T], and then d[k] = v after the loop. T
> can be arbitraily long, and Tree can actually be and contain any indexable
> type.
>
> If this pointer isn't enough to send you in the right direction, I'll try
> to actually write an example when I have a real keyboard in front of me :)
>
> --
> Zach
> (Top-posted in HTML from a phone)
>
> On Sun, Apr 22, 2018, 08:54 劉權陞 <01patrick...@gmail.com> wrote:
>
>> To deposit a nodes in the tree (adding a new node), for example: put 3: {}
>> in the Tree branch at branch tuple (2, 4, 1, 5) .
>> If don't use :
>> def f(T,k,v):
>> m=len(T)
>> if m==0:
>> Tree[k]=v
>> elif m==1:
>> Tree[T[0]][k]=v
>> elif m==2:
>> Tree[T[0]][T[1]][k]=v
>> elif m==3:
>> Tree[T[0]][T[1]][T[2]][k]=v
>> elif m==4:
>> Tree[T[0]][T[1]][T[2]][T[3]][k]=v
>> elif m==5:
>> Tree[T[0]][T[1]][T[2]][T[3]][T[4]][k]=v
>> ...
>>
>> f( (2, 4, 1, 5),3,{})
>>
>> Is there a dynamic approach(the node tuple can be any length)
>> I want to create a function like f(branch_tuple,key,value)
>>
>> Tree = {1: {2: {3: {...}, 4: {...}, ...}, 3: {2: {...}, 4: {...}, ...}, 4:
>> {2: {...}, 3: {...}, ...}, ...}, 2: {1: {...}, 3: {...}, 4: {...}, ...},
>> 3:
>> {...}, 4: {...}, ...}
>>
>> *(... indicates omission)
>> * (Node tuple represent one of the branches)
>> ___
>> Tutor maillist  -  Tutor@python.org
>> To unsubscribe or change subscription options:
>> https://mail.python.org/mailman/listinfo/tutor
>>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] about tree input

2018-04-23 Thread Zachary Ware
On Mon, Apr 23, 2018 at 11:28 AM, 劉權陞 <01patrick...@gmail.com> wrote:
>  I still have no idea about how to write the code. Can you make a
> demonstration?

Something like this:

def set(tree, path, key, value):
for p in path:
tree = tree[p]
tree[key] = value

-- 
Zach
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Python 3.6.5 for MAC

2018-04-23 Thread Kentaro Hori
Hi

can you take a screenshot after rebooting and trying one aging?

2018-04-23 19:29 GMT+09:00 Giorgio De Angelis :

> Hello guys,
>
> I have a problem with my MacBook Pro ’13, version 10.13.4, because when I
> try to open the shell it says that it couldn’t make any connection because
> it wasn’t able to make a subprocess. Can you help me?
>
> Giorgio
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor