[Tutor] python's database

2009-08-15 Thread davidwilson
Hello,
I seem to remember that python had a native database, can someone remind me 
which this was.
Dave
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] python's database

2009-08-15 Thread Dave Angel

davidwil...@safe-mail.net wrote:

Hello,
I seem to remember that python had a native database, can someone remind me 
which this was.
Dave

  

Check out module  sqlite3

http://docs.python.org/library/sqlite3.html

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] python's database

2009-08-15 Thread Alan Gauld


 wrote

I seem to remember that python had a native database, 
can someone remind me which this was.


Python doesn't have a native database per se but it supports 
access to many third party databases via its DBAPI. It also 
supports the dbm file format which is the underlying structure 
of many more complex databases. The shelve module can 
be used as a very primitive dictionary like database if you 
only need to persist objects


However, the standard library includes sqlite which is a basic SQL 
database which can be based on a single file or held in memory.

That may be what you were thinking of?

HTH,


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Telnet using Python!!

2009-08-15 Thread Mohannad Mohammad


Hello everybody,

I want to connect from my Windows server to Unix server using Telnet by Python 
code. To run some commands and save the result in a text file.
I read telnetlib documentation and read many examples, but I did not 
understand!!

I hope to read an explanation from anyone in the group. step by step please!

Thanks for your help .


Second question, I tried to connect remotely using SSH (paramiko) and I 
understand it, my point is: how to execute commands and read the results using 
SSHClient class [ I used Transport class only but the session is closed after 
the first command ]
bye 

_
Windows Live Messenger: Celebrate 10 amazing years with free winks and 
emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Telnet using Python!!

2009-08-15 Thread worminater
I'd probably look into setting up an XML RPC server on the linux host. 

Thanks,
Chris
Sent via BlackBerry from T-Mobile

-Original Message-
From: Mohannad Mohammad 

Date: Sat, 15 Aug 2009 15:07:23 
To: 
Subject: [Tutor] Telnet using Python!!


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Telnet using Python!!

2009-08-15 Thread Emile van Sebille

On 8/15/2009 8:07 AM Mohannad Mohammad said...


Hello everybody,

I want to connect from my Windows server to Unix server using Telnet by 
Python code. To run some commands and save the result in a text file.
I read *telnetlib* documentation and read many examples, but I did not 
understand!!





Have you worked through the example from the documentation at the bottom 
here:


http://docs.python.org/library/telnetlib.html

And there's more here: http://code.activestate.com/recipes/52228/

Post examples of the specific code and errors that are giving you trouble.


Emile

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor