uuid generator

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcello Pietrobon

    uuid generator

    Hello,
    I need to read newly generated uuid from Python
    but I am not sure if


    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



  • Piet van Oostrum

    #2
    Re: uuid generator

    >>>>> Marcello Pietrobon <teiffel@attglo bal.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 <piet@cs.uu.n l>
    URL: http://www.cs.uu.nl/~piet [PGP]
    Private email: P.van.Oostrum@h ccnet.nl

    Comment

    • Thomas Heller

      #3
      Re: uuid generator

      Piet van Oostrum <piet@cs.uu.n l> writes:
      [color=blue][color=green][color=darkred]
      >>>>>> Marcello Pietrobon <teiffel@attglo bal.net> (MP) wrote:[/color][/color]
      >
      > 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[/color]

      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.c om/groups?selm=isv 9eomw.fsf%40pyt hon.net>

      Thomas


      Comment

      Working...