ahawker/ulid

View on GitHub
ulid/__init__.py

Summary

Maintainability
A
0 mins
Test Coverage
"""
    ulid
    ~~~~

    Universally Unique Lexicographically Sortable Identifier

    :copyright: (c) 2017 Andrew Hawker.
    :license: Apache 2.0, see LICENSE for more details.
"""
from .api import default, microsecond, monotonic

create = default.create
from_bytes = default.from_bytes
from_int = default.from_int
from_randomness = default.from_randomness
from_str = default.from_str
from_timestamp = default.from_timestamp
from_uuid = default.from_uuid
new = default.new
parse = default.parse

MIN_TIMESTAMP = default.MIN_TIMESTAMP
MAX_TIMESTAMP = default.MAX_TIMESTAMP
MIN_RANDOMNESS = default.MIN_RANDOMNESS
MAX_RANDOMNESS = default.MAX_RANDOMNESS
MIN_ULID = default.MIN_ULID
MAX_ULID = default.MAX_ULID

Timestamp = default.Timestamp
Randomness = default.Randomness
ULID = default.ULID

__all__ = default.__all__

__version__ = '1.1.0'