Commit dd63740a authored by Denis Bilenko's avatar Denis Bilenko

remove index.rst

parent e6899d0c
......@@ -34,7 +34,6 @@ html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
./fixindex.py
rm -f _build/html/_static/jquery.js
text:
......
{%- block doctype -%}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{%- endblock %}
{%- set reldelim1 = reldelim1 is not defined and ' &raquo;' or reldelim1 %}
{%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{{ metatags }}
<title>gevent: A coroutine-based network library for Python</title>
<link rel="stylesheet" href="{{ pathto('_static/', 1) }}index.css" type="text/css" />
{%- block extrahead %} {% endblock %}
</head>
<body class="homepage">
<div class="document">
<div class="body">
{{ body }}
</div>
</div>
</body>
</html>
#!/usr/bin/python
import os, re
index_name = '_build/html/index.html'
contentstable_name = '_build/html/contentstable.html'
if os.path.exists(contentstable_name):
# replace 'insert-contenstable.html' with contestable.html
index = open(index_name).read()
contentstable = open(contentstable_name).read()
index = index.replace('INSERT-contentstable.html', contentstable)
open(index_name, 'w').write(index)
os.unlink(contentstable_name)
# protect email
email_re = re.compile('<a .*?mailto.*?</a>')
def repl(m):
source = m.group(0)
result = "<script type=\"text/javascript\">document.write('"
while source:
piece, source = source[:5], source[5:]
result += piece + "'+'"
return result + "')</script><noscript><small>enable javascript to see the email</small></noscript>"
newindex, n = email_re.subn(repl, index)
if not n:
print 'no email found'
else:
assert n == 1, (n, newindex)
open(index_name, 'w').write(newindex)
gevent
======
gevent is a coroutine_-based Python_ networking library that uses greenlet_ to provide
a high-level synchronous API on top of libevent_ event loop.
Features include:
* `convenient API around greenlets`__
* familiar synchronization primitives (:mod:`gevent.event`, :mod:`gevent.queue`)
* :doc:`socket module that cooperates <gevent.socket>`
* :doc:`WSGI server on top of libevent-http <gevent.wsgi>`
* DNS requests done through libevent-dns
* :ref:`monkey patching utility to get pure Python modules to cooperate <monkey-patching>`
__ gevent.html
.. _coroutine: http://en.wikipedia.org/wiki/Coroutine
.. _Python: http://www.python.org
.. _greenlet: http://codespeak.net/py/0.9.2/greenlet.html
.. _libevent: http://monkey.org/~provos/libevent/
examples
--------
Browse ``examples/`` folder at bitbucket_ or `google code`_.
.. _bitbucket: http://bitbucket.org/denis/gevent/src/tip/examples/
.. _google code: http://code.google.com/p/gevent/source/browse/#hg/examples
documentation
-------------
INSERT-contentstable.html
get gevent
----------
The latest release `0.12.0`_ is available on the `Python Package Index.`_
.. _0.12.0: changelog.html
.. _Python Package Index.: http://pypi.python.org/pypi/gevent
The current development version is available in a Mercurial repository:
* at bitbucket: http://bitbucket.org/denis/gevent/
* on google code: http://code.google.com/p/gevent/
installation
------------
Install the dependencies:
* greenlet: http://pypi.python.org/pypi/greenlet (it can be installed with ``easy_install greenlet``)
* libevent 1.4.x: http://monkey.org/~provos/libevent/
gevent runs on Python 2.4 and higher.
similar projects
----------------
* `Eventlet <http://eventlet.net/>`_
* `Concurrence <http://opensource.hyves.org/concurrence/>`_
* `StacklessSocket <http://code.google.com/p/stacklessexamples/wiki/StacklessNetworking>`_
feedback
--------
Use `Issue Tracker on Google Code`__ for the bug reports / feature requests.
Comment on the `blog`_.
Send your questions and suggestions to the `mailing list`_.
Contact me directly at denis.bilenko@gmail.com.
__ http://code.google.com/p/gevent/issues/list
.. _blog: http://blog.gevent.org
.. _mailing list: http://groups.google.com/group/gevent
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment