Viewing profile — pgjones
pgjones
HN member- Joined
- Thu, Apr 23, 2015, 8:00 AM UTC
- HN karma
- 173
- Public activity
- 46 items
- HN profile
- View on Hacker News ↗
About pgjones
Quart, Flask, Werkzeug and Hypercorn maintainer, active in the Python async community.
Recent public activity
-
comment
Comment #44016725
The `sql_context` feature is meant to protect against SQL injection. I think for your usecase you would need to supply all columns, but you could used nested t-strings included bas…
-
comment
Comment #44008856
It does parse the SQL. At the moment an expression is defined as all the text between the appropriate separators given the clause.
-
comment
Comment #44007704
Sorry that is a typo, I meant, with sql_context(columns={"x"}):
-
comment
Comment #44006044
Thank you! My Google foo did not find this.
-
comment
Comment #44006039
The presence of Absent removes the entire expression, and if that removal results in an empty clause (or group) it will remove that as well. For example if `a = Absent` `WHERE a = …
-
comment
Comment #44006014
Thanks, do you have a reference for SQL grammar - I've had no success finding an official source.
-
story
Show HN: SQL-tString a t-string SQL builder in Python
SQL-tString is a SQL builder that utilises the recently accepted PEP-750, https://peps.python.org/pep-0750/ , t-strings to build SQL queries, for example, from sql_tstring import s…
-
comment
Comment #43648373
If you want to see a usage for this I've built, and use, [SQL-tString]( https://github.com/pgjones/sql-tstring ) as an SQL builder.
-
comment
Comment #40788651
Quart, the ASGI version of Flask, also has background tasks, https://quart.palletsprojects.com/en/latest/how_to_guides/ba... , and there is an extension Quart-Tasks, https://github…
-
comment
Comment #40387708
It is a shame GCRA is not more well known and used for rate limiting. It is, in my view, a better algorithm. https://medium.com/smarkets/implementing-gcra-in-python-5df1... https:/…
-
comment
Comment #37725896
Yes, I've written about this comparison in detail https://pgjones.dev/blog/fastapi-flask-quart-2022/ .
-
comment
Comment #37724232
There are new logos for all the Pallets projects and Pallets itself, based on a common theme.
-
story
Tell HN: Flask and Quart have now partially merged
Flask is a web microframework built to be used with WSGI servers and synchronous code. Quart is the same web microframework built to be used with ASGI servers and asynchronous code…
-
comment
Comment #36599294
https://pgjones.dev I blog mostly about Python web developed, especially Flask, Quart and Hypercorn related aspects.
- story
-
comment
Comment #34533573
I've three things :), 1. Quart, https://quart.palletsprojects.com , an ASGI (async/await) re-implementation of the Python web MicroFramework Flask. It is now maintained alongside, …
-
comment
Comment #31957226
It is also easier to manage for Flask - it is very mature and we fixed most of the issues present in FastAPI many years ago.
-
comment
Comment #31957217
Flask supports async, see https://flask.palletsprojects.com/en/2.1.x/async-await/ . Also see Quart https://github.com/pgjones/quart (which is Flask re-implemented with async-await)…
- story
-
comment
Comment #29890615
Or Hypercorn https://gitlab.com/pgjones/hypercorn if you want HTTP/1, HTTP/2, and HTTP/3.
-
comment
Comment #29239059
You can already do this using Hypothesis with the Pydantic plugin, https://pydantic-docs.helpmanual.io/hypothesis_plugin/ . Here is an example for Quart-Schema (similar setup to Fa…
-
comment
Comment #26839413
Hypercorn a Python ASGI server supports HTTP/3 built on aioquic which is a Python library supports QUIC. (I'm the author of Hypercorn).
-
comment
Comment #24351474
Hi Hacker News, I’ve reached an age now where I need to start thinking about my retirement, in addition to buying a house, saving for a wedding, starting a family, affording to pay…
- story
- story