示例#1
0
def generate_ann_id():
    """Generate a random annotation identifier in the encoded form used by the API."""
    return _get_urlsafe_from_hex(str(uuid4()))
示例#2
0
def generate_ann_id():
    """
    Generate a random annotation identifier in the encoded form used by the API.
    """
    return _get_urlsafe_from_hex(str(uuid4()))
示例#3
0
def to_urlsafe(annotation_id):
    """Convert an annotation ID into its URL-safe representation."""
    click.echo(_get_urlsafe_from_hex(UUID(annotation_id).hex))
示例#4
0
def to_urlsafe(annotation_id):  # pylint: disable=redefined-outer-name
    """Convert an annotation ID into its URL-safe representation."""
    click.echo(_get_urlsafe_from_hex(UUID(annotation_id).hex))