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.
- canonicalwebteam/store_api/stores/snapstore.py +18 -0
- {canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.11.3.dist-info}/METADATA +1 -1
- {canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.11.3.dist-info}/RECORD +5 -5
- {canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.11.3.dist-info}/LICENSE +0 -0
- {canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.11.3.dist-info}/WHEEL +0 -0
|
@@ -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.
|
{canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.11.3.dist-info}/RECORD
RENAMED
|
@@ -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=
|
|
9
|
-
canonicalwebteam_store_api-4.11.
|
|
10
|
-
canonicalwebteam_store_api-4.11.
|
|
11
|
-
canonicalwebteam_store_api-4.11.
|
|
12
|
-
canonicalwebteam_store_api-4.11.
|
|
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,,
|
{canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.11.3.dist-info}/LICENSE
RENAMED
|
File without changes
|
{canonicalwebteam_store_api-4.11.2.dist-info → canonicalwebteam_store_api-4.11.3.dist-info}/WHEEL
RENAMED
|
File without changes
|