Git Product home page Git Product logo

anvil-file-transfer's Introduction

anvil-file-transfer

Transfer controlled-access Anvil files.

Usage:

$ python transfer.py --help
usage: transfer.py [-h] --env {sandbox,prod} --google-service-account-credentials-base64 GOOGLE_SERVICE_ACCOUNT_CREDENTIALS_BASE64 --portal-key PORTAL_KEY --portal-secret-key PORTAL_SECRET_KEY [--delete-source-files]

options:
  -h, --help            show this help message and exit
  --env {sandbox,prod}  Specify the environment: prod or sandbox.
  --google-service-account-credentials-base64 GOOGLE_SERVICE_ACCOUNT_CREDENTIALS_BASE64
                        Google service account credentials linked to Terra workspace, base64 encoded
  --portal-key PORTAL_KEY
                        Portal key associated with Anvil Transfer service account user
  --portal-secret-key PORTAL_SECRET_KEY
                        Portal secret key associated with Anvil Transfer service account user
  --delete-source-files
                        Delete source files after copying

If you downloaded Google service account key as JSON you can convert to base64:

import base64
import json

base64.b64encode(json.dumps(credential_dict).encode('utf-8')).decode('utf-8')

anvil-file-transfer's People

Contributors

keenangraham avatar

Watchers

Ben Hitz avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.