Arthur Goldberg
6763e2bb0a
fix?: recursion error on Sanic subclass initialisation ( #2072 )
...
* fix?: recursion error on Sanic subclass init
* tests: add test case for sanic subclass initialisation
* Remove BaseSanic metaclass
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-03-21 10:09:31 +02:00
Adam Hopkins
15a8b5c894
Perf improv ( #2074 )
...
* handler improvements for performance
* Resovle tests
* Linting
* Add tests
2021-03-21 09:47:21 +02:00
Adam Hopkins
8a2ea626c6
RFC/1684 Context objects ( #2063 )
...
* Initial setup
* connection context
* Add tests
* move ctx to conn_info
* Move __setattr__ for __fake_slots__ check into base calss
2021-03-17 20:55:52 +02:00
Adam Hopkins
01f238de79
Update CODEOWNERS
2021-03-16 11:24:53 +02:00
Adam Hopkins
7bed5a5c3c
Add convenience decorators for new listeners ( #2064 )
2021-03-16 11:21:05 +02:00
Adam Hopkins
2fea954dcf
Add signal reservations ( #2060 )
...
* Add signal reservations
* Simplify reservations
2021-03-14 15:21:59 +02:00
Adam Hopkins
d4660d0ca7
Add add_signal method ( #2061 )
2021-03-14 14:06:27 +02:00
Adam Hopkins
824f41d6e0
RFC/1630 Signals ( #2042 )
...
* Temp working version of initial signal api
* fix signals router finalizing
* Additional tests
* Add event test
* finalize test
* remove old comment
* Add some missing annotations
* multiple apps per BP support
* deepsource?
* rtemove deepsource
* nominal change
* fix blueprints test
* trivial change to trigger build
* signal docstring
* squash
* squash
* Add a couple new tests
* Add some suggestions from review
* Remove inaccessible code
* Change where to condition
2021-03-14 10:09:07 +02:00
Andrea Stagi
1165663ec1
Add name to Sanic instance in Hello World Example ( #2058 )
2021-03-12 15:23:13 +02:00
Adam Hopkins
b1a57a8b62
JSON encoder change via app ( #2055 )
2021-03-11 17:09:18 +02:00
Adam Hopkins
d76925cf35
Make get_app name optional ( #2053 )
2021-03-11 16:27:56 +02:00
Adam Hopkins
400f54c7ec
Update README.rst
2021-03-10 18:14:48 +02:00
Adam Hopkins
ec7e4390e8
Fix some examples and docs ( #2052 )
2021-03-10 11:19:38 +02:00
Adam Hopkins
5ca8bb85cd
Update CODEOWNERS
2021-03-08 20:01:07 +02:00
elis-k
5c624f8b76
Find packages ( #2049 )
...
Error when installing from master because some packages ('models' & 'mixins') are not being included.
2021-03-07 16:51:14 +02:00
Harsha Narayana
2c25af8cf5
GIT-2045: enable versioning and strict slash on BlueprintGroup ( #2047 )
...
* GIT-2045: enable versioning and strict slash on BlueprintGroup
* GIT-2045: convert named tuple into typed format + unit tests
* GIT-2045: add example code for versioned bpg
* GIT-2045: None value for strict slashes check
* GIT-2045: refactor handler types and add benchmark for urlparse
* GIT-2045: reduce urlparse benchmark iterations
* GIT-2045: add unit test and url merge behavior
* GIT-2045: cleanup example code and remove print
* GIT-2045: add test for slash duplication avoidence
* GIT-2045: fix issue with tailing / getting appended
* GIT-2045: use Optional instead of Union for Typing
* GIT-2045: use string for version arg
* GIT-2045: combine optional with union
2021-03-07 14:54:45 +02:00
Adam Hopkins
be905e0009
Create CODEOWNERS
2021-03-05 10:47:39 +02:00
Aksh Gupta
0d2d62eae5
chore: refactor code quality issues ( #2044 )
2021-03-05 10:26:03 +02:00
Adam Hopkins
00a1ee0cb6
Update conf.py
2021-03-04 14:14:48 +02:00
Adam Hopkins
f0d44822bc
Update README.rst
2021-03-04 14:12:40 +02:00
Adam Hopkins
e771e4e019
Update README.rst
2021-03-04 14:12:24 +02:00
Adam Hopkins
82e5f57edd
Update README.rst
2021-03-04 14:05:48 +02:00
Adam Hopkins
93a697f6ea
Add __str__ and __repr__ to Sanic and Bluepring ( #2043 )
2021-03-03 16:58:18 +02:00
Adam Hopkins
a733d32715
Add raw header info to request object ( #2032 )
2021-03-03 16:33:34 +02:00
Adam Hopkins
c41d7136e8
Change order of Docs index
2021-03-03 09:26:22 +02:00
Adam Hopkins
bb65dda277
Docs changes for RTD
2021-03-03 09:21:44 +02:00
Adam Hopkins
e1e9a7cf20
Update Sphinx docs to use README
2021-03-01 23:08:11 +02:00
Adam Hopkins
27f64ddae2
Router tweaks ( #2031 )
...
* Add trailing slash when defined and strict_slashes
* Add partial matching, and fix some issues with url_for
* Cover additional edge cases
* cleanup tests
2021-03-01 15:30:52 +02:00
Adam Hopkins
4b968dc611
Listeners for main server process ( #2018 )
...
* Initial POC
* Add test case
* Resolve create_server and Gunicorn serve)
* add testr coverage
2021-03-01 15:03:26 +02:00
Adam Hopkins
170177feb0
Update README.rst
2021-03-01 01:03:42 +02:00
Adam Hopkins
eef44ae179
Merge pull request #2006 from sanic-org/docs-annotations
...
API Docs & Annotations
2021-02-28 19:59:02 +02:00
Adam Hopkins
161efc67a3
Merge branch 'master' into docs-annotations
2021-02-25 09:23:01 +02:00
Adam Hopkins
dbfc11f4c5
Update codecov.yml
2021-02-24 21:09:27 +02:00
Adam Hopkins
e5ea4f5019
Update README.rst
2021-02-24 09:52:47 +02:00
Adam Hopkins
62d0b05309
Update README.rst
2021-02-24 09:50:21 +02:00
Adam Hopkins
aae8f13d9a
Update README.rst
2021-02-23 22:05:53 +02:00
Adam Hopkins
eac900d363
Update README.rst
2021-02-23 12:07:30 +02:00
Adam Hopkins
cd0c3d3eea
Merge branch 'master' into docs-annotations
2021-02-22 22:32:04 +02:00
Adam Hopkins
b461cc338c
Merge pull request #2038 from sanic-org/codecov
...
Codecov
2021-02-22 22:31:37 +02:00
Adam Hopkins
7c34b57e92
squash
2021-02-22 15:21:43 +02:00
Adam Hopkins
c35a53fe24
squash
2021-02-22 15:19:15 +02:00
Adam Hopkins
055c78b475
squash
2021-02-22 15:15:51 +02:00
Adam Hopkins
a9a52ef1e9
Make codecov more lenient
2021-02-22 15:14:04 +02:00
Adam Hopkins
a760989354
Merge branch 'docs-annotations' of github.com:sanic-org/sanic into docs-annotations
2021-02-22 14:08:41 +02:00
Adam Hopkins
dee95fd1c0
Add more py37 typing hacks
2021-02-22 14:08:14 +02:00
Adam Hopkins
9c48c7d39b
Add more py37 typing hacks
2021-02-22 14:08:04 +02:00
Adam Hopkins
fc5e3b4ede
Merge branch 'master' into docs-annotations
2021-02-22 13:43:23 +02:00
Adam Hopkins
baf96275bf
Merge pull request #2037 from sanic-org/drop36-tox
...
Fix tox for Python3.6 drop support
2021-02-22 13:43:03 +02:00
Adam Hopkins
3a45d3291b
Add support for 3.7 checking of mock transport
2021-02-22 13:39:16 +02:00
Adam Hopkins
c7307c1f85
Add support for 3.7 checking of mock transport
2021-02-22 13:39:10 +02:00