Coder Social home page Coder Social logo

isabella232 / storage-signedurls-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/storage-signedurls-python

0.0 0.0 0.0 15 KB

An example Python script that uses PyCrypto and requests to demonstrate using signed URLs

License: Apache License 2.0

Python 100.00%

storage-signedurls-python's Introduction

Google Cloud Storage Signed URLs Example

This script is an example of using a service account's private key to create signatures required for clients to access Google Cloud Storage using signed URL authentication.

Required Dependencies

The following third-party Python modules are required:

The easiest way to install the dependencies is to run:

pip install -r requirements.txt

Configuration

The conf.example.py file must be copied to conf.py and the variables in the file must be filled in. See the example file for explanation of each variable.

Example Flow

The example script's flow is as follows:

  • Generates a signature for a PUT request and uses it to upload a new file.
  • Generates a signature for a GET request and uses it to download the new file that was just uploaded.
  • Generates a signature for a DELETE request and uses it to delete the file that was created.

storage-signedurls-python's People

Contributors

dhilipsiva avatar igorpejic avatar jterrace avatar mco-gh avatar taranjeet 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.