Commit graph

48 commits

Author SHA1 Message Date
Giovanni Barillari
3e62d24d6e
Add forwarded headers wrappers (#620)
Some checks failed
test / linux (3.10) (push) Has been cancelled
test / linux (3.11) (push) Has been cancelled
test / linux (3.12) (push) Has been cancelled
test / linux (3.13) (push) Has been cancelled
test / linux (3.14) (push) Has been cancelled
test / linux (3.9) (push) Has been cancelled
test / linux (pypy3.11) (push) Has been cancelled
test / linux (3.13t) (push) Has been cancelled
test / linux (3.14t) (push) Has been cancelled
test / macos (3.10) (push) Has been cancelled
test / macos (3.11) (push) Has been cancelled
test / macos (3.12) (push) Has been cancelled
test / macos (3.13) (push) Has been cancelled
test / macos (3.14) (push) Has been cancelled
test / macos (3.9) (push) Has been cancelled
test / macos (3.13t) (push) Has been cancelled
test / macos (3.14t) (push) Has been cancelled
test / windows (3.10) (push) Has been cancelled
test / windows (3.11) (push) Has been cancelled
test / windows (3.12) (push) Has been cancelled
test / windows (3.13) (push) Has been cancelled
test / windows (3.13t) (push) Has been cancelled
test / windows (3.14) (push) Has been cancelled
test / windows (3.14t) (push) Has been cancelled
test / windows (3.9) (push) Has been cancelled
2025-06-28 14:38:54 +02:00
Giovanni Barillari
7949c46045
Add working directory option (#619) 2025-06-28 13:21:30 +02:00
Giovanni Barillari
977b6fa97f
Update readme 2025-06-28 12:56:08 +02:00
Giovanni Barillari
d535571c0a
Add dotenv files loading support (#615) 2025-06-27 17:30:17 +02:00
Giovanni Barillari
7e70f109a9
Update readme 2025-06-02 19:56:18 +02:00
Giovanni Barillari
022c8d479d
Update readme 2025-05-13 21:29:11 -07:00
Khaleel Al-Adhami
c7f2f5b4de
Allow to control watchfiles iter frequency (#530)
* add reload delay option

* forgot to change this

* Code review

---------

Co-authored-by: Giovanni Barillari <giovanni.barillari@sentry.io>
2025-03-23 20:41:52 +01:00
Khaleel Al-Adhami
7c99f35267
Allow to ignore workers failure when reloader is enabled (#528)
* do not kill main process on worker exit on hot reload

* add it behind config

* Code review

---------

Co-authored-by: Giovanni Barillari <giovanni.barillari@sentry.io>
2025-03-23 20:29:40 +01:00
Giovanni Barillari
2bcbffc8cf
Add request headers read timeout (#509) 2025-02-26 22:28:54 +01:00
Giovanni Barillari
e9518354bb
Bump version to 2.0 (#507)
* Add back custom allocators

* Rename runtime params

* Stop producing PGO builds
2025-02-25 20:27:28 +01:00
Giovanni Barillari
21616d6db1
Update readme 2025-02-10 22:21:34 +01:00
Giovanni Barillari
0a134cd017
Update readme 2025-02-10 21:58:46 +01:00
Giovanni Barillari
02401e5148
Add --task-impl option (#468) 2024-12-17 09:57:20 +01:00
Hynek Schlawack
b40c6d070b
Add logging note to README (#446)
* Add logging note to README

Fixes https://github.com/emmett-framework/granian/issues/418

* Review logging notes in README

---------

Co-authored-by: Giovanni Barillari <giovanni.barillari@sentry.io>
2024-12-12 12:22:34 +01:00
Hendrik Muhs
bde1255f60
Add workers kill timeout option (#435)
* implement a workers graceful timeout

* add parameter to readme

* fix wording / linting

* remove '.'

* ruff

* make graceful timeout an int range and disable it per default, add tests

* add runtime threading mode

* lint

* ruff

* skip graceful restart test on windows

* no restart on windows

* revert yielding the pid and separating restart tests

* improve code comment

* only sleep if necessary

* revert tests

* revert conftest from upstream master

* fix ruff error

* Minor refactor

---------

Co-authored-by: Giovanni Barillari <giovanni.barillari@sentry.io>
2024-12-12 12:12:25 +01:00
Giovanni Barillari
cc022ea3ec Cleanup README 2024-12-04 19:07:25 +01:00
Giovanni Barillari
e711c812de
Upgrade to PyO3 0.23 (#454)
* Upgrade to PyO3 0.23

* Drop Python 3.8 support
2024-12-02 23:47:28 +01:00
Giovanni Barillari
0741845ea1
Use custom asyncio Task impl, drop --loop-opt (#452) 2024-12-01 17:55:13 +01:00
monosans
915ba92efd
feat: add support for logging.NOTSET level (#439) 2024-12-01 13:14:20 +01:00
Giovanni Barillari
8c7da0dcae Update readme 2024-09-03 20:13:53 +02:00
Giovanni Barillari
033d9e5ffc
Add support for encrypted SSL keys (#386) 2024-08-31 19:07:48 +02:00
Giovanni Barillari
2c982303a9
Add workers lifetime option (#372) 2024-08-31 18:28:38 +02:00
Amon Khavari
31fb8997aa
Minor enhancement on reload cli docs (#394) 2024-08-30 01:20:36 +02:00
Giovanni Barillari
773f99790e
Update README 2024-08-22 13:05:46 +02:00
Amon Khavari
ecde8151d5
Enhance reload options (#362)
* Add watchfile reload options
* Includes reload path option and filter options

* feat: adjust reload feature

* Update granian/server.py

* gh comments: remove pathlib import and better naming ignore-patterns

* gh comments: default args

* gh comments

* improve type hint to

* improvements to documentation

* Minor CLI help change

---------

Co-authored-by: Andrew Chen Wang <acwangpython@gmail.com>
Co-authored-by: Giovanni Barillari <giovanni.barillari@sentry.io>
2024-08-22 13:02:27 +02:00
Giovanni Barillari
e4aa8c37d4 Improve CLI params description 2024-05-27 19:46:08 +02:00
Giovanni Barillari
4718c12012
Add backpressure (#301) 2024-05-26 16:02:44 +02:00
Giovanni Barillari
1401261f36
Add access log (#298) 2024-05-25 17:06:43 +02:00
Giovanni Barillari
a0cdb938ca Update readme 2024-04-27 00:37:44 +02:00
Giovanni Barillari
996637c3f0
Add asginl interface to skip ASGI lifespan (#153) 2024-03-19 00:25:13 +01:00
Giovanni Barillari
459a864a74
Add process name customization (#212) 2024-02-13 23:58:53 +01:00
Ran Benita
1c29d59802
Make the watchfiles dependency optional (#204) 2024-02-12 18:13:31 +01:00
Ikko Eltociear Ashimine
743994e0fa
Fix typo in README.md (#210) 2024-02-12 14:50:58 +01:00
Giovanni Barillari
59c6996b8c Expose blocking threads option to CLI 2024-01-21 19:02:03 +01:00
Giovanni Barillari
faa24cb002 Update README 2024-01-21 18:34:02 +01:00
Eugene Glybin
f54d80766c
Make logging optional (#122) 2023-10-17 12:45:45 +02:00
Jeroen Dekkers
b0c8c32d7f
Support configuration with environment variables (#140) 2023-10-16 18:04:59 +02:00
Giovanni Barillari
e3853c04bb Update readme 2023-06-22 11:59:59 +02:00
Giovanni Barillari
771eba3ce5 Update README 2023-05-09 14:31:56 +02:00
Giovanni Barillari
05edbfc03c Drop Python 3.7 support (#70) 2023-05-08 16:17:59 +02:00
Giovanni Barillari
a309b0b1ca Update benchmarks results 2022-12-24 18:04:30 +01:00
Giovanni Barillari
632d8c1956 Update README 2022-12-22 18:21:13 +01:00
Giovanni Barillari
33ffb94b16 Update readme 2022-11-02 00:06:28 +01:00
Giovanni Barillari
ac51b5f6d8 Add rsgi specification (#3) 2022-10-18 17:33:32 +02:00
Giovanni Barillari
4b5c9a34da Update readme 2022-10-01 17:05:57 +02:00
Giovanni Barillari
5882a04f34 Update readme 2022-07-21 18:55:33 +02:00
Giovanni Barillari
3f030e9d78 update readme 2022-04-16 18:39:02 +02:00
Giovanni Barillari
3a3812c381 Bismillah! 2022-04-15 18:44:06 +02:00