Cython
dramatiq
Our great sponsors
Cython | dramatiq | |
---|---|---|
79 | 15 | |
8,891 | 4,051 | |
1.7% | - | |
9.8 | 7.3 | |
about 21 hours ago | 8 days ago | |
Python | Python | |
Apache License 2.0 | GNU Lesser General Public License v3.0 or later |
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.
Cython
- Ask HN: C/C++ developer wanting to learn efficient Python
- Ask HN: Is there a way to use Python statically typed or with any type-checking?
- Cython 3.0
-
How to make a c++ python extension?
The approach that I favour is to use Cython. The nice thing with this approach is that your code is still written as (almost) Python, but so long as you define all required types correctly it will automatically create the C extension for you. Early versions of Cython required using Cython specific typing (Python didn't have type hints when Cython was created), but it can now use Python's type hints.
-
Never again
and again, everything that was released after using an older version of cython.
-
Codon: Python Compiler
Just for reference,
* Nuitka[0] "is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11."
* Pypy[1] "is a replacement for CPython" with builtin optimizations such as on the fly JIT compiles.
* Cython[2] "is an optimising static compiler for both the Python programming language and the extended Cython programming language... makes writing C extensions for Python as easy as Python itself."
* Numba[3] "is an open source JIT compiler that translates a subset of Python and NumPy code into fast machine code."
* Pyston[4] "is a performance-optimizing JIT for Python, and is drop-in compatible with ... CPython 3.8.12"
- Slow Rust Compiler is a Feature, not a Bug.
-
Any faster Python alternatives?
Profile and optimize the hotspots with cython (or whatever the cool kids are using these days... It's been a while.)
-
What exactly is 'JIT'?
JIT essentially means generating machine code for the language on the fly, either during loading of the interpreter (method JIT), or by profiling and optimizing hotspots (tracing JIT). The language itself can be statically or dynamically typed. You could also compile a dynamic language ahead of time, for example, cython.
-
Python executable makers
Cython - - embed demo
dramatiq
- Dramatiq: A fast and reliable distributed task processing library for Python
-
Inngest raises $3M seed to build the reliable workflow platform for every dev
Using something like Dramatiq [1] with Redis, writing a background job takes minutes, and can be deployed alongside an existing Python web app. There are probably JS equivalents.
I think Inngest could be a useful service, but the comparison felt off for me - it made me feel like this wasn't solving a real problem.
-
Arq vs Dramatiq vs Taskiq vs Repid
Dramatiq documentation
-
Taskiq: async celery alternative
Hello everyone. We want to present you Taskiq: our new project that allows sending tasks using distributed queues. Conceptually it's similar to Celery or Dramatiq but with full asyncio and type hints support. Taskiq can send and execute async functions and has many integrations with different queue implementations.
-
Django Styleguide
I spent 3 years building a high scale crawler on top of Celery.
I can't recommend it. We found many bugs in the more advanced features of Celery (like Canvas) we also ran into some really weird issues like tasks getting duplicated for no reason [1].
The most concerning problem is that the project was abandoned. The original creator is not working on it anymore and all issues that we raised were ignored. We had to fork the project and apply our own fixes to it. This was 4 years ago so maybe things improved since them.
Celery is also extremely complex.
I would recommend https://dramatiq.io/ instead.
- Simple Task Queue system that works with Django 4 / Python 3.9?
-
Writing a book about Django, what’s your suggestion for the theme?
I have been using dramatiq lately (celery alternative) and so far I'm happy with it.
-
A new simple background job processing framework
this is a more robust solution. https://dramatiq.io/
-
What is your favourite task queuing framework?
Dramatiq -> Just another celery?
- 5 background scheduling libraries in Python you must know
What are some alternatives?
SWIG - SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
celery - Distributed Task Queue (development branch)
PyPy
huey - a little task queue for python
mypyc - Compile type annotated Python to fast C extensions
Pyston - A faster and highly-compatible implementation of the Python programming language.
Stackless Python
Pyjion
APScheduler - Task scheduling library for Python