Skip to content

Commit

Permalink
Use default SQC URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jedinym committed May 19, 2024
1 parent bd8a168 commit de2b1e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
19 changes: 0 additions & 19 deletions examples/simple.py

This file was deleted.

Empty file removed examples/test.mmcif
Empty file.
12 changes: 9 additions & 3 deletions sqclib/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,30 @@ class SQCClient:
Client used for communication with the SQC server.
Args:
url (str): URL of the minio server
access_key (str): Access key provided by SQC administrators.
secret_key (str): Secret key provided by SQC administrators.
url (str, optional): URL of the minio server. Public MetaCentrum instance by default.
secure (bool, optional): Use HTTPS for communication.
`True` by default.
Examples:
>>> client = SQCClient(
'https://sqc-minio.dyn.cloud.e-infra.cz',
'access_key',
'secret_key',
url='https://sqc-minio.dyn.cloud.e-infra.cz',
secure=True,
)
>>> client.validate('./struct.mmcif')
{'results': 'ok'}
"""

def __init__(self, url: str, access_key: str, secret_key: str, secure=True) -> None:
def __init__(
self,
access_key: str,
secret_key: str,
url: str = "https://sqc-minio.dyn.cloud.e-infra.cz",
secure=True,
) -> None:
self._minio = minio.Minio(
url,
access_key=access_key,
Expand Down

0 comments on commit de2b1e3

Please sign in to comment.