473,395 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

uuid generator

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
2 2822
>>>>> 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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tonio | last post by:
Hi i'm a italian student. I must create a virtual machine which call python script from Visual C++ program. My teacher tell me use swig fror make this work. I use Swig for import in Python...
8
by: Joe Wong | last post by:
Hi, I need to implement a unique number generator that 1 or more processes on same or different machines will make use of it. Is there any library / project available already for this? Thanks...
0
by: John Silver | last post by:
I need toi generate unique file names for a series of interface access processes. I have the code to perform this, using the data::UUID module. However, it fails on my machine, it seems that...
0
by: WebdoM | last post by:
Hallo there, I need to write a schema for my xml document. Some elements have an UUID attribute (f.i. uuid:25b22-e3e-3dfa-3024-b02a-3438b9050b59) How can I define them? Thanks a lot, -- -d
1
by: Matias Silva | last post by:
Does MySQL support GUID and UUID column types? Thanks, Matt
1
by: Raphael Jolivet | last post by:
Hello, I'm looking for a script to generate UUID : Universal Unique Identifier, following RFC4122. Do you know something like that in Javascript ? Thanks. Raphael
5
by: phillip.s.powell | last post by:
mysql> update student set uuid = concat(UUID(), '_', 'asdfasdfasdfasdf') where uuid is null or uuid = '' limit 1; ERROR 1270 (HY000): Illegal mix of collations (utf8_general_ci,COERCIBLE),...
2
by: sudhanshu.arora | last post by:
Hi! Can somebody point me to open source code for uuid generation in C++. Or to a bare-minimun library which provides me with this facility. Also, can someone elaborate on the strategy used by...
2
by: Anonymous | last post by:
I'm trying to change the uuid of an Activex control so that my modified version can coexist on the same system as the official control. I did what I thought was obvious: 1). Generated new GUIDS...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.