<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>external.guid — IPython 0.10.2 documentation</title> <link rel="stylesheet" href="../../_static/default.css" type="text/css" /> <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../../', VERSION: '0.10.2', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../../_static/jquery.js"></script> <script type="text/javascript" src="../../_static/underscore.js"></script> <script type="text/javascript" src="../../_static/doctools.js"></script> <link rel="top" title="IPython 0.10.2 documentation" href="../../index.html" /> <link rel="up" title="The IPython API" href="../index.html" /> <link rel="next" title="external.mglob" href="IPython.external.mglob.html" /> <link rel="prev" title="external.configobj" href="IPython.external.configobj.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="../../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="IPython.external.mglob.html" title="external.mglob" accesskey="N">next</a> |</li> <li class="right" > <a href="IPython.external.configobj.html" title="external.configobj" accesskey="P">previous</a> |</li> <li><a href="../../index.html">IPython 0.10.2 documentation</a> »</li> <li><a href="../index.html" accesskey="U">The IPython API</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="external-guid"> <h1>external.guid<a class="headerlink" href="#external-guid" title="Permalink to this headline">¶</a></h1> <div class="section" id="module-IPython.external.guid"> <span id="module-external-guid"></span><h2>Module: <tt class="xref py py-mod docutils literal"><span class="pre">external.guid</span></tt><a class="headerlink" href="#module-IPython.external.guid" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="functions"> <h2>Functions<a class="headerlink" href="#functions" title="Permalink to this headline">¶</a></h2> <dl class="function"> <dt id="IPython.external.guid.extract_counter"> <tt class="descclassname">IPython.external.guid.</tt><tt class="descname">extract_counter</tt><big>(</big><big>)</big><a class="headerlink" href="#IPython.external.guid.extract_counter" title="Permalink to this definition">¶</a></dt> <dd><p>Extracts the counter from the guid (returns the bits in decimal)</p> </dd></dl> <dl class="function"> <dt id="IPython.external.guid.extract_ip"> <tt class="descclassname">IPython.external.guid.</tt><tt class="descname">extract_ip</tt><big>(</big><big>)</big><a class="headerlink" href="#IPython.external.guid.extract_ip" title="Permalink to this definition">¶</a></dt> <dd><p>Extracts the ip portion out of the guid and returns it as a string like 10.10.10.10</p> </dd></dl> <dl class="function"> <dt id="IPython.external.guid.extract_time"> <tt class="descclassname">IPython.external.guid.</tt><tt class="descname">extract_time</tt><big>(</big><big>)</big><a class="headerlink" href="#IPython.external.guid.extract_time" title="Permalink to this definition">¶</a></dt> <dd><p>Extracts the time portion out of the guid and returns the number of seconds since the epoch as a float</p> </dd></dl> <dl class="function"> <dt id="IPython.external.guid.generate"> <tt class="descclassname">IPython.external.guid.</tt><tt class="descname">generate</tt><big>(</big><big>)</big><a class="headerlink" href="#IPython.external.guid.generate" title="Permalink to this definition">¶</a></dt> <dd><p>Generates a new guid. A guid is unique in space and time because it combines the machine IP with the current time in milliseconds. Be careful about sending in a specified IP address because the ip makes it unique in space. You could send in the same IP address that is created on another machine.</p> </dd></dl> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../../index.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">external.guid</a><ul> <li><a class="reference internal" href="#module-IPython.external.guid">Module: <tt class="docutils literal"><span class="pre">external.guid</span></tt></a></li> <li><a class="reference internal" href="#functions">Functions</a></li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="IPython.external.configobj.html" title="previous chapter">external.configobj</a></p> <h4>Next topic</h4> <p class="topless"><a href="IPython.external.mglob.html" title="next chapter">external.mglob</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../../_sources/api/generated/IPython.external.guid.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../../search.html" method="get"> <input type="text" name="q" size="18" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="../../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="IPython.external.mglob.html" title="external.mglob" >next</a> |</li> <li class="right" > <a href="IPython.external.configobj.html" title="external.configobj" >previous</a> |</li> <li><a href="../../index.html">IPython 0.10.2 documentation</a> »</li> <li><a href="../index.html" >The IPython API</a> »</li> </ul> </div> <div class="footer"> © Copyright 2008, The IPython Development Team. Last updated on Apr 09, 2011. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1pre. </div> </body> </html>