canonicalwebteam.store-api 4.11.2__py3-none-any.whl → 4.11.3__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.
@@ -269,6 +269,24 @@ class SnapPublisher(Publisher):
269
269
  )
270
270
  return response
271
271
 
272
+ def get_package_metadata(self, publisher_auth, package_type, snap_name):
273
+ """
274
+ Get general metadata for a package.
275
+ Args:
276
+ publisher_auth: Serialized macaroon to consume the API.
277
+ package_type: Type of packages to obtain.
278
+ Returns:
279
+ Package general metadata
280
+ """
281
+ response = self.session.get(
282
+ url=self.get_publisherwg_endpoint_url(
283
+ f"{package_type}/{snap_name}"
284
+ ),
285
+ headers=self._get_publisherwg_authorization_header(publisher_auth),
286
+ )
287
+
288
+ return self.process_response(response)["metadata"]
289
+
272
290
  def unregister_package_name(self, publisher_auth, snap_name):
273
291
  """
274
292
  Unregister a package name.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: canonicalwebteam.store-api
3
- Version: 4.11.2
3
+ Version: 4.11.3
4
4
  Summary:
5
5
  License: LGPL-3.0
6
6
  Author: Canonical Web Team
@@ -5,8 +5,8 @@ canonicalwebteam/store_api/publisher.py,sha256=4gSCJOtpEfK0luYal5xOEa0XF7DzOrdGM
5
5
  canonicalwebteam/store_api/store.py,sha256=Uk1BMGM4S8uVXepuUiF2FNqw3MCnqtd3EGbrlwzod7Y,7826
6
6
  canonicalwebteam/store_api/stores/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  canonicalwebteam/store_api/stores/charmstore.py,sha256=5bUnZyhLpli7Z1SPXohMNs1vA9u_cpCQc8AqAW1jNl4,16437
8
- canonicalwebteam/store_api/stores/snapstore.py,sha256=C0SrENVuJaOMqPD1xlnQtQ0RIBmF1yGPVHHrQfNbLp4,24640
9
- canonicalwebteam_store_api-4.11.2.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
10
- canonicalwebteam_store_api-4.11.2.dist-info/METADATA,sha256=5WL8GgvSNkO6Xgik8bOWkPI7O6Hq5Hq7Al6eZ6yeHAw,2265
11
- canonicalwebteam_store_api-4.11.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
- canonicalwebteam_store_api-4.11.2.dist-info/RECORD,,
8
+ canonicalwebteam/store_api/stores/snapstore.py,sha256=KI1M25C6I3jNGat9JVLNs_8BlDZA8W6Uxbw7zHb0lco,25275
9
+ canonicalwebteam_store_api-4.11.3.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
10
+ canonicalwebteam_store_api-4.11.3.dist-info/METADATA,sha256=fOTSxiLK6p5xphrbzgVWs0gTUt7wIbQfPOobCzmnBkE,2265
11
+ canonicalwebteam_store_api-4.11.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
+ canonicalwebteam_store_api-4.11.3.dist-info/RECORD,,