strictyaml VS httpx

Compare strictyaml vs httpx and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
strictyaml httpx
21 53
1,407 12,234
- 2.5%
1.9 9.0
about 1 month ago 6 days ago
Python Python
MIT License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

strictyaml

Posts with mentions or reviews of strictyaml. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-20.
  • StrictYAML
    1 project | news.ycombinator.com | 29 Sep 2023
    1 project | /r/hypeurls | 3 Jul 2022
    8 projects | news.ycombinator.com | 2 Jul 2022
  • XML is better than YAML
    17 projects | news.ycombinator.com | 20 Sep 2023
    NestedText already is the way I use YAML; everything is intepreted as a string. I have some trust in my YAML parser to not mangle most strings. I could use NestedText, but users would be unfamiliar with it, and IIRC the only parsers are in Python. But then I could use StrictYaml too https://github.com/crdoconnor/strictyaml
  • The new type of SQL injection
    4 projects | /r/ProgrammerHumor | 15 Mar 2023
    you can stick to a subset of YAML syntax (e.g. strictYAML)
  • DO YOU YAML?
    7 projects | dev.to | 16 Jan 2023
    YAML stands for "YAML Ain’t Markup Language" - this is known as a recursive acronym. YAML is often used for writing configuration files. It’s human readable, easy to understand and can be used with other programming languages. Although YAML is commonly used in many disciplines, it has received criticism on the amoutn of whitespace .yml files have, difficulty in editing, and complexity of the standard. Despite the criticism, properly using YAML ensures that you can reproduce the results of a project and makes sure that the virtual environment packages play nicely with system packages. (If you're looking for another way to share environments there are other alternatives to YAML which include StrictYAML (a type-safe YAML parser) and NestedText)
  • The yaml document from hell
    8 projects | /r/programming | 12 Jan 2023
    The example you linked provides this as an example of a YAML document that he wants his format to support.
  • The YAML Document from Hell
    19 projects | news.ycombinator.com | 12 Jan 2023
    That safe subset exists and is implemented in a number of languages. It is called strict-yaml: https://hitchdev.com/strictyaml/
  • Hacker News top posts: Jul 3, 2022
    2 projects | /r/hackerdigest | 3 Jul 2022
    StrictYAML\ (33 comments)
  • Why JSON Isn’t a Good Configuration Language (2018)
    9 projects | news.ycombinator.com | 7 Jun 2022
    To me those are in the category of "nice to have", and the problem is that every developer has different preferences for these [1] [2]. But the main features of StrictYaml, like supporting comments and less syntactic noise, I think are pretty uncontroversial, and perhaps it's worth it to get people to switch over for those alone. It doesn't need to be perfect, it just needs to be a significant enough improvement over JSON, and I'd say those two features are more than enough

    [1]: https://github.com/crdoconnor/strictyaml/issues/37

    [2]: https://github.com/crdoconnor/strictyaml/issues/38

httpx

Posts with mentions or reviews of httpx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-27.
  • A Retrospective on Requests
    2 projects | news.ycombinator.com | 27 Feb 2024
    For reference, it's a butterfly, not a moth.

    Source: https://github.com/encode/httpx/issues/834

  • Show HN: Twitter API Wrapper for Python – No API Keys Needed
    3 projects | news.ycombinator.com | 3 Feb 2024
    Very cool, first I'm hearing of httpx https://www.python-httpx.org/

    I think most people would start with trying out requests or something for this kind of work, I'm guessing that didn't work out? You've got a star from me.

  • Harlequin: SQL IDE for Your Terminal
    11 projects | news.ycombinator.com | 5 Jan 2024
    To access 10 different commands at the same time, that is tricky but definitely doable.

    First thing that comes to mind, you can use aliases.

    To keep it simple, lets use 3 examples instead of 10: harlequin (this project), pgcli (https://www.pgcli.com/) and httpx (https://www.python-httpx.org/)

    Setup a main home for all your venvs:

        cd ~
  • HTTP Rate Limit
    3 projects | dev.to | 4 Jan 2024
    There are already some implementations for Python HTTP clients. One of them is aiometer. But it's not suitable for my use case. Since httpx already has the internal pool, it would be better to reuse the design.
  • Introducing Flama for Robust Machine Learning APIs
    11 projects | dev.to | 18 Dec 2023
    Besides, flama also provides support for SQL databases via SQLAlchemy, an SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL. Finally, flama also provides support for HTTP clients to perform requests via httpx, a next generation HTTP client for Python.
  • Embracing Modern Python for Web Development
    12 projects | dev.to | 8 Dec 2023
    We can use the async HTTP client provided by httpx, a fully featured HTTP client for Python with an API broadly compatible with requests, so it can be used in pretty much the same way in most cases.
  • Didn't want to click on refresh to see updates, this is what I did!
    2 projects | dev.to | 15 Nov 2023
    httpx in place of requests library
  • Python Requests 3
    1 project | news.ycombinator.com | 13 Nov 2023
    The main value of Requests is that it provided an abstract interface on top of HTTP, which was designed well-enough to become a standard. But today it has fallen way behind in its field, and there are much better alternatives such as HTTPX [0].

    [0] https://www.python-httpx.org/

  • Unlocking Performance: A Guide to Async Support in Django
    2 projects | dev.to | 25 Jun 2023
    HTTPX is a popular Python library that provides an asynchronous HTTP client, and it can be beneficial for enabling async support in Django. While Django itself does not require HTTPX for async support, using HTTPX in combination with Django's async views can bring several advantages:
  • Show HN: Python package for interfacing with ChatGPT with minimized complexity
    8 projects | news.ycombinator.com | 19 Jun 2023
    The underlying library for both sync and async is httpx (https://www.python-httpx.org/) which may be limited from the HTTP Client perspective but it may be possible to add rate limiting at a Session level.

What are some alternatives?

When comparing strictyaml and httpx you can also consider the following projects:

pyyaml - Canonical source repository for PyYAML

AIOHTTP - Asynchronous HTTP client/server framework for asyncio and Python

nestedtext - Human readable and writable data interchange format

Niquests - Requests but with HTTP/3, HTTP/2, Multiplexed Connections, System CAs, Certificate Revocation, DNS over HTTPS / TLS / QUIC or UDP, Async, DNSSEC, and (much) pain removed!

ytt - YAML templating tool that works on YAML structure instead of text

requests-html - Pythonic HTML Parsing for Humansâ„¢

crudini - A utility for manipulating ini files

requests - A simple, yet elegant, HTTP library.

yaml-rust - A pure rust YAML implementation.

Flask - The Python micro framework for building web applications.

starlark-go - Starlark in Go: the Starlark configuration language, implemented in Go

starlette - The little ASGI framework that shines. 🌟