• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LeanderCS / flask-inputfilter / #359

26 Apr 2025 05:55PM UTC coverage: 96.62% (-1.3%) from 97.94%
#359

push

coveralls-python

LeanderCS
T

273 of 288 new or added lines in 109 files covered. (94.79%)

1801 of 1864 relevant lines covered (96.62%)

0.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/flask_inputfilter/__init__.py
1
try:
1✔
2
    from ._input_filter import InputFilter
1✔
3

4
except ImportError:
1✔
5
    import shutil
1✔
6

7
    if shutil.which("g++") is not None:
1✔
8
        import os
×
9

10
        import pyximport
×
11

12
        THIS_DIR = os.path.dirname(__file__)
×
13
        INCLUDE_DIR = os.path.join(THIS_DIR, "include")
×
14

15
        pyximport.install(
×
16
            language_level=3,
17
            setup_args={
18
                "script_args": ["--quiet"],
19
                "include_dirs": [INCLUDE_DIR],
20
            },
21
            reload_support=True,
22
        )
23

NEW
24
        from ._input_filter import InputFilter
×
25

26
    else:
27
        import logging
1✔
28

29
        logging.getLogger(__name__).warning(
1✔
30
            "Cython or g++ not available. Falling back to pure Python implementation.\n"
31
            "Consult docs for better performance: https://leandercs.github.io/flask-inputfilter/guides/compile.html"
32
        )
33
        from .input_filter import InputFilter
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc