py_import_helper/registry/
constants.rs

1//! Default package lists for registry initialization
2//!
3//! This module contains the default lists of Python standard library modules
4//! and common third-party packages used to initialize the package registry.
5
6/// Python standard library modules for categorization
7///
8/// This list includes commonly used standard library modules that are part of
9/// Python's built-in distribution. Used for automatic import categorization.
10pub const PYTHON_STDLIB_MODULES: &[&str] = &[
11    "os",
12    "sys",
13    "json",
14    "re",
15    "datetime",
16    "time",
17    "collections",
18    "collections.abc",
19    "itertools",
20    "functools",
21    "operator",
22    "typing",
23    "pathlib",
24    "logging",
25    "uuid",
26    "hashlib",
27    "base64",
28    "urllib",
29    "http",
30    "email",
31    "html",
32    "xml",
33    "sqlite3",
34    "csv",
35    "io",
36    "tempfile",
37    "shutil",
38    "glob",
39    "fnmatch",
40    "linecache",
41    "pickle",
42    "copy",
43    "math",
44    "random",
45    "statistics",
46    "decimal",
47    "fractions",
48    "contextlib",
49    "abc",
50    "atexit",
51    "traceback",
52    "gc",
53    "weakref",
54    "enum",
55    "dataclasses",
56    "concurrent",
57    "asyncio",
58    "threading",
59    "multiprocessing",
60    "subprocess",
61    "socket",
62    "select",
63    "ssl",
64    "ipaddress",
65    "argparse",
66    "configparser",
67    "getpass",
68    "locale",
69    "platform",
70    "sysconfig",
71    "types",
72    "warnings",
73];
74
75/// Common third-party packages that might be recognized
76///
77/// This is a reference list of commonly used third-party packages.
78/// Users should register their specific third-party packages using
79/// `add_third_party_package()` or `add_third_party_packages()`.
80pub const COMMON_THIRD_PARTY_PACKAGES: &[&str] = &[
81    "pydantic",
82    "httpx",
83    "requests",
84    "fastapi",
85    "flask",
86    "django",
87    "numpy",
88    "pandas",
89    "pytest",
90    "sqlalchemy",
91];