Files
aitsc/.venv/Lib/site-packages/sqlalchemy/util/__pycache__/preloaded.cpython-312.pyc

53 lines
5.7 KiB
Plaintext
Raw Normal View History

2025-02-23 09:07:52 +08:00
<EFBFBD>
2025-08-16 19:28:45 +08:00
<00><18>h<EFBFBD><00><01><><00>dZddlmZddlZddlmZddlmZddlmZddlmZeded ef<00>
2025-02-23 09:07:52 +08:00
<EFBFBD>Z e<07>rdd l
m Z dd l
m Zdd lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZ ddlm!Z"ddlm#Z$ddlm%Z&ddlm'Z(ddlm)Z*ddlm+Z,ddlm-Z.ddlm/Z0ddlm1Z2ddlm3Z4ddlm5Z6dd lm7Z8dd!l9m:Z;dd"l9m<Z=dd#l9m>Z?dd$l9m@ZAdd%l9mBZCdd&l9mDZEdd'l9mFZGdd(l9mHZIdd)l9mJZKdd l9m7ZLe Z eZMeZNeZOeZPeZQe ZReZSeZ eZTe"ZUe$ZVe(ZWe&ZXe*ZYe,ZZe.Z[e0Z\e4Z]e6Z^e2Z_e8Z`e;Zae=Zbe?ZceAZdeCZeeGZfeKZgeEZheIZieLZjGd*<2A>d+<2B>Zkek<65>Zlelj<6C>Zmelj<6C>Zny),zRsupplies the "preloaded" registry to resolve circular module imports at
runtime.
<EFBFBD>)<01> annotationsN)<01>Any)<01>Callable)<01> TYPE_CHECKING)<01>TypeVar<61>_FN.)<01>bound)<01>dialects)<01>orm)<01>cursor)<01>default)<01>
reflection)<01>result)<01>url)<01>
attributes)<01>base)<01> clsregistry)<01>decl_api)<01> decl_base)<01>
dependency)<01>descriptor_props)<01> mapperlib)<01>
properties)<01> relationships)<01>session)<01>state)<01>
strategies)<01>strategy_options)<01>util)<01>default_comparator)<01>dml)<01>elements)<01> functions)<01>naming)<01>schema)<01>
selectable)<01>sqltypes)<01>
traversalsc<01>(<00>eZdZdZdd<02>Zdd<03>Zdd<04>Zy) <09>_ModuleRegistrya<79>Registry of modules to load in a package init file.
To avoid potential thread safety issues for imports that are deferred
in a function, like https://bugs.python.org/issue38884, these modules
are added to the system module cache by importing them after the packages
has finished initialization.
A global instance is provided under the name :attr:`.preloaded`. Use
the function :func:`.preload_module` to register modules to load and
:meth:`.import_prefix` to load all the modules that start with the
given path.
While the modules are loaded in the global module cache, it's advisable
to access them using :attr:`.preloaded` to ensure that it was actually
registered. Each registered module is added to the instance ``__dict__``
in the form `<package>_<module>`, omitting ``sqlalchemy`` from the package
name. Example: ``sqlalchemy.sql.util`` becomes ``preloaded.sql_util``.
2025-08-16 19:28:45 +08:00
c<01>0<00>t<00>|_||_y<00>N)<03>set<65>module_registry<72>prefix)<02>selfr/s <20>=D:\aitsc\.venv\Lib\site-packages\sqlalchemy\util\preloaded.py<70>__init__z_ModuleRegistry.__init__rs<00><00>"<22>u<EFBFBD><04><1C><1C><04> <0B>c<01>><00>|jj|<01>d<01>S)z<>Adds the specified modules to the list to load.
2025-02-23 09:07:52 +08:00
This method can be used both as a normal function and as a decorator.
No change is performed to the decorated object.
c<01><00>|Sr,<00>)<01>fns r1<00><lambda>z0_ModuleRegistry.preload_module.<locals>.<lambda>}s<00><00>"r3)r.<00>update)r0<00>depss r1<00>preload_modulez_ModuleRegistry.preload_modulevs<00><00> <0A><1C><1C>#<23>#<23>D<EFBFBD>)<29><1C>r3c<01>z<00>|jD]<5D>}|jr/|j|j<00>djdd<03>}n|}|r|j |<01>s<01>T||j
vs<01>ct |t<00>t<00><00>tj|x|j
|<t<00>|<<00><>y)z\Resolve all the modules in the registry that start with the
specified path.
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.<2E>_N) r.r/<00>split<69>replace<63>
startswith<EFBFBD>__dict__<5F>
__import__<EFBFBD>globals<6C>locals<6C>sys<79>modules)r0<00>path<74>module<6C>keys r1<00> import_prefixz_ModuleRegistry.import_prefixs<><00><00><1B>*<2A>*<2A>F<EFBFBD><13>{<7B>{<7B><1C>l<EFBFBD>l<EFBFBD>4<EFBFBD>;<3B>;<3B>/<2F><02>3<>;<3B>;<3B>C<EFBFBD><13>E<><03><1C><03><18>F<EFBFBD>-<2D>-<2D>d<EFBFBD>3<><15>T<EFBFBD>]<5D>]<5D>*<2A><1A>6<EFBFBD>7<EFBFBD>9<EFBFBD>f<EFBFBD>h<EFBFBD>7<>69<36>k<EFBFBD>k<EFBFBD>&<26>6I<36>I<><04> <0A> <0A>c<EFBFBD>"<22>W<EFBFBD>Y<EFBFBD>s<EFBFBD>^<5E>+r3N)z sqlalchemy.)r:<00>str<74>returnzCallable[[_FN], _FN])rIrMrN<00>None)<07>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r2r;rLr6r3r1r*r*^s<00><00><08>&<1D><1D> Jr3r*)orS<00>
__future__rrG<00>typingrrrrr<00>
sqlalchemyr
<00> _dialectsr <00>_orm<72>sqlalchemy.enginer <00>_engine_cursorr <00>_engine_defaultr<00>_engine_reflectionr<00>_engine_resultr<00> _engine_url<72>sqlalchemy.ormr<00>_orm_attributesr<00> _orm_baser<00>_orm_clsregistryr<00> _orm_decl_apir<00>_orm_decl_baser<00>_orm_dependencyr<00>_orm_descriptor_propsr<00> _orm_mapperr<00>_orm_propertiesr<00>_orm_relationshipsr<00> _orm_sessionr<00>
_orm_stater<00>_orm_strategiesr<00>_orm_strategy_optionsr<00> _orm_util<69>sqlalchemy.sqlr <00>_sql_default_comparatorr!<00>_sql_dmlr"<00> _sql_elementsr#<00>_sql_functionsr$<00> _sql_namingr%<00> _sql_schemar&<00>_sql_selectabler'<00> _sql_sqltypesr(<00>_sql_traversals<6C> _sql_util<69> engine_cursor<6F>engine_default<6C>engine_reflection<6F> engine_result<6C>
engine_url<EFBFBD>orm_clsregistry<72>orm_base<73>orm_attributes<65> orm_decl_api<70> orm_decl_base<73>orm_descriptor_props<70>orm_dependency<63>
orm_mapper<EFBFBD>orm_properties<65>orm_relationships<70> orm_session<6F>orm_strategies<65>orm_strategy_options<6E> orm_state<74>orm_util<69>sql_default_comparator<6F>sql_dml<6D> sql_elements<74> sql_functions<6E>
sql_naming<EFBFBD>sql_selectable<6C>sql_traversals<6C>
sql_schema<EFBFBD> sql_sqltypes<65>sql_utilr*<00>_regr;rLr6r3r1<00><module>r<>sl<00><01><04>#<23>
<EFBFBD><16><1B> <20><1A> <0A>e<EFBFBD>8<EFBFBD>C<EFBFBD><13>H<EFBFBD>-<2D>.<2E><03><11>0<>&<26>:<3A><<3C>B<>:<3A>4<><<3C>0<>><3E>8<>:<3A><<3C>H<>7<><<3C>B<>6<>2<><<3C>H<>0<>L<>.<2E>8<>:<3A>4<>4<><<3C>8<><<3C>0<><19>H<EFBFBD>"<22>M<EFBFBD>$<24>N<EFBFBD>*<2A><15>"<22>M<EFBFBD><1C>J<EFBFBD>&<26>O<EFBFBD><18>H<EFBFBD>
<0E>C<EFBFBD>$<24>N<EFBFBD> <20>L<EFBFBD>"<22>M<EFBFBD>0<><18>$<24>N<EFBFBD><1C>J<EFBFBD>$<24>N<EFBFBD>*<2A><15><1E>K<EFBFBD>$<24>N<EFBFBD>0<><18><1A>I<EFBFBD><18>H<EFBFBD>4<><1A><16>G<EFBFBD> <20>L<EFBFBD>"<22>M<EFBFBD><1C>J<EFBFBD>$<24>N<EFBFBD>$<24>N<EFBFBD><1C>J<EFBFBD> <20>L<EFBFBD><18>H<EFBFBD>.J<01>.J<01>b<17><18><04><15>$<24>$<24><0E><14>"<22>"<22> r3