adss 1.25__tar.gz → 1.26__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adss
3
- Version: 1.25
3
+ Version: 1.26
4
4
  Summary: Astronomical Data Smart System
5
5
  Author-email: Gustavo Schwarz <gustavo.b.schwarz@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/schwarzam/adss
@@ -60,6 +60,13 @@ class ADSSClient:
60
60
  self.stamp_images = StampImagesEndpoint(self.base_url, self.auth)
61
61
  self.trilogy_images = TrilogyImagesEndpoint(self.base_url, self.auth)
62
62
 
63
+ if not username:
64
+ username = input("Username: ").strip()
65
+ if not password:
66
+ # hashed password input for security
67
+ import getpass
68
+ password = getpass.getpass("Password: ").strip()
69
+
63
70
  # Authenticate if credentials provided
64
71
  if username and password:
65
72
  self.login(username, password, **kwargs)
@@ -405,7 +405,7 @@ class LuptonImagesEndpoint:
405
405
  pattern: Optional[str] = None,
406
406
  output_path: Optional[str] = None,
407
407
  **kwargs) -> Union[bytes, str]:
408
- url = f"{self.base_url}/adss/v1/images/lupton_images/collections/{collection_id}/rgb_by_coordinates"
408
+ url = f"{self.base_url}/adss/v1/images/collections/{collection_id}/rgb_by_coordinates"
409
409
  try:
410
410
  headers = self.auth_manager._get_auth_headers()
411
411
  except:
@@ -454,7 +454,7 @@ class LuptonImagesEndpoint:
454
454
  pattern: Optional[str] = None,
455
455
  output_path: Optional[str] = None,
456
456
  **kwargs) -> Union[bytes, str]:
457
- url = f"{self.base_url}/adss/v1/images/lupton_images/collections/{collection_id}/rgb_by_object"
457
+ url = f"{self.base_url}/adss/v1/images/collections/{collection_id}/rgb_by_object"
458
458
  try:
459
459
  headers = self.auth_manager._get_auth_headers()
460
460
  except:
@@ -679,7 +679,7 @@ class StampImagesEndpoint:
679
679
  pattern: Optional[str] = None,
680
680
  output_path: Optional[str] = None,
681
681
  **kwargs) -> Union[bytes, str]:
682
- url = f"{self.base_url}/adss/v1/images/stamp_images/collections/{collection_id}/stamp_by_object"
682
+ url = f"{self.base_url}/adss/v1/images/collections/{collection_id}/stamp_by_object"
683
683
  try:
684
684
  headers = self.auth_manager._get_auth_headers()
685
685
  except:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adss
3
- Version: 1.25
3
+ Version: 1.26
4
4
  Summary: Astronomical Data Smart System
5
5
  Author-email: Gustavo Schwarz <gustavo.b.schwarz@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/schwarzam/adss
@@ -1,4 +1,3 @@
1
1
  adss
2
2
  dev
3
3
  dist
4
- docs
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "adss"
7
- version = "1.25"
7
+ version = "1.26"
8
8
  description = "Astronomical Data Smart System"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Gustavo Schwarz", email = "gustavo.b.schwarz@gmail.com" }]
@@ -24,4 +24,5 @@ Homepage = "https://github.com/schwarzam/adss"
24
24
  where = ["."]
25
25
 
26
26
  # python -m build
27
- # python3 -m twine upload dist/*
27
+ # twine check dist/*
28
+ # twine upload dist/*
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes