请问如何使用gdata-python-client

bborn 2007-07-11 05:55:02
Google data API的python实现
这里下载
http://code.google.com/p/gdata-python-client/

但是我不知道该如何使用 下载后有个setup.py
直接运行也不行
运行sample也不行

python新手 请大家指教下
...全文
151 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
iambic 2007-07-11
  • 打赏
  • 举报
回复
解压后在命令行下进入gdata.py-1.0.4,然后运行如下命令得到相应信息:

setup.py --help

这是我得到的输出:

Common commands: (see '--help-commands' for more)

setup.py build will build the package underneath 'build/'
setup.py install will install the package

Global options:
--verbose (-v) run verbosely (default)
--quiet (-q) run quietly (turns verbosity off)
--dry-run (-n) don't actually do anything
--help (-h) show detailed help message
--command-packages list of packages that provide distutils commands

Information display options (just display information, ignore any commands)
--help-commands list all available commands
--name print package name
--version (-V) print package version
--fullname print <package name>-<version>
--author print the author's name
--author-email print the author's email address
--maintainer print the maintainer's name
--maintainer-email print the maintainer's email address
--contact print the maintainer's name if known, else the author's
--contact-email print the maintainer's email address if known, else the
author's
--url print the URL for this package
--license print the license of the package
--licence alias for --license
--description print the package description
--long-description print the long package description
--platforms print the list of platforms
--classifiers print the list of classifiers
--keywords print the list of keywords
--provides print the list of packages/modules provided
--requires print the list of packages/modules required
--obsoletes print the list of packages/modules made obsolete

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

看样子只要setup.py build,然后setup.py install就可以了。

文档中说依赖ElementTree,我的电脑上没有这个模块。

不过这些只是安装。这些库如何使用我没试过,你再找找官方的文档,或者看下它的samples。
a CMS based on django 1.0,supported by Django Dream Team,created by huyoo353 on 2008-NOV-10. -------------------------------------------------------------------------------- ddtcms ver0.1一些说明: 取消了registration的整合,因为它在google code不弄了,我用了userprofile,功能更强 使用的photologue加了自动修改上传的图片名,采用时间和随机码 -------------------------------------------------------------------------------- ddtcms一些说明: 模板的css参考了聚友网http://www.ogo.cc/index.php 首页index.html的框架用了一点poco网的,最顶端的参考了QQ首页的横条。 模板使用我想让每个app自带模板 views很多没有写,大多用的是generic_views blog用了分页,news,article继承blog的entry对象 评论使用了django自带的comments http://127.0.0.1/sitemap.xml 有错误,因为django自带flatpage有问题 http://127.0.0.1/sitemap_blog.xml 可以用 整合了registration,profiles,django-forum,前两者主要是解决了一些模板的问题,就可以用了。以后要完善的就是mysite 的 member模块了。 模板标记中,因为django-forum使用了markdown,所以要下载和安装markdown。 另外,国际化页面,使用了gettext,请到sf下载安装 以上内容见docs/更新历史。txt 还有很多地方要完善,首先要完善的就是的blog中不能发图片,只有photo模块可以发图片,现在比较忙,以后在搞吧,嘿嘿 截图请到我的群相册中去看 我的群号码69930365,Django 梦之队,欢迎讨论时加入,是一个公开小群,来者不拒,上限100人。 代码去除了(.pyc) rar格式压缩,共计3.6M ,包含了网站截图和一些图片,还有一些参考资料,以及一些模板碎片 忘了说了我的django是1.0版本的 -------------------------------------------------------------------------------- 管理帐户/密码 admin/admin DDTCMS Summary: DDTCMS(Django Dream Team's Content Management System),is a CMS based on django 1.0,supported by Django Dream Team,created by huyoo353 on 2008-NOV-10. http://code.google.com/p/ddtcms/ admin u/p: admin/admin Requirements: * django 1.0 Django version 1.0 or greater. * PILThe Python Imaging Library,Source: http://www.pythonware.com/products/pil/ * markdown Markdown is a text-to-HTML conversion tool for web writers. http://daringfireball.net/projects/markdown/ * django-navbar Site navigation controlled from the django admin with: Navigation bar Navigation tree Chained Navigation bars JSON sub tree requests (comming soon) Permission control on which entries are seen http://code.google.com/p/django-wikiapp/ # django-wikiapp Django WikiApp is a pluggable application for Django that aims to provide a complete Wiki (for really small values of "complete") http://code.google.com/p/django-wikiapp/ # django-photologue # django-forum # django-tagging # django-pressroom # gettext Optional(needed when you use i18n tags in code or templates) # Google Data API Optional(allows image searching) Download it from http://code.google.com/p/gdata-python-client/ # django-profile http://code.google.com/p/django-profile/ This is a Django pluggable user profile zone which can be used and customized easily in your social application web platform developed in django. App Directory Structure: appname/ --templates/ ----appname/ --templatetags/

37,743

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • WuKongSecurity@BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