Index of the util module
-
m
paste.script.util
...
-
m
logging_config
...
- Configuration functions for the logging package for Python. The core package
is based on PEP 282 and comments thereto in comp.lang.python, and influenced
by Apache's log4j system.
-
m
secret
...
- Create random secrets.
-
f
random_bytes
...
- Return a string of the given length. Uses os.urandom if it
can, or just pseudo-random numbers otherwise.
-
f
secret_string
...
- Returns a random string of the given length. The string
is a base64-encoded version of a set of random bytes, truncated
to the given length (and without any newlines).
-
m
uuid
...
- UUID (universally unique identifiers) as specified in RFC 4122.
-
a
NAMESPACE_DNS
...
-
a
NAMESPACE_OID
...
-
a
NAMESPACE_URL
...
-
a
NAMESPACE_X500
...
-
a
RESERVED_FUTURE
...
-
a
RESERVED_MICROSOFT
...
-
a
RESERVED_NCS
...
-
a
RFC_4122
...
-
C
UUID
...
- Instances of the UUID class represent UUIDs as specified in RFC 4122.
Converting a UUID to a string using str() produces a string in the form
"{12345678-1234-1234-1234-123456789abc}". The UUID constructor accepts
a similar string (braces and hyphens optional), or six integer arguments
(with 32-bit, 16-bit, 16-bit, 8-bit, 8-bit, and 48-bit values
respectively). UUID objects have the following attributes:
-
f
getaddr
...
- Get the hardware address as a 48-bit integer.
-
f
unixgetaddr
...
- Get the hardware address on a Unix machine.
-
f
uuid1
...
- Generate a UUID based on the time and hardware address.
-
f
uuid3
...
- Generate a UUID from the MD5 hash of a namespace UUID and a name.
-
f
uuid4
...
- Generate a random UUID.
-
f
uuid5
...
- Generate a UUID from the SHA-1 hash of a namespace UUID and a name.
-
f
wingetaddr
...
- Get the hardware address on a Windows machine.