find-gcp-keys-0.6.2
توضیحات
Find and report valid Google Service Account keys on your filesystem
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | find-gcp-keys-0.6.2 |
| نام | find-gcp-keys |
| نسخه کتابخانه | 0.6.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Denis Loginov |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/dinvlad/find-gcp-keys |
| آدرس اینترنتی | https://pypi.org/project/find-gcp-keys/ |
| مجوز | BSD 3-clause "New" or "Revised" License |
# find-gcp-keys
This tool finds and prints valid Google Service Account keys on your filesystem.
This is useful for keeping track of any unexpired/non-disabled keys you may have.
It does NOT require any special permissions,
or even to be authenticated with Google Cloud SDK.
## Requirements
Python 3.7+
## Installation
```
pip3 install find-gcp-keys
```
## Usage
### Command line
```
find-gcp-keys <dir_path> [--no-validate/-n] [--file-pattern/-p <regex>]
```
Note that by default, the CLI only searches for the JSON key files
matching a particular pattern (`<project-id>-<key-id>.json`). You can
override this behavior, e.g. to search for _all_ JSON files:
```
find-gcp-keys <dir_path> -p '.*\.json'
```
### Library:
```py
from find_gcp_keys import find_key_paths, find_valid_keys, is_valid_key
...
# determine if a given file is a valid key
if is_valid_key(file_path):
...
# recursively search for valid keys
for file_path in find_valid_keys(dir_path):
...
# recursively search for possible keys, but don't validate them
for file_path in find_key_paths(dir_path):
...
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.21.0 | google-auth |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.0 | Python |
نحوه نصب
نصب پکیج whl find-gcp-keys-0.6.2:
pip install find-gcp-keys-0.6.2.whl
نصب پکیج tar.gz find-gcp-keys-0.6.2:
pip install find-gcp-keys-0.6.2.tar.gz