$npx skillfedfor your agent

magic-filter

With conditionsPyPI UtilitiesReleased Oct 20233.0M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — magic_filter-1.0.12-py3-none-any.whl
v1.0.12 · released 2023-10-01 · Python >=3.7

Yes, if you need declarative filtering and are comfortable with dormant maintenance. The package is stable, has no dependencies, and carries permissive licensing. It is well-suited for attribute-based filtering tasks where readability matters more than active development. Do not expect bug fixes or new features.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction installation with no runtime dependencies.
  • Maintenance is dormant—last commit was 2023-09-25—so expect no active bug fixes or feature development, though the package is stable enough for existing use.

License · maintenance · safety

permissive license (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute it freely with minimal restrictions.

last release 2023-10-01 (1048 days) · last repo commit 2023-09-25 · 41 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,019,202 downloads/mo, #2,786 on PyPI

Verify before relying

pip install magic-filter

from magic_filter import F

filter_expr = F.name == 'example'
result = filter_expr.check({'name': 'example'})
  • Exact semantics and typical use patterns beyond 'dynamic attribute getter' are not detailed in the fact sheet.
  • Whether this is primarily for data validation, query building, or both remains unclear from the excerpt.
  • How the package is typically used in practice beyond the aiogram ecosystem.
Same gist for agents: .md · .json

What it is and what it does

magic-filter is a lightweight Python library that lets you build filters using dynamic attribute access and a fluent syntax. Instead of writing nested conditionals or lambda functions, you construct filter expressions by accessing attributes on a special filter object, then apply those expressions to check or filter data. The library has no runtime dependencies and supports Python 3.7 through 3.11.

The package is in alpha status and has been dormant since late 2023, so it is stable for existing use cases but should not be expected to receive active maintenance or new features. It carries permissive licensing and is commonly associated with the aiogram ecosystem.

Use it for

  • Build declarative filters for message routing in Telegram bot handlers without writing nested conditionals.
  • Validate object attributes against multiple conditions using a readable, expression-like syntax.
  • Create reusable filter expressions that can be composed and applied to different data structures.
  • Filter collections of objects by attribute values using a fluent API instead of list comprehensions.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need declarative filtering and are comfortable with dormant maintenance.

The package is stable, has no dependencies, and carries permissive licensing. It is well-suited for attribute-based filtering tasks where readability matters more than active development. Do not expect bug fixes or new features.

Install

magic-filter on PyPI

Before you install

Low friction installation with no runtime dependencies. Maintenance is dormant—last commit was 2023-09-25—so expect no active bug fixes or feature development, though the package is stable enough for existing use.

License in practice

Licensed under MIT (permissive), so you can use, modify, and distribute it freely with minimal restrictions.

Quickstart

pip install magic-filter

from magic_filter import F

filter_expr = F.name == 'example'
result = filter_expr.check({'name': 'example'})

Verify before relying

  • Exact semantics and typical use patterns beyond 'dynamic attribute getter' are not detailed in the fact sheet.
  • Whether this is primarily for data validation, query building, or both remains unclear from the excerpt.
  • How the package is typically used in practice beyond the aiogram ecosystem.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 1,048 days since the last release
Last repo commit
First released
Downloads3,019,202 / month, #2,786 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: UtilitiesTyping :: Typed

Evidence: magic_filter-1.0.12-py3-none-any.whl

Tags

Capabilities
dynamic attribute filteringmagic filter librarydeclarative object filteringfilter expressionsattribute-based filteringfluent filter apivalidation filtering
Topics
filteringdeclarative
PyPI keywords
filtermagicvalidation

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “dynamic attribute filtering”

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also fastapi-filter · django-filter · oelint-parser · djangorestframework-filters · mongo-query-match · magicattr · cerbos-sqlalchemy · craft-parts · jmespath · sqlalchemy-filters