Skip to content
Snippets Groups Projects
Commit 16f185ca authored by Jeffrey Gelens's avatar Jeffrey Gelens
Browse files

ujson is optional now #46

parent 909659fc
Branches
Tags
No related merge requests found
recursive-include examples *
include LICENSE
include AUTHORS
include CHANGELOG
include README.rst
include MANIFEST.in
......@@ -74,9 +74,9 @@ Performance
^^^^^^^^^^^
`gevent-websocket`_ is pretty fast, but can be accelerated further by
installing `wsaccel <https://github.com/methane/wsaccel>`_::
installing `wsaccel <https://github.com/methane/wsaccel>`_ and `ujson` or `simplejson`::
$ pip install wsaccel
$ pip install wsaccel ujson
`gevent-websocket`_ automatically detects ``wsaccell`` and uses the Cython
implementation for UTF8 validation and later also frame masking and
......
VERSION = (0, 9, 1, 'final', 0)
VERSION = (0, 9, 3, 'final', 0)
__all__ = [
'WebSocketApplication',
......
import inspect
import ujson as json
import random
import string
import types
import ipdb; ipdb.set_trace()
try:
import ujson as json
except ImportError:
try:
import simplejson as json
except ImportError:
import json
from ..exceptions import WebSocketError
from .base import BaseProtocol
......
cython
wsaccel
ujson
-r requirements.txt
gevent==1.0
greenlet==0.4.1
ujson==1.33
......@@ -16,10 +16,7 @@ setup(
packages=find_packages(exclude=["examples", "tests"]),
license=open('LICENSE').read(),
zip_safe=False,
install_requires=(
"gevent",
"ujson"
),
install_requires=("gevent"),
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment