Commit Graph

263 Commits

Author SHA1 Message Date
Andrew Godwin
10224ff06c Flake, stop worrying about this file. 2016-03-22 10:20:15 -07:00
Andrew Godwin
6884e7d1e8 Fixed #93: Unicode regex patterns not working on http.request path 2016-03-22 10:17:38 -07:00
Andrew Godwin
afa46cfe0f Provide route and include at top level 2016-03-22 10:15:52 -07:00
Andrew Godwin
13d6c88c7f Releasing 0.10.0 2016-03-21 16:46:42 -07:00
Andrew Godwin
8522eb40ca Update single-reader channel names to split on !, not start. 2016-03-21 16:38:23 -07:00
Andrew Godwin
4f8b297462 Make flake8 more happy 2016-03-20 14:10:05 -03:00
Andrew Godwin
3cdf51ed84 Better spacing in routing tests 2016-03-20 14:06:35 -03:00
Andrew Godwin
18385d68f0 Fix bad rename stuff 2016-03-20 13:52:54 -03:00
Andrew Godwin
841e19da79 Change to a full pattern-based routing system. 2016-03-20 13:48:34 -03:00
Andrew Godwin
2732a66e81 Improve name_that_thing to handle instance methods 2016-03-20 13:48:34 -03:00
Andrew Godwin
8faf37bfbf Fix type of cookie header string 2016-03-16 09:50:15 -03:00
Andrew Godwin
f1ab1100f5 Locale fix from runserver (#86) 2016-03-12 12:14:02 -08:00
Andrew Godwin
5bf19f52f6 Remove status_text from the HTTP response spec. 2016-03-11 10:30:40 -08:00
Andrew Godwin
9f8bf30cdd Fix handler test 2016-03-11 10:23:07 -08:00
Andrew Godwin
820e955515 Change ASGI spec regarding headers. 2016-03-11 10:20:17 -08:00
Andrew Godwin
a06026c99a Releasing 0.9.5 2016-03-10 17:57:57 -08:00
Andrew Godwin
df8a9dbbd1 Change --alias to --layer on runworker 2016-03-10 17:57:13 -08:00
Andrew Godwin
1ee7b2861c Add --alias option to runworker 2016-03-10 17:55:42 -08:00
Andrew Godwin
053850fdd6 Use WSGI runserver if no channel backend configured 2016-03-10 17:55:42 -08:00
Andrew Godwin
a2d64f9335 Releasing 0.9.4 2016-03-08 10:20:08 -08:00
Andrew Godwin
4b82d989ca Remove old code from Channel/Group 2016-03-06 12:12:48 -08:00
Andrew Godwin
c4719f79bc Don't make worker thread do signals during runserver 2016-03-06 11:11:58 -08:00
Andrew Godwin
08d1f9a14d Graceful shutdown for workers on SIGTERM and SIGINT 2016-03-02 17:21:58 -08:00
Andrew Godwin
484320a675 Reduce Daphne HTTP timeout in runserver mode 2016-03-02 17:00:49 -08:00
Andrew Godwin
1869061fa2 I like having a plus here. 2016-03-02 10:46:22 -08:00
Andrew Godwin
447c2e77cc Fix line length 2016-03-02 10:46:05 -08:00
Andrew Godwin
8fba5220d9 Detect if you forget to decorate things with enforce_ordering 2016-03-02 10:42:18 -08:00
Andrew Godwin
cdde27b55a Releasing 0.9.3 2016-02-28 22:06:25 -08:00
Andrew Godwin
b129adf4a4 Increase FileResponse chunk size for staticfiles handler 2016-02-28 22:04:03 -08:00
Andrew Godwin
61b8940e99 Warn when trying to use runworker with in memory layer 2016-02-28 21:52:35 -08:00
Andrew Godwin
9dae793cde Release 0.9.2 2016-02-28 21:12:11 -08:00
Andrew Godwin
fe352542cc Fix for Django 1.8/1.9 2016-02-24 07:00:33 -08:00
Andrew Godwin
c64fe97463 Fix trailing whitespace 2016-02-23 19:36:17 -08:00
Andrew Godwin
69186ef7b7 Replace linearize with the more useful enforce_ordering. 2016-02-24 00:40:38 +00:00
Andrew Godwin
38c6df8125 Move ResponseLater into exceptions module 2016-02-24 00:39:48 +00:00
Andrew Godwin
5ff77719be Make database channel layer use transactions to stop dupes 2016-02-23 22:14:30 +00:00
Andrew Godwin
307fc6c0bb Release 0.9.1 2016-02-21 13:19:57 +00:00
Andrew Godwin
ca0d9e9651 Fix version import during pip install 2016-02-21 13:18:57 +00:00
Andrew Godwin
73f840432d Version 0.9 2016-02-21 13:16:03 +00:00
Andrew Godwin
973b8b72ad Show time taken on runserver output 2016-02-21 12:31:16 +00:00
Andrew Godwin
8221bbc0be Staticfiles handler and consumer 2016-02-20 23:33:27 +00:00
Andrew Godwin
d18c715f8f Fix core logging when no message on channel 2016-02-20 23:33:14 +00:00
Andrew Godwin
93d1aa9b74 Add staticfiles support and launch multiple serving workers 2016-02-20 23:32:29 +00:00
Andrew Godwin
247a26b91a Fix streaming responses (e.g. staticfiles.serve) 2016-02-20 23:32:01 +00:00
Andrew Godwin
e666355fad Remove old echo code and allow configuring of http handler 2016-02-20 23:31:27 +00:00
Andrew Godwin
d180f07b54 Wrap long line 2016-02-20 22:59:29 +00:00
Andrew Godwin
64fe0cb77f Add --noasgi option to runserver to run the old WSGI server instead 2016-02-20 22:56:10 +00:00
Andrew Godwin
267e56ce2a Make transfer_user fail silently if no user 2016-02-20 22:47:48 +00:00
Andrew Godwin
171b9d8552 Add META['SCRIPT_NAME'] for backwards compat 2016-02-20 22:47:35 +00:00
Andrew Godwin
31447a4641 User auth fixing 2016-02-14 21:27:12 +00:00
Andrew Godwin
5c9093ddeb Fix bug with sending empty response 2016-02-14 21:26:34 +00:00
Andrew Godwin
be1498768f HTTP Long Poll finishing off 2016-02-14 19:22:46 +00:00
Andrew Godwin
4f60726ec4 Remove unused imports 2016-02-14 18:50:05 +00:00
Andrew Godwin
943733c447 Additional logging and --noworker option 2016-02-14 18:47:30 +00:00
Andrew Godwin
1328c367dc Move default-request handling into common place 2016-02-14 17:11:44 +00:00
Andrew Godwin
b468ddd930 More flake fixes 2016-02-10 20:37:57 +00:00
Andrew Godwin
caca13c2bc Remove extra blank line 2016-02-10 20:31:50 +00:00
Andrew Godwin
41b6750afb Do much more runserver-like logging 2016-02-10 20:26:56 +00:00
Andrew Godwin
fee6a38483 Handle request body encoding 2016-02-10 19:50:36 +00:00
Andrew Godwin
76611b7e6e Fix up some comments 2016-02-10 19:29:47 +00:00
Andrew Godwin
cd17c88533 Fix flake errors 2016-02-10 19:28:12 +00:00
Andrew Godwin
a4381f427e Fix runserver to properly autoreload w/Twisted 2016-02-10 19:24:18 +00:00
Andrew Godwin
1a7010aa2c Make _stream work on AsgiRequest 2016-02-10 19:15:00 +00:00
Andrew Godwin
c7d417dd33 OKAY I THINK THIS IS THE LAST STUPID MISTAKE 2016-02-09 13:35:13 -08:00
Andrew Godwin
49cbf31872 Fix more python 3 unicode issues 2016-02-09 13:32:37 -08:00
Andrew Godwin
be172045ed Fix test path encoding 2016-02-09 13:04:23 -08:00
Andrew Godwin
aff9ca2f13 Update runserver to autoreload w/daphne in main thread 2016-02-09 13:01:46 -08:00
Andrew Godwin
5ddeed4a25 Remove dead code 2016-02-09 13:01:46 -08:00
Andrew Godwin
b7b11cb075 Remove sneaky print 2016-02-05 16:47:43 -08:00
Andrew Godwin
fa58375a51 Python 3 fixes 2016-02-05 16:47:11 -08:00
Andrew Godwin
13766a3027 Fix flake8 errors 2016-02-05 16:26:05 -08:00
Andrew Godwin
1dab70ed86 Update CI config a bit more. 2016-02-05 16:22:58 -08:00
Andrew Godwin
5cd2cbdfee Add test suite for ASGI handlers 2016-02-05 15:53:01 -08:00
Andrew Godwin
17e9824f71 Update database channel backend to pass conformance 2016-02-05 14:16:20 -08:00
Andrew Godwin
a9810014ca Rework database channel layer and tests, to use ASGI conformance suite 2016-01-17 14:28:01 -08:00
Andrew Godwin
5fa357e403 Disable linearize until it's reimplemented on sessions. 2016-01-17 14:22:28 -08:00
Andrew Godwin
5348c52778 Fixed #33: Add wsgi.multi* variables for back compat. 2016-01-02 18:35:43 -08:00
Andrew Godwin
d452486524 Correct body/POST handling 2016-01-02 18:10:25 -08:00
Andrew Godwin
836f6be43a Make runserver work using daphne 2016-01-02 17:53:53 -08:00
Andrew Godwin
b9464ca149 Start making channels work to ASGI spec. 2016-01-02 10:17:45 -08:00
Andrew Godwin
5a95248b3f Initial script name support 2015-12-18 21:23:09 +00:00
Andrew Godwin
a0b2696b30 Merge pull request #50 from bastianh/redis_url
Fixed #39: Allow redis:// URL redis configuration
2015-12-16 21:37:40 +00:00
Bastian Hoyer
70bc429d0b Fixed #39: Allow redis:// URL redis configuration 2015-12-16 20:42:56 +01:00
Bastian Hoyer
c5fdf16568 Fixes #44 also for twisted backend 2015-12-16 20:10:34 +01:00
Andrew Godwin
42d437eaf8 Fixed #44: Don't make autobahn check host/path 2015-12-15 19:55:26 +00:00
knbk
c9135ddcbe Fixed typo 2015-12-13 02:31:52 +01:00
Andrew Godwin
b6f38910de Working mixed-mode HTTP/WebSocket server! 2015-12-02 12:54:52 -08:00
Andrew Godwin
bf9a423211 Twisted HTTP interface now serves basic requests 2015-12-02 12:38:02 -08:00
ekmartin
4f87d53adc Include cookies in request_info for websockets 2015-11-18 17:48:03 +01:00
Andrew Godwin
0c03ea7780 Merge pull request #29 from ekmartin/tests_and_py3
Run tests with tox and add flake8/isort
2015-11-09 12:25:06 +00:00
ekmartin
28e132468f Store the session key as a string 2015-11-09 13:09:34 +01:00
ekmartin
cf2de79d64 Add isort and fix errors 2015-11-09 13:01:02 +01:00
ekmartin
1804d66b85 Ignore testproject for flake8 2015-11-09 13:00:00 +01:00
ekmartin
14bc306214 Make sure channels() actually returns the channel list 2015-11-09 13:00:00 +01:00
ekmartin
4469b55d96 Fix pep8 errors using the Django core's flake8 preset 2015-11-09 13:00:00 +01:00
ekmartin
351a18ba07 Add tox and run tests for python 2.7/3.5 and Django 1.6-1.8 2015-11-09 12:58:59 +01:00
Ben Cole
57f21d71e2 Added logging 2015-11-09 11:16:32 +01:00
Andrew Godwin
9222676bf7 Change status_code to status in http.response 2015-11-07 05:32:11 -08:00
Andrew Godwin
7b3845b0b2 Merge pull request #25 from wengole/master
Use Django's six and require Django instead of six
2015-11-07 14:24:06 +01:00
Andrew Godwin
b6714c8a65 Fixed #20: Bad routing setup for default backend 2015-11-07 05:02:03 -08:00
Ben Cole
21b54e7db8 Use Django's six and require Django instead of six 2015-11-07 13:47:26 +01:00
Andrew Godwin
dae0b257d6 Fix tests with unicode and isolation 2015-11-07 04:45:10 -08:00
Andrew Godwin
cac848fc89 Python 3 / unicode fixes 2015-11-07 03:13:05 -08:00
Andrew Godwin
f3c3a239b9 Add echo channel and fix __str__ on redis backend 2015-11-06 08:12:51 -08:00
Andrew Godwin
a41516fa6b Make Redis backend shardable 2015-11-06 08:00:15 -08:00
Andrew Godwin
5106c7822c Remove path_info from request message format 2015-11-06 13:39:48 +01:00
Andrew Godwin
c937c4da6d Don't keep doing keepalives if main loop dies 2015-11-06 13:39:47 +01:00
Andrew Godwin
b9f07475b7 Shuffle fetch order for channels to prevent starvation 2015-11-06 13:39:46 +01:00
Andrew Godwin
aaf2321db1 Make sure content on a send/close is sent before close 2015-11-06 13:39:44 +01:00
John Leith
56c375d460 keeping the parent class signature 2015-10-14 08:20:23 -06:00
Andrew Godwin
ab2f1df698 Merge pull request #19 from aexeagmbh/patch-port
fix hardcoded port in asyncio
2015-09-18 10:01:54 -07:00
Arne Schauf
503c5fd54b fix uuid generation 2015-09-18 10:35:47 +02:00
Arne Schauf
07bdaf020b fix hardcoded port in asyncio 2015-09-18 10:35:13 +02:00
Andrew Godwin
cadae8346a Merge pull request #16 from aexeagmbh/patch-port
Add cast to int when reading port argument
2015-09-17 09:34:44 -07:00
Arne Schauf
c1990a92ed decode incoming data before loading 2015-09-17 18:03:04 +02:00
Arne Schauf
29c5ee4c3f Add cast to int when reading port argument 2015-09-17 11:32:49 +02:00
Faris Chebib
ff9cdb7113 updated example and made decorators py3-ready 2015-09-10 16:57:57 -06:00
Andrew Godwin
655213eff9 0.8 2015-09-10 16:01:18 -05:00
Andrew Godwin
bd1553556d Refactor websocket servers a bit to share logic 2015-09-10 16:00:31 -05:00
Andrew Godwin
f69ad33747 Fixed #9: Add asyncio websocket server 2015-09-10 14:41:47 -05:00
Faris Chebib
414a4ab460 updated print statements 2015-09-10 12:26:08 -06:00
Andrew Godwin
638bf260f8 Fixed #6: Linearise decorator and better user session stuff 2015-09-10 11:52:49 -05:00
Andrew Godwin
2839a4265e Fix tests. 2015-09-09 22:07:22 -05:00
Andrew Godwin
2dd7f589eb Lowercase request GET/POST etc. 2015-09-09 21:25:36 -05:00
Andrew Godwin
70caf7d171 Rename channels and change message format docs 2015-09-09 21:21:43 -05:00
Andrew Godwin
fc52e3c5a2 Remove auto-importing of modules 2015-09-09 20:58:32 -05:00
Andrew Godwin
48d6f63fb2 Change to consumers taking a single "message" argument 2015-09-08 01:04:36 -05:00
Andrew Godwin
9b92eec43a Fix request/response compatability 2015-09-07 15:04:10 -05:00
Andrew Godwin
4c65ad4c09 Remove done comment 2015-09-03 00:08:05 -07:00
Andrew Godwin
16a0e73c6c Make runserver work with autoreload 2015-09-03 00:07:57 -07:00
Andrew Godwin
832809ca25 Stop using @consumer, move to explicit routing 2015-09-03 00:07:30 -07:00
Andrew Godwin
29eb75326f Make session decorator work right with ?session_key= 2015-09-03 00:06:58 -07:00
Andrew Godwin
a0830f88f7 Initial django session and auth decorators 2015-09-02 00:09:53 -07:00
Andrew Godwin
062035f992 Change to sending GET/POST as dicts of lists 2015-09-02 00:09:38 -07:00
Andrew Godwin
39a82e2a5c Make worker print exceptions rather than explode 2015-09-02 00:09:14 -07:00
Andrew Godwin
feb3017c0e Fix request GET/POST format 2015-08-04 23:54:10 +01:00
Andrew Godwin
b5210e38c4 Keepalive messages for WebSockets, and ! response chan prefix 2015-07-13 19:15:44 -07:00
Andrew Godwin
804a4c561e Implement send_channel_session 2015-07-13 17:58:52 -07:00
Andrew Godwin
6e91ea0040 Make the location of channels in INSTALLED_APPS not matter 2015-07-13 15:51:10 -05:00
Andrew Godwin
dfc11d4a67 Merge pull request #5 from hawkowl/py3
Port channels to py3
2015-07-13 00:18:28 -05:00
HawkOwl
8497b081a7 not required 2015-07-13 13:15:05 +08:00
Andrew Godwin
372d174eca Merge pull request #2 from nemesisdesign/patch-1
Fixed docstring typo in ResponseLater
2015-07-13 00:13:22 -05:00
HawkOwl
6abdeb4b48 Merge remote-tracking branch 'origin/master' 2015-07-13 12:53:46 +08:00
HawkOwl
9d86aaad34 hawkie fixes 2015-07-13 12:53:39 +08:00
Andrew Godwin
964c457df1 Make groups actually work 2015-07-12 23:52:02 -05:00
Andrew Godwin
3a4847887e Fix invalid py2 syntax 2015-07-12 23:37:43 -05:00
Andrew Godwin
8492dcde48 More docs, some API permutation 2015-07-12 21:25:53 -05:00
Andrew Godwin
aa921b1659 Channel groups, tests and docs 2015-07-12 20:19:10 -05:00
Federico Capoano
a488a3adfe Fixed docstring typo in ResponseLater
doown => down
2015-06-23 17:50:56 +02:00
Andrew Godwin
217afe0348 Start sphinx-ified docs 2015-06-20 10:27:22 +08:00