Les nouveautés et Tutoriels de Votre Codeur | SEO | Création de site web | Création de logiciel

seo Google Analytics API v2 Python Client Library 2013

Seo Master present to you: We know it's easier for developers to program in the languages they know. So we updated the Google Analytics API Python Client library with all the new API version 2 features and added reference exampels for both the Account Feed and Data Feed. Now it's easier than ever to automate your analysis workflow using our API.

Taking The Library For a Spin

With the updated library, we thought it would be a great time to highlight the power of the new v2 features. So we created a sample application to do just that. The application uses the new Google Analytics Python client library to retrieve metrics for a series of segments. It then performs some calculations on the data and creates bar charts using the GChartWrapper package, an open source Python wrapper for the Google Charts API. Finally, it uses the Python Imaging Library to add a title and legend, and stitches all the charts together into a single image. We decided to release this application as open source so you can create visualizations with your own data.

Solving Business Problems

With social media all the rage, we wanted to use this new application to help Avinash Kaushik, our Analytics Evangelist, to measure "engagement" on his popular Occam's Razor blog. We also wanted to determine if the time he spends participating in social media sites is valuable and sends new readers to his blog.

First we created segments to pull all the referrals from Facebook and Twitter. Second, we chose five calculations and corresponding metrics to compare the performance of thee two segments. We then compared the segments to each other and, for context, to all the visits to the site as a control.

They say a picture is worth a thousand words, here are the results:



Let's Analyze

Some interesting observations become apparent.
  • Far more visits originate from Twitter (3.6x) when compared to Facebook, perhaps not surprising given Avinash's Twitter followers (~16,120)
  • Visitors from Twitter tend to be new visitors, a good thing, but they view fewer pages and spend significantly less time on the blog.
  • On the other hand Facebook delivers an audience that is loyal. These visitors come back to the site more often and spend a significant time on the blog (compared to Twitter and all other visitors).
The bottom line? Even though social networking sites are all the rage, they actually contribute very little to Avinash's blog. If this blog were a company, it would be wise to ensure the time and effort put into driving traffic from social media is proportionate to the actual volume of traffic and goal conversions from those sites.

Hopefully this example shows how powerful our new features can be.

If you're interested in running this report against your own data, the application is free and open sourced. Additionally, we made it really easy to change the metrics, segments, calculations and all the other visual properties to power your own visualizations. So please download it here and give it a whirl, we would love to hear your feedback.

2013, By: Seo Master

seo Introducing Powerful Visualizations for your server-side data 2013

Seo Master present to you:

Today, we're publicly documenting the Google Visualization API's open-wire protocol, thus dramatically expanding the capabilities of this API beyond what had been available since we first launched in March of this year. Organizations can now expose their server-side data, such as in SQL databases and even in Excel spreadsheets, and display this data through visualizations from our growing directory. This flexibility makes it possible to connect easily almost any data source to a wealth of 40+ visualizations, including standard pie and line charts and complex heat maps and motion charts.

To make it even easier for developers to get started, we have documented an open-source Python library that enables any Python developer to quickly start using the API. What we find particularly cool about this library is that it also runs on Google's AppEngine. You don't even need to be an owner of your own servers to expose your data: You can place it on AppEngine and use the Visualization API to expose your data in meaningful, insightful ways in dashboards and reports. Expect to see additional server-side tools for the Visualization API in the near future.

Moreover, this week at the Dreamforce conference, Salesforce announced they've created tools, including code snippets and API harnesses, to make the Google Visualization API even easier to use. Salesforce customers can now quickly and easily add dashboards and custom reporting applications over their Salesforce data and publish these on any webpage. ISVs and BI firms such as Panorama and Conceptual Clarity, who are already marketing their powerful reporting tools over Google Spreadsheets using the Visualization API, now have access to Salesforce customers. The icing on the cake: since they use the Visualization API, they can address this new market without adding new code to their existing applications.

To learn more about how to implement your data store as a Visualization API data source, by checking out our documentation.

2013, By: Seo Master

seo Python Library for Google Analytics Management API 2013

Seo Master present to you: It’s been only 7 weeks since we’ve launched the Google Analytics Management API and we’ve heard a lot of great feedback. Thanks!

Since Python is one of our more popular languages, we’ve updated the Google Analytics Python Client Library to access all 5 feeds of the Management API. Now it’s easier than ever to get your configuration data from the API.

To show you how simple it is to use the library, here is an example which returns all the goal names for a profile:
import gdata.analytics.client

APP_NAME = 'goal_names_demo'
my_client = gdata.analytics.client.AnalyticsClient(source=APP_NAME)

# Authorize
my_client.client_login(
INSERT_USER_NAME,
INSERT_PASSWORD,
APP_NAME,
service='analytics')

# Make a query.
query = gdata.analytics.client.GoalQuery(
acct_id='INSERT_ACCOUNT_ID',
web_prop_id='INSERT_WEB_PROP_ID',
profile_id='INSERT_PROFILE_ID')

# Get and print results.
results = my_client.GetManagementFeed(query)
for entry in results.entry:
print 'Goal number = %s' % entry.goal.number
print 'Goal name = %s' % entry.goal.name
print 'Goal value = %s' % entry.goal.value

To get you started, we wrote a reference example which accesses all the important information for each feed. We also added links to the source and PyDoc from the Management API Libraries and Examples page. Have a look and let us know what you think!

2013, By: Seo Master

seo Updates from the Django Sprint 2013

Seo Master present to you:

More than 200 people around the world devoted their time and brainpower to improving the Django Web framework this weekend, during a scheduled Django coding sprint. On Friday, September 14th, the first day of the sprint, some Django developers gathered at Google's offices in Chicago and Mountain View for the benefits of in-person communication, camaraderie and, yes, free food.

17 people showed up at Google Chicago, which was a sort of ground zero for the sprint, with the project's BDFLs Adrian Holovaty and Jacob Kaplan-Moss in attendance. Another 7 people participated from Google's Mountain View office, which was linked with Chicago via videoconference.

Python creator (and Google employee) Guido van Rossum even stopped by via videoconference to give a pep talk about Django version 1.0 and share some of his experience running a large open-source project.

The sprint was intensely productive, with more than 400 tickets closed in the Django issue-tracking system, 300 new patches/ticket attachments and more than 200 commits to the Django code base. All told, there were more than 2,440 changes, including wiki changes, ticket changes, patch uploads and code check-ins.

Overall, the consensus was: "We should do this more often!"


The Chicago sprinters, hard at work (photo by Jacob Kaplan-Moss)2013, By: Seo Master

seo Python Client Library for Google APIs is out of Beta 2013

Seo Master present to you:
Antonio
Joe

By Joe Gregorio and Antonio Fuentes, Google Developer Team

We have awesome news for Python developers. The Python Client Library for Google APIs is no longer in Beta! The Python Client Library has been augmented with many great features since its Beta launch. It now supports OAuth 2.0 service accounts, upload of media resources, batching of requests, asynchronous requests, resumable media upload, feed paging and many other features.

We encourage you to check out the new documentation for the client library, which not only has brand new content, but also has a slick new look and is now hosted on developers.google.com.

If you are building a Python application that uses Google APIs, we strongly recommend you use this client library. First, the library makes it simple to call any RESTful Google API and grab the data returned by the call. Also, the client library handles the OAuth 2.0 authentication protocol and all errors for you without the need to write any additional code.

Making a call to a RESTful API using the Google APIs Client Library for Python is simple. You start by constructing an http object to sign all requests with OAuth 2.0 credentials:

http = httplib2.Http()
http = credentials.authorize(http)


You then create a service object that knows how to talk to a Google API. In this example, we use the Google+ API:

service = build("plus", "v1", http=http)

You then access a collection of resources in the API by simply calling its name. The collection object that is returned has all the methods that a collection understands. Here we execute a GET request on the people collection passing the userID parameter:

person = service.people().get(userId='me').execute()
print "Your name is: %s" % person['displayName']


To get started, check out the documentation for the client library, which contains instructions for how to download and install it. As always, your feedback is welcome!


Joe Gregorio is a Software Engineer. In the past five years at Google he’s worked on APIs, Google App Engine, Google Wave, and now has come full circle and is back working on APIs.

Antonio Fuentes is a Product Manager focusing on developer-facing technologies. He has experience launching products in the cloud computing, infrastructure, and virtualization spaces.

Posted by Scott Knaster, Editor
2013, By: Seo Master

seo Updates from the Latest Python Sprint 2013

Seo Master present to you:

Google was pleased to host last week's Python Sprint. From August 22-25th, over twenty developers in Mountain View and Chicago came together to improve next generation Python, also known as Python 3000 or Py3k. Many of the participants got their initial taste of Python internals at the sprint.

There was a flurry of activity at the sprint, and over 100 changes were committed - about five times the normal rate! The team got so much done that you can expect the first alpha release of Py3k in a few days.

If you'd like to participate in Python development or just learn more about the project, check out their general developer's mailing list or the Py3k development mailing list.



The Mountain View Python Sprint Team (starting with the back row, left to right): Larry Hastings, Tom Waite, Ero Carrera, Guido van Rossum, Collin Winter, Bill Janssen, Yuri Ginsburg, Thuon Chen, Christopher Burns, Keir Mierle, Neal Norwitz

(photo credit: Paul Dubois)2013, By: Seo Master

seo Guido van Rossum releases Mondrian-clone: Rietveld 2013

Seo Master present to you:

Guido van Rossum, Python creator and member of the App Engine team, gave a talk on Mondrian which is the tool he created to work with the code review process at Google.



The Mondrian tool itself was tied to internal technology, but he took the time to built an inspired version on App Engine. Part of the work was having it work with Subversion as the SCM. The name of the tool is Rietveld, and here is what Guido said on the Python mailing list to announce it:


I've always hoped that I could release Mondrian as open source, but it was not to be: due to its popularity inside Google, it became more and more tied to proprietary Google infrastructure like Bigtable, and it remained limited to Perforce, the commercial revision control system most used at Google.

What I'm announcing now is the next best thing: an code review tool for use with Subversion, inspired by Mondrian and (soon to be) released as open source. Some of the code is even directly derived from Mondrian. Most of the code is new though, written using Django and running on Google App Engine.

I'm inviting the Python developer community to try out the tool on the web for code reviews. I've added a few code reviews already, but I'm hoping that more developers will upload at least one patch for review and invite a reviewer to try it out.


Brady Forrest has a nice write-up of the announcement and Joe Heck pointed out that this is not the same as another open source solution called Review Board.

For more details on the tool check out Guido's article.2013, By: Seo Master

seo Open Source Developers @ Google Speaker Series: Andrew Morton 2013

Seo Master present to you:

On Tuesday, May 1st, the Open Source Developers @ Google Speaker Series will be pleased to host Andrew Morton, who will be presenting "The State of the Linux Kernel." Andrew, lead maintainer for the Linux public production kernel, will review trends in recent changes to the kernel. He will also examine the motivations of various contributors and discuss areas of the kernel which could use a bit more love.

As with all sessions of the Open Source Developers @ Google Speaker Series, Andrew's presentation will be open to the public. Doors open at 6:30 PM at our Mountain View campus; guests should plan to sign in at Building 43 reception upon arrival. Refreshments will be served and all are welcome and encouraged to attend. Andrew's presentation will also be taped and published along with all of the public Google Tech Talks on Google Video.

And for those of you who were unable to attend the last session, you can watch the video of Alex Martelli's recent presentation on Python for Programmers.2013, By: Seo Master

seo Google APIs Python Library goes to Beta 2013

Seo Master present to you:
This post is by Anton Lopyrev and Joe Gregorio.
Anton Lopyrev is an Associate Product Manager for Google APIs Infrastructure and was previously a software engineer on Street View. He is a computer graphics enthusiast who is also passionate about product design.




Joe Gregorio is a Software Engineer. In the past four years at Google he's worked on APIs, then Google App Engine, then Google Wave, and now has come full circle and is back working on APIs. -scottk


Over the last several months we have launched a number of tools, such as the Google APIs Explorer and the Google APIs Console, that help you explore Google APIs based on our brand new API infrastructure and manage your API access directly in your browser. However, most of the day-to-day usage of the APIs is still via client libraries in various programming languages.

Today, we are announcing a major milestone for one of the Google APIs client libraries. The Google APIs Client Library for Python has officially reached Beta. This means that we're comfortable enough with the stability and features of the library that we'd like you to start building real production applications on top of it and send us your feedback. Client libraries in other languages are soon to follow.

If you are interested in getting more familiar with our new client libraries, we hope to see you at the “Introduction to Google APIs” lecture at I/O Bootcamp and the “Life of a Google API Developer” session at Google I/O, where you can chat with the developers of the libraries face-to-face.
2013, By: Seo Master

seo Open Source Developers @ Google Speaker Series: Alex Martelli 2013

Seo Master present to you:

Alex Martelli, author of Python in a Nutshell and one of the editors of the Python Cookbook, will be speaking on "Python for Programmers" tomorrow evening, April 10th. Ideal for programmers who have not had much exposure to Python, the talk will provide a rapid overview of the main characteristics of the language plus a brief synopsis of its main implementations, its standard library and its third-party extension packages.

As with all sessions of the Open Source Developers @ Google Speaker Series, Alex's presentation will be open to the public. Doors open at 6:30 PM at our Mountain View campus; guests should plan to sign in at Building 42 reception upon arrival. Refreshments will be served and all are welcome and encouraged to attend. Alex's presentation will also be taped and published on Google Video.

For those of you who were unable to attend Jeremy Allison's recent presentation on the "The Current State of Samba," you can check out the video.2013, By: Seo Master

seo Improve your App Engine skills with Google Developers Academy 2013

Seo Master present to you: Author PhotoBy Wesley Chun, Developer Relations Team

