def generate_ann_id(): """Generate a random annotation identifier in the encoded form used by the API.""" return _get_urlsafe_from_hex(str(uuid4()))
def generate_ann_id(): """ Generate a random annotation identifier in the encoded form used by the API. """ return _get_urlsafe_from_hex(str(uuid4()))
def to_urlsafe(annotation_id): """Convert an annotation ID into its URL-safe representation.""" click.echo(_get_urlsafe_from_hex(UUID(annotation_id).hex))
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))