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

Experimental new config setup #422

Merged
merged 11 commits into from
Mar 20, 2023
Merged

Conversation

zigaLuksic
Copy link
Collaborator

@zigaLuksic zigaLuksic commented Mar 16, 2023

Changes:

  • No more global cache!
  • Config is moved to a standardized user appdata location (~/.config/sentinelhub/config.json for Linux users)
  • Credentials are masked by default, applies only to str and repr (not sure why that was not the case...)
  • lots of refactoring

a separate MR shall introduce user profiles to remedy the loss of 'managing-different-credentials-through-python-envs'

@zigaLuksic zigaLuksic requested a review from mlubej March 16, 2023 13:46
sentinelhub/config.py Outdated Show resolved Hide resolved
@mlubej
Copy link
Contributor

mlubej commented Mar 16, 2023

You can also remove the last two lines in .gitignore

@zigaLuksic
Copy link
Collaborator Author

You can also remove the last two lines in .gitignore

Kept them intentionally for now. We can remove it in the future, but since it's harmless I'd keep it as another layer of security until the new config has been accepted as the correct solution.

sentinelhub/config.py Outdated Show resolved Hide resolved
sentinelhub/config.py Outdated Show resolved Hide resolved
sentinelhub/config.py Outdated Show resolved Hide resolved
sentinelhub/config.py Show resolved Hide resolved
sentinelhub/config.py Show resolved Hide resolved
zigaLuksic and others added 3 commits March 17, 2023 10:01
Co-authored-by: Matic Lubej <matic.lubej@sinergise.com>
…ub/sentinelhub-py into experimental-new-config-setup
@zigaLuksic
Copy link
Collaborator Author

Got worried for a second that the tests could cause issues, but the approach we used actually transfers over very nicely

tests/test_config.py Show resolved Hide resolved
@zigaLuksic zigaLuksic merged commit 2b3ecc9 into develop Mar 20, 2023
@zigaLuksic zigaLuksic deleted the experimental-new-config-setup branch March 20, 2023 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants