https://github.com/colorfulboard/revision-gcs
Google Cloud Storage client for Revision.
https://github.com/colorfulboard/revision-gcs
google-cloud-storage python
Last synced: 15 days ago
JSON representation
Google Cloud Storage client for Revision.
- Host: GitHub
- URL: https://github.com/colorfulboard/revision-gcs
- Owner: COLORFULBOARD
- License: mit
- Created: 2017-10-04T05:03:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-10T07:59:04.000Z (over 8 years ago)
- Last Synced: 2025-01-19T11:43:32.014Z (over 1 year ago)
- Topics: google-cloud-storage, python
- Language: Python
- Homepage: https://pypi.python.org/pypi/revision-gcs
- Size: 24.4 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Revision GCS Client
Google Cloud Storage client for [Revision](https://github.com/COLORFULBOARD/revision).
## Before you begin
1. Enable API
Enable the Google Cloud Storage API.
2. Create service account
Set up authentication with a service account for your project so you can access the API from your machine.
3. Install `Revision GCS`
Install the client library.
```sh
$ pip install revision-gcs
```
## Options
You must configure in `.revision/config.json` as follow:
```javascript
{
"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/](https://github.com/COLORFULBOARD/revision-gcs/tree/master/sample) directory.
```sh
$ cd sample/cli
$ revision sample commit
$ revision sample push
$ revision sample pull
```
## License
Revision is licensed under MIT License. See [LICENSE](https://github.com/COLORFULBOARD/revision-gcs/blob/master/LICENSE) for more information.