xhtml2pdf VS baseplate.py

Compare xhtml2pdf vs baseplate.py and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
xhtml2pdf baseplate.py
2 11
2,177 530
1.3% 1.1%
7.5 6.6
29 days ago 13 days ago
Python Python
Apache License 2.0 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.

xhtml2pdf

Posts with mentions or reviews of xhtml2pdf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-04.
  • What is an example of a fully finished python software product on github?
    3 projects | /r/learnprogramming | 4 Jul 2022
    Judging by your previous comments, you might get what you're looking for from xhtml2pdf. (Don't be put off by the 0.2.7 version number; xhtml2pdf has been in active development for over a decade and is a stable library.) It's generally used as a library in Python projects, but it does have a stand-alone command-line interface, and the library in general is thoroughly documented so you don't need to rely just on reading the code to figure out what's going on.
  • Create PDFs using Python and xhtml2pdf
    2 projects | dev.to | 27 Sep 2020
    Here, we will generate a PDF file using an HTML template. We have to keep in mind that xhtml2pdf supports until HTML4. So, first, we have to create an HTML file that will behave as a template for our PDF file.

baseplate.py

Posts with mentions or reviews of baseplate.py. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-12.
  • The .zip TLD sucks and it needs to be immediately revoked.
    4 projects | /r/programming | 12 May 2023
    Almost any download link on the internet (for example an attachment to any Wordpress blog post) could serve as an example. Since we are on a programming subreddit let's use Github as an example. When you open a repository and click the "Download ZIP" button it's a link straight to an URL like this one: https://github.com/reddit/baseplate.py/archive/refs/heads/develop.zip (this particular one is for Reddit's Python library).
  • Python use by SWEs
    2 projects | /r/cscareerquestions | 7 May 2023
    Even Reddit has python backends https://github.com/reddit/baseplate.py based on Pyramid. They also have a go one. https://github.com/reddit/baseplate.go
  • Reddit System Design/Architecture
    5 projects | /r/redditdev | 19 Mar 2023
    there's a multitude of services in reddit's architecture. as far as i can tell, they mostly using reddit's baseplate framework (which has implementations in both python and go).
  • Reddit Recap Series: Backend Performance Tuning
    4 projects | /r/RedditEng | 13 Mar 2023
    Finally, the problem that we didn’t experience directly, but it was mentioned during consultations with another team that had experience with pgBouncer: the Baseplate.py framework that both of us are using sometimes leaked the connections, leaving them open after the request, but not returning them back into the pool.
  • What is an example of a fully finished python software product on github?
    3 projects | /r/learnprogramming | 4 Jul 2022
  • Is the Pyramid framework dead?
    9 projects | /r/Python | 6 Dec 2021
    Also reddit team using pyramid for services https://github.com/reddit/baseplate.py
  • is flask only for "smaller" projects or it can also be used for large scalable projects ?
    2 projects | /r/flask | 23 Oct 2021
    Reddit is built on neither Flask nor Django. The old monolith predates Flask and Django and is built on its own framework. Our new microservices are built on our Baseplate.py framework.
  • Evolving Reddit’s ML Model Deployment and Serving Architecture
    3 projects | /r/RedditEng | 4 Oct 2021
    Minsky is an internal baseplate.py (Reddit’s python web services framework) thrift service owned by Reddit’s Machine Learning team that serves data or derivations of data related to content relevance heuristics — such as similarity between subreddits, a subreddits topic or a users propensity for a given subreddit — from various data stores such as Cassandra or in process caches. Clients of Minsky use this data to improve Redditor’s experiences with the most relevant content. Over the last few years a set of new ML capabilities, referred to as Gazette, were built into Minsky. Gazette is responsible for serving ML model inferences for personalization tasks along with configuration based schema resolution and feature fetching / transformation.
  • Deadline Budget Propagation for Baseplate.py
    3 projects | /r/RedditEng | 27 Sep 2021
    Baseplate is implemented in Python and Go, and although they share the same main functionality, smaller features differ between the two. One such feature that was previously on the Go implementation but not Python was deadline budget propagation, which passes on the remaining timeout available from the initial client request all the way through the server and any other requests that may follow. The lack of this feature in Baseplate.py meant that many resources were being wasted by servers doing unnecessary work, despite clients no longer awaiting their response due to timeout.
  • Solving The Three Stooges Problem
    3 projects | /r/RedditEng | 1 Jul 2021
    In order to make this solution work, you’ll need a web stack that can handle many concurrent requests. Reddit’s stack for most microservices is Python 3, Baseplate, and gevent. Django/Flask also work well when run with gevent. gevent is a Python library that transparently enables your microservice to handle high concurrency and I/O without requiring changes to your code. It is the secret sauce that allows you to run tens of thousands of pseudo-threads called greenlets (one per concurrent request) on a small number of instances. It allows for threads handling concurrent duplicate requests to be enqueued while waiting to acquire the lock, and then for those queues to be drained as threads acquire the lock and execute serially, all without exhausting the thread pool.

What are some alternatives?

When comparing xhtml2pdf and baseplate.py you can also consider the following projects:

bleach - Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes

Apache Thrift - Apache Thrift

html5lib - Standards-compliant library for parsing and serializing HTML documents and fragments in Python

Pyramid - Pyramid - A Python web framework

MarkupSafe - Safely add untrusted strings to HTML/XML markup.

rtv - Browse Reddit from your terminal

lxml - The lxml XML toolkit for Python

pottery - Redis for humans. 🌎🌍🌏

cssutils

redsync - Distributed mutual exclusion lock using Redis for Go

xmltodict - Python module that makes working with XML feel like you are working with JSON

cornice - Build Web Services with Pyramid.