예제 #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))