Repository that try to gather several frequently used services from each cloud providers and make it simpler.
- Python 3.7.x or higher
- Pipfile
Initiate virtual environment and generate Pipfile and Pipfile.lock by running:
pipenv lock
Install dependencies and get into virtual environment.
pipenv install && pipenv shell
It might need to have credential files from each cloud provider to be set in environment variable.
eg.
export GOOGLE_APPLICATION_CREDENTIALS=
available for
- GCP Storage
>>> from services.storage import StorageService
>>> service = StorageService("GCP")
Set and get bucket
>>> service.set_bucket("bucket")
>>> service.get_bucket()
'bucket'
Upload
>>> service.request_upload("remote_path/file.txt", "local_path/file.txt")
Delete
>>> service.request_delete("remote_path/file.txt")
available for
- GCP Vision API