Project Scanner
ProjectScanner is a Python package designed to scan your project's directory and file structure, providing a batch-wise navigational approach. It's especially useful for analyzing large projects with deep directory structures, allowing users to paginate through directories and files effectively.
Installation
To install ProjectScanner, use pip:
pip install project-scanner
Usage
As a Python Module
You can use ProjectScanner as a module in your Python scripts.
Example:
from projectscanner import ProjectScanner
# Initialize the scanner with the root directory of your project
scanner = ProjectScanner(root_dir="path/to/your/project", batch_size=10, max_length=255)
# Scan and print the first batch of items
print("First Batch:")
print(scanner.next_batch())
# Assuming there are more items, scan and print the next batch
print("Next Batch:")
print(scanner.next_batch())
# Go back to the previous batch and print it
print("Previous Batch:")
print(scanner.prev_batch())
Configuration
You can customize the behavior of ProjectScanner by adjusting the initialization parameters:
root_dir: The root directory of your project (default is the current working directory).batch_size: The number of items (files or directories) to include in each batch (default is 10).max_length: The maximum character length for file or directory names before truncation (default is 255).relative_path: Set toTrueto use relative paths for items, orFalsefor absolute paths (default isTrue).
Output Example
When you run ProjectScanner, it provides you a batch of directory and file names in your project's structure. Here is an example output:
First Batch:
["dir1", "dir2", "file1.txt", "file2.txt"]
Next Batch:
["dir3/subdir1", "dir3/subdir2", "file3.txt", "dir4"]
...
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
License
Metadata
Release files for project-scanner 2025.5.181939
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| project_scanner-2025.5.181939.tar.gz | 3.9 kB | Without provenance | Details for project_scanner-2025.5.181939.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| project_scanner-2025.5.181939-py3-none-any.whl | Python 3 | none | any | Details for project_scanner-2025.5.181939-py3-none-any.whl |
Total release size: 8.4 kB
Release files / project_scanner-2025.5.181939.tar.gz
| Download URL | project_scanner-2025.5.181939.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec810e956beafaedf89f4019b5ba336202fb871751a51436b58d295bbe8bc949
|
|
BLAKE2b-256 checksum How to use checksums |
953283ea6d6ae677aae061702ef5f63aff0a46f9d30a2e6d35753d4b688449f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Release files / project_scanner-2025.5.181939-py3-none-any.whl
| Download URL | project_scanner-2025.5.181939-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2b05be5f7a47cfa8b7345b4739c370f654aab964dda65b0586da90407ff18a4
|
|
BLAKE2b-256 checksum How to use checksums |
8eb4208fca24a448b916ad37575875695ccc239667b96bdb894e064131a62f5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Security for project-scanner 2025.5.181939
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.