Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
preloaded.cpython-313.pyc54 linesDownload Raw Back to __pycache__
1�

2��j�����SrSSKJr SSKrSSKJr SSKJr SSKJr SSKJr \"S\S	\4S39r	\(GaSSK4Jr SSK5J
r SS
KJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr  SSKJ!r" SSKJ#r$ SSKJ%r& SSKJ'r( SSKJ)r* SSKJ+r, SSKJ-r. SSKJ/r0 SSKJ1r2 SSKJ3r4 SSKJ5r6 SS KJ7r8 SS!K9J:r; SS"K9J<r= SS#K9J>r? SS$K9J@rA SS%K9JBrC SS&K9JDrE SS'K9JFrG SS(K9JHrI SS)K9JJrK SS K9J7rL \r\rM\rN\rO\rP\rQ\ rR\rS\r
\rT\"rU\$rV\(rW\&rX\*rY\,rZ\.r[\0r\\4r]\6r^\2r_\8r`\;ra\=rb\?rc\Ard\Cre\Grf\Krg\Erh\Iri\Lrj"S*S+5rk\k"5rl\lR�rm\lR�rng),zRsupplies the "preloaded" registry to resolve circular module imports at6runtime.7 8�)�annotationsN)�Any)�Callable)�
TYPE_CHECKING)�TypeVar�_FN.)�bound)�dialects)�orm)�cursor)�default)�9reflection)�result)�url)�10attributes)�base)�clsregistry)�decl_api)�	decl_base)�11dependency)�descriptor_props)�	mapperlib)�12properties)�
relationships)�session)�state)�13strategies)�strategy_options)�util)�default_comparator)�dml)�elements)�	functions)�naming)�schema)�14selectable)�sqltypes)�15traversalsc�6�\rSrSrSrSSjrS	SjrS16SjrSrg)�_ModuleRegistry�^amRegistry of modules to load in a package init file.17 18To avoid potential thread safety issues for imports that are deferred19in a function, like https://bugs.python.org/issue38884, these modules20are added to the system module cache by importing them after the packages21has finished initialization.22 23A global instance is provided under the name :attr:`.preloaded`. Use24the function :func:`.preload_module` to register modules to load and25:meth:`.import_prefix` to load all the modules that start with the26given path.27 28While the modules are loaded in the global module cache, it's advisable29to access them using :attr:`.preloaded` to ensure that it was actually30registered. Each registered module is added to the instance ``__dict__``31in the form `<package>_<module>`, omitting ``sqlalchemy`` from the package32name. Example: ``sqlalchemy.sql.util`` becomes ``preloaded.sql_util``.33c�.�[5UlXlg�N)�set�module_registry�prefix)�selfr0s  �_D:\code\apps\devtools\python\user_packages\Python313\site-packages\sqlalchemy/util/preloaded.py�__init__�_ModuleRegistry.__init__rs��"�u�����c�>�URRU5 S$)z�Adds the specified modules to the list to load.34 35This method can be used both as a normal function and as a decorator.36No change is performed to the decorated object.37c��U$r-�)�fns r2�<lambda>�0_ModuleRegistry.preload_module.<locals>.<lambda>}s��"r5)r/�update)r1�depss  r2�preload_module�_ModuleRegistry.preload_modulevs��	
���#�#�D�)��r5c��URH�nUR(a/URUR5SRSS5nOUnU(aUR	U5(dMdX0R38;dMu[
U[5[55 [RU=UR39U'[5U'M� g)zLResolve all the modules in the registry that start with the40specified path.41������.�_N)r/r0�split�replace�42startswith�__dict__�43__import__�globals�locals�sys�modules)r1�path�module�keys    r2�
import_prefix�_ModuleRegistry.import_prefixs����*�*�F��{�{��l�l�4�;�;�/��3�;�;�C��E�����F�-�-�d�3�3��]�]�*��6�7�9�f�h�7�69�k�k�&�6I�I��
�
�c�"�W�Y�s�^�+r5)r/r0N)zsqlalchemy.)r=�str�returnzCallable[[_FN], _FN])rMrRrS�None)	�__name__�44__module__�__qualname__�__firstlineno__�__doc__r3r>rP�__static_attributes__r8r5r2r*r*^s���&��
Jr5r*)orY�45__future__rrK�typingrrrrr�46sqlalchemyr47�	_dialectsr�_orm�sqlalchemy.enginer�_engine_cursorr
�_engine_defaultr�_engine_reflectionr�_engine_resultr�_engine_url�sqlalchemy.ormr�_orm_attributesr�	_orm_baser�_orm_clsregistryr�
_orm_decl_apir�_orm_decl_baser�_orm_dependencyr�_orm_descriptor_propsr�_orm_mapperr�_orm_propertiesr�_orm_relationshipsr�_orm_sessionr�48_orm_stater�_orm_strategiesr�_orm_strategy_optionsr�	_orm_util�sqlalchemy.sqlr �_sql_default_comparatorr!�_sql_dmlr"�
_sql_elementsr#�_sql_functionsr$�_sql_namingr%�_sql_schemar&�_sql_selectabler'�
_sql_sqltypesr(�_sql_traversals�	_sql_util�
engine_cursor�engine_default�engine_reflection�
engine_result�49engine_url�orm_clsregistry�orm_base�orm_attributes�orm_decl_api�
orm_decl_base�orm_descriptor_props�orm_dependency�50orm_mapper�orm_properties�orm_relationships�orm_session�orm_strategies�orm_strategy_options�	orm_state�orm_util�sql_default_comparator�sql_dml�sql_elements�
sql_functions�51sql_naming�sql_selectable�sql_traversals�52sql_schema�sql_sqltypes�sql_utilr*�_regr>rPr8r5r2�<module>r�sl���#�53��� ��
�e�8�C��H�-�.���0�&�:�<�B�:�4�<�0�>�8�:�<�H�7�<�B�6�2�<�H�0�L�.�8�:�4�4�<�8�<�0��H�"�M�$�N�*��"�M��J�&�O��H�54�C�$�N� �L�"�M�0��$�N��J�$�N�*���K�$�N�0���I��H�4���G� �L�"�M��J�$�N�$�N��J� �L��H�.J�.J�b����$�$���"�"�
r5
codekingpro/portable-devtools · Team Ai