mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-10-31 17:38:30 +08:00 
			
		
		
		
	 72aa68c462
			
		
	
	72aa68c462
	
	
	
		
			
			* Use a generic Protocol model for User instead of Pydantic
* Remove UserDB Pydantic schema
* Harmonize schema variable naming to avoid confusions
* Revamp OAuth account model management
* Revamp AccessToken DB strategy to adopt generic model approach
* Make ID a generic instead of forcing UUIDs
* Improve generic typing
* Improve Strategy typing
* Tweak base DB typing
* Don't set Pydantic schemas on FastAPIUsers class: pass it directly on router creation
* Add IntegerIdMixin and export related classes
* Start to revamp doc for V10
* Revamp OAuth documentation
* Fix code highlights
* Write the 9.x.x ➡️ 10.x.x migration doc
* Fix pyproject.toml
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| from fastapi_users.db.base import BaseUserDatabase, UserDatabaseDependency
 | |
| 
 | |
| __all__ = ["BaseUserDatabase", "UserDatabaseDependency"]
 | |
| 
 | |
| 
 | |
| try:  # pragma: no cover
 | |
|     from fastapi_users_db_sqlalchemy import (  # noqa: F401
 | |
|         SQLAlchemyBaseOAuthAccountTable,
 | |
|         SQLAlchemyBaseOAuthAccountTableUUID,
 | |
|         SQLAlchemyBaseUserTable,
 | |
|         SQLAlchemyBaseUserTableUUID,
 | |
|         SQLAlchemyUserDatabase,
 | |
|     )
 | |
| 
 | |
|     __all__.append("SQLAlchemyBaseUserTable")
 | |
|     __all__.append("SQLAlchemyBaseUserTableUUID")
 | |
|     __all__.append("SQLAlchemyBaseOAuthAccountTable")
 | |
|     __all__.append("SQLAlchemyBaseOAuthAccountTableUUID")
 | |
|     __all__.append("SQLAlchemyUserDatabase")
 | |
| except ImportError:  # pragma: no cover
 | |
|     pass
 | |
| 
 | |
| try:  # pragma: no cover
 | |
|     from fastapi_users_db_beanie import (  # noqa: F401
 | |
|         BaseOAuthAccount,
 | |
|         BeanieBaseUser,
 | |
|         BeanieUserDatabase,
 | |
|         ObjectIDIDMixin,
 | |
|     )
 | |
| 
 | |
|     __all__.append("BeanieBaseUser")
 | |
|     __all__.append("BaseOAuthAccount")
 | |
|     __all__.append("BeanieUserDatabase")
 | |
|     __all__.append("ObjectIDIDMixin")
 | |
| except ImportError:  # pragma: no cover
 | |
|     pass
 |