Revision GCS Client
Google Cloud Storage client for Revision.
Before you begin
- Enable API
Enable the Google Cloud Storage API.
- Create service account
Set up authentication with a service account for your project so you can access the API from your machine.
- Install
Revision GCS
Install the client library.
$ pip install revision-gcs
Options
You must configure in .revision/config.json
as follow:
{
"clients": [
{
"key": "YOUR_KEY", // Dataset unique key
"module": "revision_gcs.GCSClient",
"local_path": "PATH/TO/LOCAL_PATH",
"remote_path": "PATH/TO/REMOTE_STORAGE_PATH", // Required: Specify your storage bucket uri
"revision_file": "CHANGELOG.md", // Optional: Default: CHANGELOG.md
"options": {
"key_file": "PATH/TO/KEY_FILE" // Required: Specify the path for service account keyfile
}
}
]
}
Sample
Samples are in the sample/ directory.
$ cd sample/cli
$ revision sample commit
$ revision sample push
$ revision sample pull
License
Revision is licensed under MIT License. See LICENSE for more information.