apteryx
Advanced tools
@@ -49,2 +49,15 @@ from typing import Union | ||
| def rename_blob(blob: storage.blob.Blob, new_name, client=client): | ||
| """Renames a blob.""" | ||
| # bucket_name = "your-bucket-name" | ||
| # blob_name = "your-object-name" | ||
| # new_name = "new-object-name" | ||
| bucket = client.bucket(blob.bucket.name) | ||
| new_blob = bucket.rename_blob(blob, new_name) | ||
| print(f"Blob {blob.name} has been renamed to {new_blob.name}") | ||
| def upload_blob(bucket_name, source_file_name, destination_blob_name, client=client): | ||
@@ -51,0 +64,0 @@ bucket = client.bucket(bucket_name) |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: apteryx | ||
| Version: 1.0.5 | ||
| Version: 1.0.6 | ||
| Summary: Utilities and useful things for Apteryx Labs | ||
@@ -5,0 +5,0 @@ License: MIT |
+1
-1
@@ -7,3 +7,3 @@ [build-system] | ||
| name = "apteryx" | ||
| version = "1.0.5" | ||
| version = "1.0.6" | ||
| description = "Utilities and useful things for Apteryx Labs" | ||
@@ -10,0 +10,0 @@ authors = [ "apteryxlabs <matthew@apteryxlabs.com>",] |
+1
-1
@@ -23,3 +23,3 @@ # -*- coding: utf-8 -*- | ||
| 'name': 'apteryx', | ||
| 'version': '1.0.5', | ||
| 'version': '1.0.6', | ||
| 'description': 'Utilities and useful things for Apteryx Labs', | ||
@@ -26,0 +26,0 @@ 'long_description': None, |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
5932
6.67%121
7.08%