Giter Club home page Giter Club logo

gcloud-python's Introduction

Google Cloud Python Client

Python idiomatic client for Google Cloud Platform services.

build coverage pypi

This client supports the following Google Cloud Platform services:

If you need support for other Google APIs, check out the Google APIs Python Client library.

Versioning

This library follows Semantic Versioning.

It is currently in major version zero (0.y.z), which means that anything may change at any time and the public API should not be considered stable.

Quickstart

$ pip install gcloud

Google Cloud Datastore

Google Cloud Datastore is a fully managed, schemaless database for storing non-relational data. Cloud Datastore automatically scales with your users and supports ACID transactions, high availability of reads and writes, strong consistency for reads and ancestor queries, and eventual consistency for all other queries.

See the Google Cloud Datastore docs for more details on how to activate Cloud Datastore for your project.

See the gcloud-python API datastore documentation to learn how to interact with the Cloud Datastore using this Client Library.

from gcloud import datastore
datastore.set_defaults()
# Then do other things...
query = datastore.Query(kind='EntityKind')
entity = datastore.Entity(key=datastore.Key('EntityKind'))

Google Cloud Storage

Google Cloud Storage allows you to store data on Google infrastructure with very high reliability, performance and availability, and can be used to distribute large data objects to users via direct download.

You need to create a Google Cloud Storage bucket to use this client library. Follow the steps on the Google Cloud Storage docs to learn how to create a bucket.

See the gcloud-python API storage documentation to learn how to connect to Cloud Storage using this Client Library.

import gcloud.storage
bucket = gcloud.storage.get_bucket('bucket-id-here', 'project-id')
# Then do other things...
key = bucket.get_key('/remote/path/to/file.txt')
print key.get_contents_as_string()
key.set_contents_from_string('New contents!')
bucket.upload_file('/remote/path/storage.txt', '/local/path.txt')

Contributing

Contributions to this library are always welcome and highly encouraged.

See CONTRIBUTING for more information on how to get started.

Supported Python Versions

We support:

We plan to support:

Supported versions can be found in our tox.ini config.

We explicitly decided not to support Python 2.5 due to decreased usage and lack of continuous integration support.

We also explicitly decided to support Python 3 beginning with version 3.3. Reasons for this include:

  • Encouraging use of newest versions of Python 3
  • Taking the lead of prominent open-source projects
  • Unicode literal support which allows for a cleaner codebase that works in both Python 2 and Python 3

License

Apache 2.0 - See LICENSE for more information.

gcloud-python's People

Contributors

tseaver avatar dhermes avatar silvolu avatar jgeewax avatar lucemia avatar bryanyang0528 avatar aliafshar avatar marcgel avatar proppy avatar kleyow avatar rakyll avatar ptone avatar x1ddos avatar grapefruit623 avatar

Watchers

Jessica Ross McKinnie avatar Pete Koomen avatar Jennifer Adventure Lin avatar Marco Sgrignuoli avatar Rama Ranganath avatar Logan Linn avatar Ron Severdia avatar Jordan Garcia avatar Yeeland Chen avatar Kyle Randolph avatar Matt Carroll avatar Nick DiRienzo avatar Suneet Shah avatar James Cloos avatar Sean Oliver avatar Caroline Moon avatar Neil Fulwiler avatar Josiah Gaskin avatar Yonatan Kogan avatar  avatar Natarajan Chakrapani avatar  avatar Adam Tong avatar Sonesh Surana avatar Matt Auerbach avatar Tommy Giglio avatar Waylon Janowiak avatar Adam Panzer avatar Joe avatar Trent Robbins avatar Ozgur Dogan Ugurlu avatar Jon Noronha avatar Matt Moravec avatar Byron Jones avatar Stewart Smith avatar Ejede avatar Jon Gaulding avatar Jamie Connolly avatar HASIBA CHOUDHURY avatar Adrian Gregory avatar Bryce avatar Lucas Swartsenburg avatar Cyrus Dorosti avatar Becca Bruggman avatar Eric Higgins avatar David Fox-Powell avatar Ben McKown avatar Jon avatar Tim Scanlin avatar Esha Verma avatar Ayesha Mazrana avatar Quinton Dang avatar Dana Yakoobinsky avatar Leo Pekelis avatar Darcey Lachtman avatar Darwish Gani avatar Pamela Ongchin avatar Ajith Mascarenhas avatar John Provine avatar Christopher Dee avatar Ian Thiel avatar Nate Goldman avatar David Shere avatar Christopher Tiutan avatar Whelan Boyd avatar Teja Shah avatar Neha Saigal avatar David Walsh avatar Fergal Reid avatar Brendan O'Rourke avatar Anuraj Pandey avatar Michael Wei avatar  avatar Michael Sample avatar linda hong avatar Michael Twardos avatar  avatar Karen Loughrey avatar Ian Hinsdale avatar Jonathan Traupman avatar Brent C. Johnson avatar Eduardo Rivera avatar Erika Palmer avatar Jimmy Jin avatar Amy Chiu avatar  avatar  avatar Takeshi Young avatar Bill Caplan avatar Daina Lightfoot avatar James Chen avatar Michael avatar Dave Primicias avatar Andreas Bloomquist avatar Hadjer Yala avatar Shashank Paliwal avatar Johanna avatar Zach Power avatar Jack Kelly 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.