By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,944 Members | 1,819 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,944 IT Pros & Developers. It's quick & easy.

uuid generator

P: n/a
Hello,
I need to read newly generated uuid from Python
but I am not sure if
http://aspn.activestate.com/ASPN/Coo.../Recipe/163604

is the right code

Maybe there is already the library in Python 2.3

Maybe I can use the one generated with
uuidgen
under cygwin
but this would not be portable

In this last case I would like to know how can I capture the output of
uuidgen
so I can use it in my script

Thank you if you know the answer !

Cheers,
Marcello

Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
>>>>> Marcello Pietrobon <te*****@attglobal.net> (MP) wrote:

MP> Hello,
MP> I need to read newly generated uuid from Python
MP> but I am not sure if
MP> http://aspn.activestate.com/ASPN/Coo.../Recipe/163604

MP> is the right code

There's another one at http://aspn.activestate.com/ASPN/Coo.../Recipe/213761
--
Piet van Oostrum <pi**@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.***********@hccnet.nl
Jul 18 '05 #2

P: n/a
Piet van Oostrum <pi**@cs.uu.nl> writes:
>> Marcello Pietrobon <te*****@attglobal.net> (MP) wrote:


MP> Hello,
MP> I need to read newly generated uuid from Python
MP> but I am not sure if
MP> http://aspn.activestate.com/ASPN/Coo.../Recipe/163604

MP> is the right code

There's another one at http://aspn.activestate.com/ASPN/Coo.../Recipe/213761


I posted ctypes code which wraps libuuid.so on linux, a while ago.
And someone else in the same thread posted a C wrapper.

<http://groups.google.com/groups?selm=isv9eomw.fsf%40python.net>

Thomas
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.