adss 1.25__tar.gz → 1.27__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.
- {adss-1.25 → adss-1.27}/PKG-INFO +1 -1
- {adss-1.25 → adss-1.27}/adss/client.py +7 -0
- {adss-1.25 → adss-1.27}/adss/endpoints/images.py +13 -13
- {adss-1.25 → adss-1.27}/adss.egg-info/PKG-INFO +1 -1
- {adss-1.25 → adss-1.27}/adss.egg-info/top_level.txt +0 -1
- {adss-1.25 → adss-1.27}/pyproject.toml +3 -2
- {adss-1.25 → adss-1.27}/LICENSE +0 -0
- {adss-1.25 → adss-1.27}/README.md +0 -0
- {adss-1.25 → adss-1.27}/adss/__init__.py +0 -0
- {adss-1.25 → adss-1.27}/adss/auth.py +0 -0
- {adss-1.25 → adss-1.27}/adss/endpoints/__init__.py +0 -0
- {adss-1.25 → adss-1.27}/adss/endpoints/admin.py +0 -0
- {adss-1.25 → adss-1.27}/adss/endpoints/metadata.py +0 -0
- {adss-1.25 → adss-1.27}/adss/endpoints/queries.py +0 -0
- {adss-1.25 → adss-1.27}/adss/endpoints/users.py +0 -0
- {adss-1.25 → adss-1.27}/adss/exceptions.py +0 -0
- {adss-1.25 → adss-1.27}/adss/models/__init__.py +0 -0
- {adss-1.25 → adss-1.27}/adss/models/metadata.py +0 -0
- {adss-1.25 → adss-1.27}/adss/models/query.py +0 -0
- {adss-1.25 → adss-1.27}/adss/models/user.py +0 -0
- {adss-1.25 → adss-1.27}/adss/utils.py +0 -0
- {adss-1.25 → adss-1.27}/adss.egg-info/SOURCES.txt +0 -0
- {adss-1.25 → adss-1.27}/adss.egg-info/dependency_links.txt +0 -0
- {adss-1.25 → adss-1.27}/adss.egg-info/requires.txt +0 -0
- {adss-1.25 → adss-1.27}/dev/fetch_idr6.py +0 -0
- {adss-1.25 → adss-1.27}/setup.cfg +0 -0
{adss-1.25 → adss-1.27}/PKG-INFO
RENAMED
@@ -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)
|
@@ -319,7 +319,7 @@ class LuptonImagesEndpoint:
|
|
319
319
|
if output_path:
|
320
320
|
with open(output_path, 'wb') as f:
|
321
321
|
f.write(resp.content)
|
322
|
-
return
|
322
|
+
return resp.content
|
323
323
|
return resp.content
|
324
324
|
|
325
325
|
except Exception as e:
|
@@ -392,7 +392,7 @@ class LuptonImagesEndpoint:
|
|
392
392
|
if output_path:
|
393
393
|
with open(output_path, 'wb') as f:
|
394
394
|
f.write(resp.content)
|
395
|
-
return
|
395
|
+
return resp.content
|
396
396
|
return resp.content
|
397
397
|
|
398
398
|
except Exception as e:
|
@@ -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/
|
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:
|
@@ -439,7 +439,7 @@ class LuptonImagesEndpoint:
|
|
439
439
|
if output_path:
|
440
440
|
with open(output_path, 'wb') as f:
|
441
441
|
f.write(resp.content)
|
442
|
-
return
|
442
|
+
return resp.content
|
443
443
|
return resp.content
|
444
444
|
|
445
445
|
except Exception as e:
|
@@ -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/
|
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:
|
@@ -494,7 +494,7 @@ class LuptonImagesEndpoint:
|
|
494
494
|
if output_path:
|
495
495
|
with open(output_path, 'wb') as f:
|
496
496
|
f.write(resp.content)
|
497
|
-
return
|
497
|
+
return resp.content
|
498
498
|
return resp.content
|
499
499
|
|
500
500
|
except Exception as e:
|
@@ -550,7 +550,7 @@ class StampImagesEndpoint:
|
|
550
550
|
if output_path:
|
551
551
|
with open(output_path, 'wb') as f:
|
552
552
|
f.write(resp.content)
|
553
|
-
return
|
553
|
+
return resp.content
|
554
554
|
return resp.content
|
555
555
|
|
556
556
|
except Exception as e:
|
@@ -615,7 +615,7 @@ class StampImagesEndpoint:
|
|
615
615
|
if output_path:
|
616
616
|
with open(output_path, 'wb') as f:
|
617
617
|
f.write(resp.content)
|
618
|
-
return
|
618
|
+
return resp.content
|
619
619
|
return resp.content
|
620
620
|
|
621
621
|
except Exception as e:
|
@@ -665,7 +665,7 @@ class StampImagesEndpoint:
|
|
665
665
|
if output_path:
|
666
666
|
with open(output_path, 'wb') as f:
|
667
667
|
f.write(resp.content)
|
668
|
-
return
|
668
|
+
return resp.content
|
669
669
|
return resp.content
|
670
670
|
|
671
671
|
except Exception as e:
|
@@ -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/
|
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:
|
@@ -717,7 +717,7 @@ class StampImagesEndpoint:
|
|
717
717
|
if output_path:
|
718
718
|
with open(output_path, 'wb') as f:
|
719
719
|
f.write(resp.content)
|
720
|
-
return
|
720
|
+
return resp.content
|
721
721
|
return resp.content
|
722
722
|
|
723
723
|
except Exception as e:
|
@@ -781,7 +781,7 @@ class TrilogyImagesEndpoint:
|
|
781
781
|
if output_path:
|
782
782
|
with open(output_path, 'wb') as f:
|
783
783
|
f.write(resp.content)
|
784
|
-
return
|
784
|
+
return resp.content
|
785
785
|
return resp.content
|
786
786
|
|
787
787
|
except Exception as e:
|
@@ -886,7 +886,7 @@ class TrilogyImagesEndpoint:
|
|
886
886
|
if output_path:
|
887
887
|
with open(output_path, 'wb') as f:
|
888
888
|
f.write(resp.content)
|
889
|
-
return
|
889
|
+
return resp.content
|
890
890
|
return resp.content
|
891
891
|
|
892
892
|
except Exception as e:
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "adss"
|
7
|
-
version = "1.
|
7
|
+
version = "1.27"
|
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
|
-
#
|
27
|
+
# twine check dist/*
|
28
|
+
# twine upload dist/*
|
{adss-1.25 → adss-1.27}/LICENSE
RENAMED
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
|
File without changes
|