adss 1.31__tar.gz → 1.32__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.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
+ ```
@@ -163,3 +163,40 @@ cl.get_image_collections()
163
163
  ]
164
164
  ```
165
165
 
166
+ And then to list the files in a collection:
167
+
168
+ ```python
169
+ cl.list_files(1) ## pass the collection ID
170
+ ```
171
+
172
+ ```
173
+ [
174
+ {
175
+ 'filename': 'SPLUS-s17s23_F515_swpweight.fz',
176
+ 'full_path': '/dados/splus/SPLUS-s17s23 SPLUS-s17s23_F515_swpweight.fz',
177
+ 'file_type': 'fz',
178
+ 'ra_center': 316.45153076969416,
179
+ 'dec_center': -21.580560694390957,
180
+ 'width': 11000,
181
+ 'height': 11000,
182
+ 'pixel_scale': 0.55000000000008,
183
+ 'hdus': 2,
184
+ 'data_hdu': 1,
185
+ 'object_name': 'SPLUS-s17s23',
186
+ 'filter': 'F515',
187
+ 'instrument': 'T80Cam',
188
+ 'telescope': 'T80',
189
+ 'date_obs': None,
190
+ 'file_size': 51353280,
191
+ 'id': 28,
192
+ 'collection_id': 1,
193
+ 'created_at': '2025-04-22T15:35:05.487208',
194
+ 'updated_at': '2025-05-08T19:53:09.541437'},
195
+ },...]
196
+ ```
197
+
198
+ You can then download a file by its filename:
199
+
200
+ ```python
201
+ cl.images.download_file("SPLUS-s17s23_F515_swpweight.fz", download_path=".")
202
+ ```
@@ -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
+ ```
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "adss"
7
- version = "1.31"
7
+ version = "1.32"
8
8
  description = "Astronomical Data Smart System"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Gustavo Schwarz", email = "gustavo.b.schwarz@gmail.com" }]
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