kiarina-lib-google-cloud-storage 1.5.0__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.
- kiarina_lib_google_cloud_storage-1.5.0/.gitignore +34 -0
- kiarina_lib_google_cloud_storage-1.5.0/.vscode/settings.json +7 -0
- kiarina_lib_google_cloud_storage-1.5.0/CHANGELOG.md +35 -0
- kiarina_lib_google_cloud_storage-1.5.0/PKG-INFO +719 -0
- kiarina_lib_google_cloud_storage-1.5.0/README.md +691 -0
- kiarina_lib_google_cloud_storage-1.5.0/pyproject.toml +44 -0
- kiarina_lib_google_cloud_storage-1.5.0/src/kiarina/lib/google/cloud_storage/__init__.py +43 -0
- kiarina_lib_google_cloud_storage-1.5.0/src/kiarina/lib/google/cloud_storage/_get_blob.py +24 -0
- kiarina_lib_google_cloud_storage-1.5.0/src/kiarina/lib/google/cloud_storage/_get_bucket.py +16 -0
- kiarina_lib_google_cloud_storage-1.5.0/src/kiarina/lib/google/cloud_storage/_get_storage_client.py +12 -0
- kiarina_lib_google_cloud_storage-1.5.0/src/kiarina/lib/google/cloud_storage/py.typed +0 -0
- kiarina_lib_google_cloud_storage-1.5.0/src/kiarina/lib/google/cloud_storage/settings.py +15 -0
- kiarina_lib_google_cloud_storage-1.5.0/tests/__init__.py +0 -0
- kiarina_lib_google_cloud_storage-1.5.0/tests/conftest.py +0 -0
- kiarina_lib_google_cloud_storage-1.5.0/tests/test_get_blob.py +155 -0
- kiarina_lib_google_cloud_storage-1.5.0/tests/test_get_bucket.py +69 -0
- kiarina_lib_google_cloud_storage-1.5.0/tests/test_get_storage_client.py +34 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
# Python
|
2
|
+
__pycache__/
|
3
|
+
*.py[cod]
|
4
|
+
*.so
|
5
|
+
*.egg-info/
|
6
|
+
dist/
|
7
|
+
build/
|
8
|
+
.ruff_cache/
|
9
|
+
.mypy_cache/
|
10
|
+
.pytest_cache/
|
11
|
+
.coverage
|
12
|
+
coverage.xml
|
13
|
+
htmlcov/
|
14
|
+
|
15
|
+
# uv
|
16
|
+
.uv_cache/
|
17
|
+
|
18
|
+
# Virtual environments & config
|
19
|
+
.venv/
|
20
|
+
.env
|
21
|
+
|
22
|
+
# OS
|
23
|
+
.DS_Store
|
24
|
+
|
25
|
+
# Project specific
|
26
|
+
*.log
|
27
|
+
tmp/
|
28
|
+
|
29
|
+
# Test data
|
30
|
+
tests/data/large/
|
31
|
+
|
32
|
+
# mise tasks (always include)
|
33
|
+
!mise-tasks/
|
34
|
+
!mise-tasks/**
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
## [Unreleased]
|
9
|
+
|
10
|
+
## [1.5.0] - 2025-10-10
|
11
|
+
|
12
|
+
### Added
|
13
|
+
- Initial release of kiarina-lib-google-cloud-storage
|
14
|
+
- Google Cloud Storage client library with configuration management using pydantic-settings-manager
|
15
|
+
- `GoogleCloudStorageSettings`: Pydantic settings model for Google Cloud Storage configuration
|
16
|
+
- `google_auth_config_key`: Configuration key for kiarina-lib-google-auth integration
|
17
|
+
- `bucket_name`: Google Cloud Storage bucket name
|
18
|
+
- `blob_name_prefix`: Optional prefix for blob names (e.g., "uploads/2024")
|
19
|
+
- `blob_name`: Optional default blob name
|
20
|
+
- `get_storage_client()`: Get authenticated Google Cloud Storage client
|
21
|
+
- `get_bucket()`: Get Google Cloud Storage bucket
|
22
|
+
- `get_blob()`: Get Google Cloud Storage blob with optional name override
|
23
|
+
- `settings_manager`: Global settings manager instance with multi-configuration support
|
24
|
+
- Type safety with full type hints and Pydantic validation
|
25
|
+
- Environment variable configuration support with `KIARINA_LIB_GOOGLE_CLOUD_STORAGE_` prefix
|
26
|
+
- Runtime configuration overrides via `cli_args`
|
27
|
+
- Multiple named configurations support (e.g., production, staging)
|
28
|
+
- Seamless integration with kiarina-lib-google-auth for authentication
|
29
|
+
- Blob name prefix support for organizing blobs in hierarchical structures
|
30
|
+
|
31
|
+
### Dependencies
|
32
|
+
- google-cloud-storage>=2.19.0
|
33
|
+
- kiarina-lib-google-auth>=1.4.0
|
34
|
+
- pydantic-settings>=2.10.1
|
35
|
+
- pydantic-settings-manager>=2.1.0
|