mirror of
https://github.com/kennethreitz-archive/.com.git
synced 2026-06-21 15:51:00 +00:00
189 lines
4.8 KiB
HTML
189 lines
4.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>GistAPI.py v0.1 Released</title>
|
|
<meta charset="utf-8" />
|
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
|
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Kenneth's log ATOM Feed" />
|
|
|
|
|
|
|
|
|
|
<!--[if IE]>
|
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
|
|
|
<!--[if lte IE 7]>
|
|
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
|
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
|
|
|
<!--[if lt IE 7]>
|
|
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
|
|
|
</head>
|
|
|
|
<body id="index" class="home">
|
|
|
|
<a href="http://github.com/kennethreitz/">
|
|
|
|
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
|
|
|
</a>
|
|
|
|
<header id="banner" class="body">
|
|
<h1>
|
|
<a href=".">Kenneth's log </a>
|
|
</h1>
|
|
|
|
<nav><ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li >
|
|
<a href="./category/Life.html">Life</a>
|
|
</li>
|
|
|
|
<li class="active">
|
|
<a href="./category/Code.html">Code</a>
|
|
</li>
|
|
|
|
<li >
|
|
<a href="./category/projects.html">projects</a>
|
|
</li>
|
|
|
|
|
|
</ul></nav>
|
|
|
|
</header><!-- /#banner -->
|
|
|
|
|
|
<section id="content" class="body">
|
|
<article>
|
|
<header> <h1 class="entry-title"><a href="gistapipy-v01-released.html"
|
|
rel="bookmark" title="Permalink to GistAPI.py v0.1 Released">GistAPI.py v0.1 Released</a></h1> </header>
|
|
|
|
|
|
|
|
<div class="entry-content">
|
|
<footer class="post-info">
|
|
<abbr class="published" title="2010-05-16T21:41:00">
|
|
Sun 16 May 2010
|
|
</abbr>
|
|
<p>In <a href="./category/Code.html">Code</a>.
|
|
|
|
</p>
|
|
</footer><!-- /.post-info -->
|
|
|
|
|
|
<p>Today I released GistAPI.py v0.1.2. It features a highly-optimized
|
|
Gist object model and API wrapper which allows you to consume Gists
|
|
in your next Python application. GitHub just rolled out a miniature
|
|
pre-release of the
|
|
<a class="reference external" href="http://develop.github.com/p/gist.html">Gist API</a> last month, so
|
|
API functionality is pretty limited at the moment. More features
|
|
will be added as soon as the API is updated. ## Usage from gistapi
|
|
import *</p>
|
|
<pre class="literal-block">
|
|
gist = Gist('d4507e882a07ac6f9f92')
|
|
|
|
gist.description # 'Example Gist for gist.py'
|
|
gist.created_at # '2010/05/16 10:51:15 -0700'
|
|
gist.public # False
|
|
gist.filenames # ['exampleEmptyFile', 'exampleFile']
|
|
gist.files['exampleFile'] # 'Example file content.'
|
|
</pre>
|
|
<p><a class="reference external" href="http://github.com/kennethreitz/gistapi.py/">Source on GitHub</a></p>
|
|
|
|
</div><!-- /.entry-content -->
|
|
|
|
|
|
|
|
<div class="comments">
|
|
<div id="disqus_thread"></div>
|
|
<script type="text/javascript">
|
|
var disqus_identifier = "gistapipy-v01-released.html";
|
|
(function() {
|
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
dsq.src = 'http://kennethreitz.disqus.com/embed.js';
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
})();
|
|
</script>
|
|
</div>
|
|
|
|
|
|
|
|
</article>
|
|
</section>
|
|
|
|
|
|
<section id="extras" class="body">
|
|
|
|
|
|
<div class="blogroll">
|
|
<h2>Links</h2>
|
|
<ul>
|
|
|
|
<li><a href="http://github.com/kennethreitz">GitHub Repos</a></li>
|
|
|
|
<li><a href="http://flickr.com/kennethreitz">Photography (Flickr)</a></li>
|
|
|
|
<li><a href="http://twitter.com/kennethreitz">Latest Tweets</a></li>
|
|
|
|
<li><a href="http://www.linkedin.com/in/kennethreitz">Résumé</a></li>
|
|
|
|
<li><a href="http://pick.im/kenneth-reitz">Design Portfolio</a></li>
|
|
|
|
<li><a href="http://laterstars.com/kennethreitz">Later Stars</a></li>
|
|
|
|
</ul>
|
|
</div><!-- /.blogroll -->
|
|
|
|
|
|
|
|
<div class="social">
|
|
|
|
<ul>
|
|
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
|
|
|
|
|
|
|
<li><a href="http://facebook.com/kennethreitz">Facebook</a></li>
|
|
|
|
</ul>
|
|
</div><!-- /.social -->
|
|
|
|
|
|
</section><!-- /#extras -->
|
|
|
|
<footer id="contentinfo" class="body">
|
|
<address id="about" class="vcard body">
|
|
© 2011 Kenneth Reitz & co. All Rights Reserved.
|
|
</address><!-- /#about -->
|
|
|
|
</footer><!-- /#contentinfo -->
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
var disqus_shortname = 'kennethreitz';
|
|
(function () {
|
|
var s = document.createElement('script'); s.async = true;
|
|
s.type = 'text/javascript';
|
|
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
|
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
|
}());
|
|
</script>
|
|
<script type="text/javascript" charset="utf-8">
|
|
var disqus_developer = 1;
|
|
</script>
|
|
|
|
</body>
|
|
</html> |