Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer relative imports within the module #46

Merged
merged 1 commit into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ More detailed documentation can be found [here](https://docs.qfield.org/referenc
## Module usage

```python
from qfieldcloud_sdk import sdk
from import sdk

client = sdk.Client(url="https://app.qfield.cloud/api/v1/")
client.login(
Expand Down
2 changes: 1 addition & 1 deletion qfieldcloud_sdk/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from qfieldcloud_sdk.cli import cli
from .cli import cli

if __name__ == "__main__":
cli()
4 changes: 2 additions & 2 deletions qfieldcloud_sdk/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import click

from qfieldcloud_sdk import sdk
from qfieldcloud_sdk.utils import log, print_json
from . import sdk
from .utils import log, print_json

QFIELDCLOUD_DEFAULT_URL = "https://app.qfield.cloud/api/v1/"

Expand Down
4 changes: 2 additions & 2 deletions qfieldcloud_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import urllib3
from requests.adapters import HTTPAdapter, Retry

from qfieldcloud_sdk.interfaces import QfcException, QfcRequest, QfcRequestException
from qfieldcloud_sdk.utils import get_numeric_params, log
from .interfaces import QfcException, QfcRequest, QfcRequestException
from .utils import get_numeric_params, log

logger = logging.getLogger(__file__)

Expand Down