pygooglecloud 0.0.1__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.
- pygooglecloud/__init__.py +0 -0
- pygooglecloud/configs.py +4 -0
- pygooglecloud/main.py +37 -0
- pygooglecloud/static.py +5 -0
- pygooglecloud-0.0.1.dist-info/LICENSE +21 -0
- pygooglecloud-0.0.1.dist-info/METADATA +45 -0
- pygooglecloud-0.0.1.dist-info/RECORD +10 -0
- pygooglecloud-0.0.1.dist-info/WHEEL +5 -0
- pygooglecloud-0.0.1.dist-info/entry_points.txt +2 -0
- pygooglecloud-0.0.1.dist-info/top_level.txt +1 -0
|
File without changes
|
pygooglecloud/configs.py
ADDED
pygooglecloud/main.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The default group of operations that pygooglecloud has
|
|
3
|
+
"""
|
|
4
|
+
import pylogconf.core
|
|
5
|
+
from pytconf import register_endpoint, register_main, config_arg_parse_and_launch
|
|
6
|
+
|
|
7
|
+
from pygooglecloud.static import APP_NAME, DESCRIPTION, VERSION_STR
|
|
8
|
+
import google.auth
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@register_endpoint(
|
|
12
|
+
description="get the current project id",
|
|
13
|
+
configs=[],
|
|
14
|
+
)
|
|
15
|
+
def get_project_id() -> None:
|
|
16
|
+
"""
|
|
17
|
+
This will go to ~/.config/gcloud/configurtions/config_default unless
|
|
18
|
+
GOOGLE_APPLICATION_CREDENTIALS environment variable points to something else
|
|
19
|
+
if ~/.config/gcloud/configurtions/config_default is missing this will throw an exception.
|
|
20
|
+
"""
|
|
21
|
+
_, project_id = google.auth.default()
|
|
22
|
+
assert project_id is not None, "Could not find a project configured"
|
|
23
|
+
print(project_id)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@register_main(
|
|
27
|
+
main_description=DESCRIPTION,
|
|
28
|
+
app_name=APP_NAME,
|
|
29
|
+
version=VERSION_STR,
|
|
30
|
+
)
|
|
31
|
+
def main():
|
|
32
|
+
pylogconf.core.setup()
|
|
33
|
+
config_arg_parse_and_launch()
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
if __name__ == '__main__':
|
|
37
|
+
main()
|
pygooglecloud/static.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Mark Veltzer
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pygooglecloud
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: pygooglecloud helps you with command line interaction with gcp
|
|
5
|
+
Home-page: https://veltzer.github.io/pygooglecloud
|
|
6
|
+
Download-URL: https://github.com/veltzer/pygooglecloud
|
|
7
|
+
Author: Mark Veltzer
|
|
8
|
+
Author-email: mark.veltzer@gmail.com
|
|
9
|
+
Maintainer: Mark Veltzer
|
|
10
|
+
Maintainer-email: mark.veltzer@gmail.com
|
|
11
|
+
License: MIT
|
|
12
|
+
Keywords: gcp,gae,python,shell,utilities
|
|
13
|
+
Platform: python3
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Environment :: Console
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Topic :: Utilities
|
|
22
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
23
|
+
Description-Content-Type: text/x-rst
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: pylogconf
|
|
26
|
+
Requires-Dist: pytconf
|
|
27
|
+
Requires-Dist: google-auth
|
|
28
|
+
|
|
29
|
+
===============
|
|
30
|
+
*pygooglecloud*
|
|
31
|
+
===============
|
|
32
|
+
|
|
33
|
+
.. image:: https://img.shields.io/pypi/v/pygooglecloud
|
|
34
|
+
|
|
35
|
+
.. image:: https://img.shields.io/github/license/veltzer/pygooglecloud
|
|
36
|
+
|
|
37
|
+
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
38
|
+
|
|
39
|
+
project website: https://veltzer.github.io/pygooglecloud
|
|
40
|
+
|
|
41
|
+
author: Mark Veltzer
|
|
42
|
+
|
|
43
|
+
version: 0.0.1
|
|
44
|
+
|
|
45
|
+
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2024
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
pygooglecloud/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
pygooglecloud/configs.py,sha256=gTHsNh9ASFNwh3apZk6c4-A1bpB_pqXf4kMZGK5EAGY,88
|
|
3
|
+
pygooglecloud/main.py,sha256=8bSuuyLBDXzXYBVRWhEsZ4ow1Az67h945tH1Rt8gxik,987
|
|
4
|
+
pygooglecloud/static.py,sha256=SEsx3-qukoloKaIqmYcxEFYZjqbknAqYfy15K0TIIyw,219
|
|
5
|
+
pygooglecloud-0.0.1.dist-info/LICENSE,sha256=56W8uvJDhRsP42Ce8XXr1xbqv9fShH6vVbtrGepra6Q,1069
|
|
6
|
+
pygooglecloud-0.0.1.dist-info/METADATA,sha256=6h2AdcVPLvKhXmUBT4xt4Vey5COVa3D-54Hxcmn0Xbo,1373
|
|
7
|
+
pygooglecloud-0.0.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
8
|
+
pygooglecloud-0.0.1.dist-info/entry_points.txt,sha256=-sXlcJl4vtJF06RL7_jOB2SaBnRlcqSBNi6U16-lRjQ,58
|
|
9
|
+
pygooglecloud-0.0.1.dist-info/top_level.txt,sha256=HrlnVL6yxsbrlD4IQnshoz85vOycEUCwmHLKQP6XBFA,14
|
|
10
|
+
pygooglecloud-0.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pygooglecloud
|