Live data from Hacker News

Viewing profile — pgjones

pgjones

HN member
Joined
Thu, Apr 23, 2015, 8:00 AM UTC
HN karma
173
Public activity
46 items

About pgjones

pgjones.dev

Quart, Flask, Werkzeug and Hypercorn maintainer, active in the Python async community.

Recent public activity

  1. 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…

  2. 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.

  3. comment
    Comment #44007704

    Sorry that is a typo, I meant, with sql_context(columns={"x"}):

  4. comment
    Comment #44006044

    Thank you! My Google foo did not find this.

  5. 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 = …

  6. comment
    Comment #44006014

    Thanks, do you have a reference for SQL grammar - I've had no success finding an official source.

  7. 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…

  8. 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.

  9. 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…

  10. 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:/…

  11. comment
    Comment #37725896

    Yes, I've written about this comparison in detail https://pgjones.dev/blog/fastapi-flask-quart-2022/ .

  12. comment
    Comment #37724232

    There are new logos for all the Pallets projects and Pallets itself, based on a common theme.

  13. 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…

  14. comment
    Comment #36599294

    https://pgjones.dev I blog mostly about Python web developed, especially Flask, Quart and Hypercorn related aspects.

  15. story
  16. 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, …

  17. 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.

  18. 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)…

  19. story
  20. comment
    Comment #29890615

    Or Hypercorn https://gitlab.com/pgjones/hypercorn if you want HTTP/1, HTTP/2, and HTTP/3.

  21. 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…

  22. 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).

  23. 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…

  24. story
  25. story