![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
.. image:: https://img.shields.io/pypi/v/filteralchemy.svg :target: http://badge.fury.io/py/filteralchemy :alt: Latest version
.. image:: https://readthedocs.org/projects/filteralchemy/badge/?version=latest :target: https://filteralchemy.readthedocs.org/en/latest/?badge=latest :alt: Documentation Status
.. image:: https://img.shields.io/travis/jmcarp/filteralchemy/dev.svg :target: https://travis-ci.org/jmcarp/filteralchemy :alt: Travis-CI
.. image:: https://img.shields.io/codecov/c/github/jmcarp/filteralchemy/dev.svg :target: https://codecov.io/github/jmcarp/filteralchemy :alt: Code coverage
filteralchemy is a declarative query builder for SQLAlchemy. filteralchemy uses marshmallow-sqlalchemy_ to auto-generate filter fields and webargs_ to parse field parameters from the request. Use it to filter data with minimal boilerplate.
For Django users: the design of filteralchemy is strongly inspired by django-filter_.
.. code-block::
pip install filteralchemy
.. code-block:: python
import flask
from models import Album, session
from webargs.flaskparser import parser
from filteralchemy import FilterSet
from filteralchemy.operators import Equal, Less, Greater
class AlbumFilterSet(FilterSet):
class Meta:
model = Album
query = session.query(Album)
operators = (Equal, Less, Greater)
parser = parser
app = flask.Flask(__name__)
@app.route('/albums')
def get_albums():
query = AlbumFilterSet().filter()
return flask.jsonify(query.all())
.. code-block::
http :5000/albums artist==Queen genre==rock sales__gt==1000000
.. _marshmallow-sqlalchemy: https://marshmallow-sqlalchemy.readthedocs.org/ .. _webargs: https://webargs.readthedocs.org/ .. _django-filter: https://github.com/alex/django-filter
FAQs
Declarative query builder for SQLAlchemy
We found that filteralchemy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.