diff --git a/recipes/sync_recipes.py b/recipes/sync_recipes.py index e6d6a11e..c5ca7407 100644 --- a/recipes/sync_recipes.py +++ b/recipes/sync_recipes.py @@ -8,11 +8,10 @@ @click.group() @click.option('--access-token', help='Manually provide a SolveBio Access Token') @click.option('--api-host', help='Override the default SolveBio API host') -@click.option('--api-key', help='Manually provide a SolveBio API key') @click.pass_context -def sync_recipes(ctx, api_key=None, access_token=None, api_host=None): +def sync_recipes(ctx, access_token=None, api_host=None): - sb.login(api_key=api_key, access_token=access_token, api_host=api_host, + sb.login(access_token=access_token, api_host=api_host, version=__version__, name="SolveBio Recipes") user = sb.User.retrieve() diff --git a/solvebio/__init__.py b/solvebio/__init__.py index bc6b5d68..de6cd0f1 100644 --- a/solvebio/__init__.py +++ b/solvebio/__init__.py @@ -168,7 +168,6 @@ def print_deprecation_notice(): def login( api_host: str = None, - api_key: str = None, access_token: str = None, name: str = None, version: str = None, @@ -187,7 +186,6 @@ def login( :param api_host: the QuartzBio EDP instance's URL to access. :param access_token: your user's access token, which you can generate at the EDP website (user menu > `Personal Access Tokens`) - :param api_key: Your API key. You can use this instead of providing an access token :param name: name :param version: version @@ -197,7 +195,6 @@ def login( import quartzbio quartzbio.login( api_host="https://solvebio.api.az.aws.quartz.bio", - api_key=YOUR_API_KEY ) """ token_type: Literal["Bearer", "Token"] = None @@ -206,9 +203,6 @@ def login( if access_token: token_type = "Bearer" token = access_token - elif api_key: - token_type = "Token" - token = api_key if api_host or token or debug: client.set_credentials( diff --git a/solvebio/cli/main.py b/solvebio/cli/main.py index 5f136d79..37df4f19 100644 --- a/solvebio/cli/main.py +++ b/solvebio/cli/main.py @@ -470,7 +470,6 @@ def __init__(self, *args, **kwargs): help="Override the default SolveBio API host", type=self.api_host_url, ) - self.add_argument("--api-key", help="Manually provide a SolveBio API key") self.add_argument( "--access-token", help="Manually provide a SolveBio OAuth2 access token" ) @@ -534,7 +533,6 @@ def main(): solvebio.login( api_host=args.api_host, - api_key=args.api_key, access_token=args.access_token, )