Cross-posted with the Google App Engine Blog

Are you developing on App Engine today or interested in learning how to use it? If you've gone through all the great App Engine docs and Getting Started tutorials (Python, Java, or Go) but want to take your App Engine skills a step further, then Google Developers Academy (GDA) is the place to go! We launched GDA this past summer at Google I/O 2012, with content for beginners as well as seasoned developers. What can you find on App Engine in GDA today?


computers in a classroom

If you’re interested in getting more background on what cloud computing is and where App Engine fits into that ecosystem, then this intro class (Introduction to Google App Engine) is for you. Once you’re done with this class, you’ll be ready to tackle the Getting Started tutorial, and after that, move on to the App Engine 101 in Python class.

While some of the material found in App Engine 101 is similar to what's in the Getting Started tutorial, the 101 class targets developers who skipped the tutorial or completed it at some point in the past but don't want to repeat the exact same thing. The main differences include the following changes to the tutorial's content:
  • Use of the Python NDB API
  • Jinja2 templates
  • Discussion of data consistency and datastore indexes
You can use the relational MySQL-compatible Google Cloud SQL service as an alternative to App Engine's native non-relational datastore. Some applications do require a relational database, especially if you’re porting an existing app that relies on one. In this case, you want to learn about Cloud SQL and how to use it with App Engine. That’s why we have the Using Python App Engine with Google Cloud SQL class.

Of course, Google is best known for search. With App Engine's powerful Search API, you can index not only plain text, but also HTML, atoms, numbers, dates, and locations (lat/long). Getting Started with the Python Search API is a two-part class that will indeed get you started: in the first part of the class, you’ll create an application using a variety of data and learn how to index such data (using "documents"). In Part 2, you’ll learn how to execute queries as well as how to update your indexes when you modify your data.

If variety is what you're after, then look no further than the newest class in GDA: Getting Started with Go, App Engine and Google+ API. You will not only learn how to create an App Engine app using the Go programming language, but also learn how to connect to the Google+ API with the Google APIs Client Library for Go.

These are just a few examples of the types of classes you'll find in GDA. We also have content that features many other Google technologies, including Android, Chrome, YouTube, Maps, Drive, and Wallet. We invite you to swing by for a visit soon.


+Wesley Chun (@wescpy) is author of the bestselling Core Python books and a Developer Advocate at Google, specializing in cloud computing and academia. He loves traveling worldwide to meet Google users everywhere, whether at a developers conference, user group meeting, or on a university campus!

Posted by Scott Knaster, Editor
2013, By: Seo Master

seo Create and share Google Sites with new Sites Data API features 2013

Seo Master present to you: Several months ago we launched the Google Sites Data API. Since then, we've worked hard to respond to your top feature requests: the ability to list a user's sites, create new sites, copy existing sites, and manage sharing permissions. Today, we are very excited to announce the release of the Site and Access Control List feeds that make these new features possible.

The Site feed allows your client to list sites and update their properties, such as the title or the theme of the site. Google Apps users can also create new sites. Because creating new sites often involves copying existing ones (perhaps using a site template), we've enabled that feature too.

Here's an example of the kinds of applications you can build with those features. Let's say you're a professor at a university and you'd like to create a Google Site for each of the courses you teach. The Site feed makes it possible for you to create a site course template, use the site feed to create several course sites, and personalize them with the content feed.

But what if you want to restrict access to your sites to just the students taking those courses? With the ACL (Access Control List) feed, you can manage sharing permissions. Everything you can do in the Google Sites admin panel, you can do with the API.

To get the full scoop, review the documentation and change log. We've loaded the Java client library and Python client library with the new features, and offer updated developer guides for both.

Visit us in our new developer forum if you have questions!


2013, By: Seo Master

seo Heading to linux.conf.au? 2013

Seo Master present to you:

Several folks from Google Sydney and beyond will be attending linux.conf.au 2008 in Melbourne, Australia next week and we're looking forward to sharing a week of FLOSS and fun with our fellow attendees. If you're heading to the conference, stop by our table at Open Day to learn more about Google's global open source initiatives. We'd also love to have any students, whether you're a local or just in town for the conference, join us on Thursday evening for our student party; several Google Summer of Code students and mentors have already let us know they'll be coming. You are, of course, welcome to join us at the Google conference wrap-up party on Friday evening. We'll be hosting a grand barbecue, with plenty of options for our vegetarian and vegan friends.

You may also be interested in these talks given by Googlers:
Anthony Baxter, Python's Release Engineer and a recent addition to Sydney's engineering team, will deliver Friday's opening Keynote, Two Snake Enter, One Snake Leave.

We hope to see you there!2013, By: Seo Master
Powered by Blogger.