adss 1.31__py3-none-any.whl → 1.32__py3-none-any.whl

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/client.py CHANGED
@@ -516,7 +516,7 @@ class ADSSClient:
516
516
  """
517
517
  return self.images.cone_search(collection_id, ra, dec, radius, filter_name, limit, **kwargs)
518
518
 
519
- def download_image(self, file_id: int, output_path: Optional[str] = None, **kwargs) -> Union[bytes, str]:
519
+ def download_file(self, file_id: int, output_path: Optional[str] = None, **kwargs) -> Union[bytes, str]:
520
520
  """
521
521
  Download an image file.
522
522
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adss
3
- Version: 1.31
3
+ Version: 1.32
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
@@ -178,3 +178,40 @@ cl.get_image_collections()
178
178
  ]
179
179
  ```
180
180
 
181
+ And then to list the files in a collection:
182
+
183
+ ```python
184
+ cl.list_files(1) ## pass the collection ID
185
+ ```
186
+
187
+ ```
188
+ [
189
+ {
190
+ 'filename': 'SPLUS-s17s23_F515_swpweight.fz',
191
+ 'full_path': '/dados/splus/SPLUS-s17s23 SPLUS-s17s23_F515_swpweight.fz',
192
+ 'file_type': 'fz',
193
+ 'ra_center': 316.45153076969416,
194
+ 'dec_center': -21.580560694390957,
195
+ 'width': 11000,
196
+ 'height': 11000,
197
+ 'pixel_scale': 0.55000000000008,
198
+ 'hdus': 2,
199
+ 'data_hdu': 1,
200
+ 'object_name': 'SPLUS-s17s23',
201
+ 'filter': 'F515',
202
+ 'instrument': 'T80Cam',
203
+ 'telescope': 'T80',
204
+ 'date_obs': None,
205
+ 'file_size': 51353280,
206
+ 'id': 28,
207
+ 'collection_id': 1,
208
+ 'created_at': '2025-04-22T15:35:05.487208',
209
+ 'updated_at': '2025-05-08T19:53:09.541437'},
210
+ },...]
211
+ ```
212
+
213
+ You can then download a file by its filename:
214
+
215
+ ```python
216
+ cl.images.download_file("SPLUS-s17s23_F515_swpweight.fz", download_path=".")
217
+ ```
@@ -1,6 +1,6 @@
1
1
  adss/__init__.py,sha256=3FpHFL3Pk5BvETwd70P2QqYvDq799Cu2AGxGxudGAAE,1020
2
2
  adss/auth.py,sha256=4eZ5VjqyzF-gXNywjGdjjphd5im3wOFLf5tihKNfbdw,5320
3
- adss/client.py,sha256=TIGXsYos9Tt8zSiSwYDdHoPDjiurHoQvH1RVUPeuCK8,29896
3
+ adss/client.py,sha256=oJ0O4ZUdmycprpKXBXEpPWiu4T4Jf79uPsXzOpuEG-w,29895
4
4
  adss/exceptions.py,sha256=YeN-xRHvlSmwyS8ni2jOEhhgZK9J1jsG11pOedy3Gfg,1482
5
5
  adss/utils.py,sha256=KeQUtTCcye3W07oHpBnwS7g3gG-RqwWMlaE7UgDWwsU,3557
6
6
  adss/endpoints/__init__.py,sha256=Pr29901fT8ClCS2GasTjTiBNyn7DfVfxILpYDFsMvPA,488
@@ -13,9 +13,9 @@ adss/models/__init__.py,sha256=ADWVaGy4dkpEMH3iS_6EnRSBlEgoM5Vy9zORQr-UG6w,404
13
13
  adss/models/metadata.py,sha256=6fdH_0BenVRmeXkkKbsG2B68O-N2FXTTRgxsEhAHRoU,4058
14
14
  adss/models/query.py,sha256=V1H9UAv9wORAr85aajeY7H1zaxyfNtKuEoBtBU66DbM,4820
15
15
  adss/models/user.py,sha256=5qVT5qOktokmVLkGszPGCTZWv0wC-7aBMvJ8EeBOqdw,3493
16
- adss-1.31.dist-info/licenses/LICENSE,sha256=yPw116pnd1J4TuMPnvm6I_irZUyC30EoBZ4BtWFAL7I,1557
16
+ adss-1.32.dist-info/licenses/LICENSE,sha256=yPw116pnd1J4TuMPnvm6I_irZUyC30EoBZ4BtWFAL7I,1557
17
17
  dev/fetch_idr6.py,sha256=b6FrHPr-ZLaDup_wLOaQWP2fK254Sr3YNHbTxuUt088,12788
18
- adss-1.31.dist-info/METADATA,sha256=h0AEToEPxgL_4FKFjq1Tcf9d_LVhVfWwD1fhF4_DwAA,5656
19
- adss-1.31.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
- adss-1.31.dist-info/top_level.txt,sha256=NT2zObOOiTWXc0yowpEjT6BiiI1e7WXlXd0ZoK7T5hk,9
21
- adss-1.31.dist-info/RECORD,,
18
+ adss-1.32.dist-info/METADATA,sha256=8vG9FdaLPeQuzwzHCyK_RdY-QSk2usBkKzd_YmFC5wU,6548
19
+ adss-1.32.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
+ adss-1.32.dist-info/top_level.txt,sha256=NT2zObOOiTWXc0yowpEjT6BiiI1e7WXlXd0ZoK7T5hk,9
21
+ adss-1.32.dist-info/RECORD,,
File without changes