mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-11-04 06:37:51 +08:00 
			
		
		
		
	* Remove database adapter in favor of external dependencies * Prevent flit from installing all optional dependencies when testing build * Remove MongoDB service during CI build
		
			
				
	
	
		
			34 lines
		
	
	
		
			848 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			848 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from fastapi_users.db.base import BaseUserDatabase  # noqa: F401
 | 
						|
 | 
						|
try:
 | 
						|
    from fastapi_users_db_mongodb import MongoDBUserDatabase  # noqa: F401
 | 
						|
except ImportError:  # pragma: no cover
 | 
						|
    pass
 | 
						|
 | 
						|
try:
 | 
						|
    from fastapi_users_db_sqlalchemy import (  # noqa: F401
 | 
						|
        SQLAlchemyBaseOAuthAccountTable,
 | 
						|
        SQLAlchemyBaseUserTable,
 | 
						|
        SQLAlchemyUserDatabase,
 | 
						|
    )
 | 
						|
except ImportError:  # pragma: no cover
 | 
						|
    pass
 | 
						|
 | 
						|
try:
 | 
						|
    from fastapi_users_db_tortoise import (  # noqa: F401
 | 
						|
        TortoiseBaseOAuthAccountModel,
 | 
						|
        TortoiseBaseUserModel,
 | 
						|
        TortoiseUserDatabase,
 | 
						|
    )
 | 
						|
except ImportError:  # pragma: no cover
 | 
						|
    pass
 | 
						|
 | 
						|
try:
 | 
						|
    from fastapi_users_db_ormar import (  # noqa: F401
 | 
						|
        OrmarBaseOAuthAccountModel,
 | 
						|
        OrmarBaseUserModel,
 | 
						|
        OrmarUserDatabase,
 | 
						|
    )
 | 
						|
except ImportError:  # pragma: no cover
 | 
						|
    pass
 |