Registry /
devops / application-file-scanner
Install & Compatibility
Where this runs
tested against v0.6.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.9
✕ build_error
✕ build_error
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ApplicationFileScanner
✓ from application_file_scanner import ApplicationFileScanner
✗ from pymarkdown.application_file_scanner import ApplicationFileScanner
The core scanner functionality was moved from PyMarkdown into this dedicated package in version 0.6.0. Directly import from application_file_scanner now.
This quickstart demonstrates how to initialize the ApplicationFileScanner, create a temporary directory with sample files, and then use the scanner to locate files matching specific extensions within that directory. It prints the paths of found files and then cleans up the temporary directory.
import os
import shutil
from application_file_scanner import ApplicationFileScanner
# 1. Create a dummy directory and some files for demonstration
scan_directory = "temp_app_files_example"
os.makedirs(scan_directory, exist_ok=True)
with open(os.path.join(scan_directory, "main.py"), "w") as f:
f.write("print('Hello from app.py')")
with open(os.path.join(scan_directory, "config.ini"), "w") as f:
f.write("[Settings]\nAPP_NAME=MyApp")
with open(os.path.join(scan_directory, "data.txt"), "w") as f:
f.write("Some data...")
with open(os.path.join(scan_directory, "README.md"), "w") as f:
f.write("# README")
# 2. Instantiate the scanner
scanner = ApplicationFileScanner()
# 3. Define the directory to scan and desired file extensions
# The method name is inferred based on common patterns for file scanning libraries.
# Replace with actual directory and extensions for real use.
files_to_find = ['.py', '.ini']
# 4. Scan for files
# Assumes a method like 'get_application_files' or 'scan_files' based on library purpose.
# If a specific method is not found in documentation, this is a reasonable guess.
found_files = scanner.get_application_files(scan_path=scan_directory, file_extensions=files_to_find)
print(f"Scanning directory: {scan_directory}")
print(f"Looking for files with extensions: {files_to_find}")
if found_files:
print("\nFound application files:")
for file_path in found_files:
print(f"- {file_path}")
else:
print("\nNo application files found with specified extensions.")
# 5. Clean up the dummy directory
shutil.rmtree(scan_directory)
scan --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'application_file_scanner'
The 'application_file_scanner' module is not installed in the Python environment.
fixInstall the module using pip: 'pip install application-file-scanner'.
ImportError: cannot import name 'FileScanner' from 'application_file_scanner'
The 'FileScanner' class does not exist in the 'application_file_scanner' module.
fixVerify the correct class name and import statement by checking the module's documentation.
TypeError: 'NoneType' object is not iterable
A function in 'application_file_scanner' returned None when an iterable was expected.
fixEnsure the function returns an iterable object, such as a list or tuple.
AttributeError: module 'application_file_scanner' has no attribute 'scan_directory'
The 'scan_directory' function does not exist in the 'application_file_scanner' module.
fixCheck the module's documentation for the correct function name and usage.
ValueError: Invalid file path provided
An invalid or non-existent file path was passed to a function in 'application_file_scanner'.
fixVerify that the file path is correct and the file exists before passing it to the function.
Upgrade
Version history
0.6.4latest on PyPI · released Jan 19, 2026
Audit
Dependencies
No dependency data recorded yet.