├── .gitignore ├── LICENSE ├── README.en.md ├── README.md ├── chapter01 └── asyncio │ ├── contrast_async_other.py │ ├── contrast_sync.py │ └── cotrast_async.py ├── chapter02 ├── main.py ├── static │ └── css │ │ └── style.css └── templates │ ├── index.html │ └── yyy.txt ├── chapter03 ├── async_sync │ └── main.py ├── background_tasks │ └── main.py ├── close_docs │ └── main.py ├── configparser_config │ ├── conf.ini │ └── main.py ├── debugshow │ └── main.py ├── env_config │ ├── .env │ └── main.py ├── global_exception │ └── main.py ├── localswagger │ ├── main.py │ └── static │ │ ├── swagger-ui-bundle.js │ │ └── swagger-ui.css ├── more_routers │ └── main.py ├── mount_app │ ├── fastapiapp.py │ └── flaskapp.py ├── parameter_body │ └── main.py ├── parameter_cookie │ └── main.py ├── parameter_form_and_file │ ├── data.bat │ └── main.py ├── parameter_header │ └── main.py ├── parameter_path │ └── main.py ├── parameter_query │ └── main.py ├── parameter_request │ └── main.py ├── parameter_response │ ├── data.bat │ ├── main_file_response.py │ ├── main_html_response.py │ ├── main_json_response.py │ ├── main_plain_text_response.py │ ├── main_redirect_response.py │ ├── main_response_model.py │ ├── main_status_code.py │ ├── main_streaming_response.py │ └── main_xml_response.py ├── startup_shutdown │ └── main.py ├── static_dynamic │ └── main.py └── swaggershow │ └── main.py ├── chapter04 ├── business_error │ └── main.py ├── custom_exception │ └── main.py ├── http_exception │ └── main.py ├── middleware_exception │ └── main.py └── request_validation_error │ └── main.py ├── chapter05 ├── body │ └── main.py ├── pydantic_base │ └── main.py ├── pydantic_fastapi_get │ └── main.py ├── pydantic_fastapi_post │ └── main.py ├── pydantic_field │ └── main.py ├── pydantic_obj_to_dict_json │ └── main.py ├── pydantic_orm │ └── main.py ├── pydantic_validator │ ├── address_error_main.py │ ├── main.py │ ├── root_validator_main.py │ └── share_logic_auth_main.py └── pydantic_validator_order │ └── main.py ├── chapter06 ├── depend_class │ └── main.py ├── depend_class_more_depends │ └── main.py ├── depend_class_nest_depends │ └── main.py ├── depend_func │ └── main.py ├── depend_global_depends │ └── main.py └── depend_group_router │ └── main.py ├── chapter07 ├── base_http_middleware │ └── main.py ├── cors_middleware │ └── main.py ├── https_redirect_middleware │ └── main.py ├── log_response_middleware │ └── main.py ├── middleware_process_time │ └── main.py ├── tracdid_middleware │ └── main.py ├── trusted_host_middleware │ └── main.py └── whileIp_middleware │ └── main.py ├── chapter08 ├── aioredis_fastapi │ └── main.py ├── aioredis_lock │ └── main.py ├── aioredis_pubsub │ └── main.py ├── databases_sql │ ├── main.py │ └── user.db ├── databases_sqlalchemy │ ├── main.py │ └── user.db ├── fastapi_sqlalchemy │ ├── alembic.ini │ ├── alembic │ │ ├── README │ │ ├── env.py │ │ ├── script.py.mako │ │ └── versions │ │ │ ├── 287a3cf31b84_shann.py │ │ │ └── 3328ff109aa7_add_mobile.py │ ├── api │ │ ├── __init__.py │ │ └── user.py │ ├── config │ │ ├── __init__.py │ │ └── confiig.py │ ├── db │ │ ├── __init__.py │ │ └── database.py │ ├── dependencies │ │ └── __init__.py │ ├── main.py │ ├── models │ │ ├── __init__.py │ │ └── user.py │ ├── schemas │ │ ├── __init__.py │ │ └── user.py │ ├── servies │ │ ├── __init__.py │ │ └── user.py │ └── user.db ├── lua_register_script │ ├── 2mian.py │ └── mian.py ├── sql_model │ └── main.py ├── sqlalchemy_async_sqlite3 │ ├── aiosqlite_user.db │ └── main.py ├── sqlalchemy_sync_sqlite3 │ ├── main.py │ └── user.db ├── sqlite3_connect │ ├── main.py │ └── test.db ├── sqlmodel_async_sqlite3 │ ├── aiosqlite_user.db │ └── main.py └── sqlmodel_sync_sqlite3 │ ├── main.py │ └── user.db ├── chapter09 ├── api_key │ └── main.py ├── http_basic │ └── main.py ├── http_digest │ └── main.py ├── jwt_use │ └── main.py ├── mode_client │ └── main.py ├── mode_code │ ├── get_token.py │ └── main.py └── mode_password │ └── main.py ├── chapter10 ├── shorr_url_pro │ ├── api │ │ ├── __init__.py │ │ ├── short.py │ │ └── user.py │ ├── config │ │ ├── __init__.py │ │ └── config.py │ ├── db │ │ ├── __init__.py │ │ └── database.py │ ├── dependencies │ │ └── __init__.py │ ├── main.py │ ├── models │ │ ├── __init__.py │ │ └── model.py │ ├── schemas │ │ ├── __init__.py │ │ └── user.py │ ├── servies │ │ ├── __init__.py │ │ ├── short.py │ │ └── user.py │ ├── short.db │ └── utils │ │ └── __init__.py ├── short_url_pro │ ├── api │ │ ├── __init__.py │ │ ├── short.py │ │ └── user.py │ ├── app.py │ ├── config │ │ ├── __init__.py │ │ └── config.py │ ├── db │ │ ├── __init__.py │ │ └── database.py │ ├── dependencies │ │ └── __init__.py │ ├── main.py │ ├── models │ │ ├── __init__.py │ │ └── model.py │ ├── schemas │ │ └── __init__.py │ ├── servies │ │ ├── __init__.py │ │ ├── short.db │ │ ├── short.py │ │ └── user.py │ ├── short.db │ └── utils │ │ ├── __init__.py │ │ ├── auth_helper.py │ │ ├── passlib_hepler.py │ │ └── random_helper.py └── 测试生成模型.pdma.json ├── chapter11 ├── distributed_websocket │ ├── api │ │ ├── __init__.py │ │ ├── room.py │ │ └── user.py │ ├── app.py │ ├── chat.db │ ├── config │ │ ├── __init__.py │ │ └── config.py │ ├── db │ │ ├── __init__.py │ │ └── database.py │ ├── dependencies │ │ └── __init__.py │ ├── main.py │ ├── models │ │ ├── __init__.py │ │ └── model.py │ ├── schemas │ │ └── __init__.py │ ├── servies │ │ ├── __init__.py │ │ └── user.py │ ├── templates │ │ ├── login.html │ │ ├── register.html │ │ └── room.html │ └── utils │ │ ├── __init__.py │ │ ├── auth_helper.py │ │ ├── passlib_hepler.py │ │ ├── random_helper.py │ │ ├── room_connection_helper.py │ │ └── room_connection_helper_distributed.py └── websocket │ ├── api │ ├── __init__.py │ ├── room.py │ └── user.py │ ├── app.py │ ├── chat.db │ ├── config │ ├── __init__.py │ └── config.py │ ├── db │ ├── __init__.py │ └── database.py │ ├── dependencies │ └── __init__.py │ ├── main.py │ ├── models │ ├── __init__.py │ └── model.py │ ├── schemas │ └── __init__.py │ ├── servies │ ├── __init__.py │ └── user.py │ ├── templates │ ├── login.html │ ├── register.html │ └── room.html │ └── utils │ ├── __init__.py │ ├── auth_helper.py │ ├── passlib_hepler.py │ ├── random_helper.py │ └── room_connection_helper.py ├── chapter12 └── booking_system │ ├── __init__.py │ ├── apis │ ├── __init__.py │ ├── doctor │ │ ├── api │ │ │ ├── __init__.py │ │ │ └── doctor_api.py │ │ ├── dependencies │ │ │ └── __init__.py │ │ ├── repository │ │ │ └── __init__.py │ │ └── schemas │ │ │ └── __init__.py │ ├── hospital │ │ ├── __init__.py │ │ ├── api │ │ │ ├── __init__.py │ │ │ └── get_hospital_info.py │ │ └── repository │ │ │ └── __init__.py │ ├── payorders │ │ ├── __init__.py │ │ ├── api │ │ │ ├── __init__.py │ │ │ ├── doctor_order_check.py │ │ │ ├── doctor_reserve_order.py │ │ │ ├── doctor_reserve_reorder.py │ │ │ ├── payback_reserve_order.py │ │ │ └── reserve_order_info.py │ │ ├── dependencies │ │ │ └── __init__.py │ │ ├── repository │ │ │ └── __init__.py │ │ └── schemas │ │ │ └── __init__.py │ └── userorders │ │ ├── __init__.py │ │ ├── api │ │ ├── __init__.py │ │ ├── refund_reserve_order.py │ │ ├── unpay_reserve_order.py │ │ ├── user_order_info.py │ │ ├── user_order_list.py │ │ └── wxauth_login.py │ │ ├── repository │ │ └── __init__.py │ │ └── schemas │ │ └── __init__.py │ ├── app.py │ ├── app_sync.py │ ├── config │ ├── __init__.py │ └── config.py │ ├── db │ ├── __init__.py │ ├── async_database.py │ ├── models.py │ └── sync_database.py │ ├── exts │ ├── __init__.py │ ├── async_rabbit │ │ └── __init__.py │ ├── exceptions │ │ └── __init__.py │ ├── logururoute │ │ ├── __init__.py │ │ └── config.py │ ├── rabbit │ │ └── __init__.py │ ├── rabbit2 │ │ └── __init__.py │ ├── requestvar │ │ ├── __init__.py │ │ └── bing.py │ ├── responses │ │ ├── __init__.py │ │ └── json_response.py │ └── wechatpy │ │ ├── __init__.py │ │ ├── _compat.py │ │ ├── client │ │ ├── __init__.py │ │ ├── api │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ ├── card.py │ │ │ ├── customservice.py │ │ │ ├── datacube.py │ │ │ ├── device.py │ │ │ ├── group.py │ │ │ ├── invoice.py │ │ │ ├── jsapi.py │ │ │ ├── marketing.py │ │ │ ├── material.py │ │ │ ├── media.py │ │ │ ├── menu.py │ │ │ ├── merchant │ │ │ │ ├── __init__.py │ │ │ │ ├── category.py │ │ │ │ ├── common.py │ │ │ │ ├── express.py │ │ │ │ ├── group.py │ │ │ │ ├── order.py │ │ │ │ ├── shelf.py │ │ │ │ └── stock.py │ │ │ ├── message.py │ │ │ ├── misc.py │ │ │ ├── poi.py │ │ │ ├── qrcode.py │ │ │ ├── scan.py │ │ │ ├── semantic.py │ │ │ ├── shakearound.py │ │ │ ├── tag.py │ │ │ ├── template.py │ │ │ ├── user.py │ │ │ ├── wifi.py │ │ │ └── wxa.py │ │ └── base.py │ │ ├── component.py │ │ ├── constants.py │ │ ├── crypto │ │ ├── __init__.py │ │ ├── base.py │ │ ├── cryptography.py │ │ ├── pkcs7.py │ │ └── pycrypto.py │ │ ├── enterprise │ │ ├── __init__.py │ │ ├── client │ │ │ ├── __init__.py │ │ │ └── api │ │ │ │ ├── __init__.py │ │ │ │ ├── agent.py │ │ │ │ ├── appchat.py │ │ │ │ ├── batch.py │ │ │ │ ├── chat.py │ │ │ │ ├── department.py │ │ │ │ ├── jsapi.py │ │ │ │ ├── material.py │ │ │ │ ├── media.py │ │ │ │ ├── menu.py │ │ │ │ ├── message.py │ │ │ │ ├── misc.py │ │ │ │ ├── oauth.py │ │ │ │ ├── service.py │ │ │ │ ├── shakearound.py │ │ │ │ ├── tag.py │ │ │ │ └── user.py │ │ ├── crypto.py │ │ ├── events.py │ │ ├── exceptions.py │ │ ├── messages.py │ │ ├── parser.py │ │ └── replies.py │ │ ├── events.py │ │ ├── exceptions.py │ │ ├── fields.py │ │ ├── messages.py │ │ ├── oauth.py │ │ ├── parser.py │ │ ├── pay │ │ ├── __init__.py │ │ ├── api │ │ │ ├── __init__.py │ │ │ ├── coupon.py │ │ │ ├── jsapi.py │ │ │ ├── micropay.py │ │ │ ├── order.py │ │ │ ├── redpack.py │ │ │ ├── refund.py │ │ │ ├── tools.py │ │ │ ├── transfer.py │ │ │ └── withhold.py │ │ ├── base.py │ │ └── utils.py │ │ ├── replies.py │ │ ├── session │ │ ├── __init__.py │ │ ├── memcachedstorage.py │ │ ├── memorystorage.py │ │ ├── redisstorage.py │ │ └── shovestorage.py │ │ └── utils.py │ ├── main.py │ ├── middlewares │ ├── __init__.py │ └── loger │ │ ├── __init__.py │ │ ├── bing.py │ │ └── middleware.py │ ├── order_consumer.py │ ├── plugins │ ├── __init__.py │ ├── base.py │ └── request_hook.py │ ├── requirements.txt │ ├── static │ ├── swagger-ui-bundle.js │ └── swagger-ui.css │ ├── utils │ ├── __init__.py │ ├── cast_helper.py │ ├── datatime_helper.py │ ├── json_helper.py │ ├── ordernum_helper.py │ ├── run_with_asyncio.py │ └── xmlhelper.py │ └── wxchatsdk │ └── __init__.py ├── chapter13 ├── booking_system │ ├── __init__.py │ ├── apis │ │ ├── __init__.py │ │ ├── doctor │ │ │ ├── api │ │ │ │ ├── __init__.py │ │ │ │ └── doctor_api.py │ │ │ ├── dependencies │ │ │ │ └── __init__.py │ │ │ ├── repository │ │ │ │ └── __init__.py │ │ │ └── schemas │ │ │ │ └── __init__.py │ │ ├── hospital │ │ │ ├── __init__.py │ │ │ ├── api │ │ │ │ ├── __init__.py │ │ │ │ └── get_hospital_info.py │ │ │ └── repository │ │ │ │ └── __init__.py │ │ ├── payorders │ │ │ ├── __init__.py │ │ │ ├── api │ │ │ │ ├── __init__.py │ │ │ │ ├── doctor_order_check.py │ │ │ │ ├── doctor_reserve_order.py │ │ │ │ ├── doctor_reserve_reorder.py │ │ │ │ ├── payback_reserve_order.py │ │ │ │ └── reserve_order_info.py │ │ │ ├── dependencies │ │ │ │ └── __init__.py │ │ │ ├── repository │ │ │ │ └── __init__.py │ │ │ └── schemas │ │ │ │ └── __init__.py │ │ └── userorders │ │ │ ├── __init__.py │ │ │ ├── api │ │ │ ├── __init__.py │ │ │ ├── refund_reserve_order.py │ │ │ ├── unpay_reserve_order.py │ │ │ ├── user_order_info.py │ │ │ ├── user_order_list.py │ │ │ └── wxauth_login.py │ │ │ ├── repository │ │ │ └── __init__.py │ │ │ └── schemas │ │ │ └── __init__.py │ ├── app.py │ ├── app_sync.py │ ├── config │ │ ├── __init__.py │ │ └── config.py │ ├── db │ │ ├── __init__.py │ │ ├── async_database.py │ │ ├── models.py │ │ └── sync_database.py │ ├── exts │ │ ├── __init__.py │ │ ├── async_rabbit │ │ │ └── __init__.py │ │ ├── exceptions │ │ │ └── __init__.py │ │ ├── logururoute │ │ │ ├── __init__.py │ │ │ └── config.py │ │ ├── rabbit │ │ │ └── __init__.py │ │ ├── rabbit2 │ │ │ └── __init__.py │ │ ├── requestvar │ │ │ ├── __init__.py │ │ │ └── bing.py │ │ ├── responses │ │ │ ├── __init__.py │ │ │ └── json_response.py │ │ └── wechatpy │ │ │ ├── __init__.py │ │ │ ├── _compat.py │ │ │ ├── client │ │ │ ├── __init__.py │ │ │ ├── api │ │ │ │ ├── __init__.py │ │ │ │ ├── base.py │ │ │ │ ├── card.py │ │ │ │ ├── customservice.py │ │ │ │ ├── datacube.py │ │ │ │ ├── device.py │ │ │ │ ├── group.py │ │ │ │ ├── invoice.py │ │ │ │ ├── jsapi.py │ │ │ │ ├── marketing.py │ │ │ │ ├── material.py │ │ │ │ ├── media.py │ │ │ │ ├── menu.py │ │ │ │ ├── merchant │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── category.py │ │ │ │ │ ├── common.py │ │ │ │ │ ├── express.py │ │ │ │ │ ├── group.py │ │ │ │ │ ├── order.py │ │ │ │ │ ├── shelf.py │ │ │ │ │ └── stock.py │ │ │ │ ├── message.py │ │ │ │ ├── misc.py │ │ │ │ ├── poi.py │ │ │ │ ├── qrcode.py │ │ │ │ ├── scan.py │ │ │ │ ├── semantic.py │ │ │ │ ├── shakearound.py │ │ │ │ ├── tag.py │ │ │ │ ├── template.py │ │ │ │ ├── user.py │ │ │ │ ├── wifi.py │ │ │ │ └── wxa.py │ │ │ └── base.py │ │ │ ├── component.py │ │ │ ├── constants.py │ │ │ ├── crypto │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ ├── cryptography.py │ │ │ ├── pkcs7.py │ │ │ └── pycrypto.py │ │ │ ├── enterprise │ │ │ ├── __init__.py │ │ │ ├── client │ │ │ │ ├── __init__.py │ │ │ │ └── api │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── agent.py │ │ │ │ │ ├── appchat.py │ │ │ │ │ ├── batch.py │ │ │ │ │ ├── chat.py │ │ │ │ │ ├── department.py │ │ │ │ │ ├── jsapi.py │ │ │ │ │ ├── material.py │ │ │ │ │ ├── media.py │ │ │ │ │ ├── menu.py │ │ │ │ │ ├── message.py │ │ │ │ │ ├── misc.py │ │ │ │ │ ├── oauth.py │ │ │ │ │ ├── service.py │ │ │ │ │ ├── shakearound.py │ │ │ │ │ ├── tag.py │ │ │ │ │ └── user.py │ │ │ ├── crypto.py │ │ │ ├── events.py │ │ │ ├── exceptions.py │ │ │ ├── messages.py │ │ │ ├── parser.py │ │ │ └── replies.py │ │ │ ├── events.py │ │ │ ├── exceptions.py │ │ │ ├── fields.py │ │ │ ├── messages.py │ │ │ ├── oauth.py │ │ │ ├── parser.py │ │ │ ├── pay │ │ │ ├── __init__.py │ │ │ ├── api │ │ │ │ ├── __init__.py │ │ │ │ ├── coupon.py │ │ │ │ ├── jsapi.py │ │ │ │ ├── micropay.py │ │ │ │ ├── order.py │ │ │ │ ├── redpack.py │ │ │ │ ├── refund.py │ │ │ │ ├── tools.py │ │ │ │ ├── transfer.py │ │ │ │ └── withhold.py │ │ │ ├── base.py │ │ │ └── utils.py │ │ │ ├── replies.py │ │ │ ├── session │ │ │ ├── __init__.py │ │ │ ├── memcachedstorage.py │ │ │ ├── memorystorage.py │ │ │ ├── redisstorage.py │ │ │ └── shovestorage.py │ │ │ └── utils.py │ ├── main.py │ ├── middlewares │ │ ├── __init__.py │ │ └── loger │ │ │ ├── __init__.py │ │ │ ├── bing.py │ │ │ └── middleware.py │ ├── order_consumer.py │ ├── plugins │ │ ├── __init__.py │ │ ├── base.py │ │ └── request_hook.py │ ├── requirements.txt │ ├── static │ │ ├── swagger-ui-bundle.js │ │ └── swagger-ui.css │ ├── testcase │ │ ├── __init__.py │ │ ├── conftest.py │ │ ├── test_async_api_v1.py │ │ ├── test_async_api_v2.py │ │ └── test_sync_api.py │ ├── utils │ │ ├── __init__.py │ │ ├── cast_helper.py │ │ ├── datatime_helper.py │ │ ├── json_helper.py │ │ ├── ordernum_helper.py │ │ ├── run_with_asyncio.py │ │ └── xmlhelper.py │ └── wxchatsdk │ │ └── __init__.py ├── pytest_demo │ ├── cast_helper.py │ └── test_add.py ├── pytest_fixture_demo │ ├── testcase │ │ ├── conftest.py │ │ └── test_case1.py │ └── tests │ │ ├── __init__.py │ │ ├── test_fixs.py │ │ ├── test_fixs_parametrize.py │ │ ├── test_fixs_parametrize_class.py │ │ └── test_fixs_params.py └── unittest_demo │ └── main.py ├── chapter14 ├── app.ini ├── booking_system │ ├── .drone.yml │ ├── Dockerfile │ ├── __init__.py │ ├── apis │ │ ├── __init__.py │ │ ├── doctor │ │ │ ├── api │ │ │ │ ├── __init__.py │ │ │ │ └── doctor_api.py │ │ │ ├── dependencies │ │ │ │ └── __init__.py │ │ │ ├── repository │ │ │ │ └── __init__.py │ │ │ └── schemas │ │ │ │ └── __init__.py │ │ ├── hospital │ │ │ ├── __init__.py │ │ │ ├── api │ │ │ │ ├── __init__.py │ │ │ │ └── get_hospital_info.py │ │ │ └── repository │ │ │ │ └── __init__.py │ │ ├── payorders │ │ │ ├── __init__.py │ │ │ ├── api │ │ │ │ ├── __init__.py │ │ │ │ ├── doctor_order_check.py │ │ │ │ ├── doctor_reserve_order.py │ │ │ │ ├── doctor_reserve_reorder.py │ │ │ │ ├── payback_reserve_order.py │ │ │ │ └── reserve_order_info.py │ │ │ ├── dependencies │ │ │ │ └── __init__.py │ │ │ ├── repository │ │ │ │ └── __init__.py │ │ │ └── schemas │ │ │ │ └── __init__.py │ │ └── userorders │ │ │ ├── __init__.py │ │ │ ├── api │ │ │ ├── __init__.py │ │ │ ├── refund_reserve_order.py │ │ │ ├── unpay_reserve_order.py │ │ │ ├── user_order_info.py │ │ │ ├── user_order_list.py │ │ │ └── wxauth_login.py │ │ │ ├── repository │ │ │ └── __init__.py │ │ │ └── schemas │ │ │ └── __init__.py │ ├── app.py │ ├── app_sync.py │ ├── config │ │ ├── __init__.py │ │ └── config.py │ ├── db │ │ ├── __init__.py │ │ ├── async_database.py │ │ ├── models.py │ │ └── sync_database.py │ ├── docker-compose.yml │ ├── exts │ │ ├── __init__.py │ │ ├── async_rabbit │ │ │ └── __init__.py │ │ ├── exceptions │ │ │ └── __init__.py │ │ ├── logururoute │ │ │ ├── __init__.py │ │ │ └── config.py │ │ ├── rabbit │ │ │ └── __init__.py │ │ ├── rabbit2 │ │ │ └── __init__.py │ │ ├── requestvar │ │ │ ├── __init__.py │ │ │ └── bing.py │ │ ├── responses │ │ │ ├── __init__.py │ │ │ └── json_response.py │ │ └── wechatpy │ │ │ ├── __init__.py │ │ │ ├── _compat.py │ │ │ ├── client │ │ │ ├── __init__.py │ │ │ ├── api │ │ │ │ ├── __init__.py │ │ │ │ ├── base.py │ │ │ │ ├── card.py │ │ │ │ ├── customservice.py │ │ │ │ ├── datacube.py │ │ │ │ ├── device.py │ │ │ │ ├── group.py │ │ │ │ ├── invoice.py │ │ │ │ ├── jsapi.py │ │ │ │ ├── marketing.py │ │ │ │ ├── material.py │ │ │ │ ├── media.py │ │ │ │ ├── menu.py │ │ │ │ ├── merchant │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── category.py │ │ │ │ │ ├── common.py │ │ │ │ │ ├── express.py │ │ │ │ │ ├── group.py │ │ │ │ │ ├── order.py │ │ │ │ │ ├── shelf.py │ │ │ │ │ └── stock.py │ │ │ │ ├── message.py │ │ │ │ ├── misc.py │ │ │ │ ├── poi.py │ │ │ │ ├── qrcode.py │ │ │ │ ├── scan.py │ │ │ │ ├── semantic.py │ │ │ │ ├── shakearound.py │ │ │ │ ├── tag.py │ │ │ │ ├── template.py │ │ │ │ ├── user.py │ │ │ │ ├── wifi.py │ │ │ │ └── wxa.py │ │ │ └── base.py │ │ │ ├── component.py │ │ │ ├── constants.py │ │ │ ├── crypto │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ ├── cryptography.py │ │ │ ├── pkcs7.py │ │ │ └── pycrypto.py │ │ │ ├── enterprise │ │ │ ├── __init__.py │ │ │ ├── client │ │ │ │ ├── __init__.py │ │ │ │ └── api │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── agent.py │ │ │ │ │ ├── appchat.py │ │ │ │ │ ├── batch.py │ │ │ │ │ ├── chat.py │ │ │ │ │ ├── department.py │ │ │ │ │ ├── jsapi.py │ │ │ │ │ ├── material.py │ │ │ │ │ ├── media.py │ │ │ │ │ ├── menu.py │ │ │ │ │ ├── message.py │ │ │ │ │ ├── misc.py │ │ │ │ │ ├── oauth.py │ │ │ │ │ ├── service.py │ │ │ │ │ ├── shakearound.py │ │ │ │ │ ├── tag.py │ │ │ │ │ └── user.py │ │ │ ├── crypto.py │ │ │ ├── events.py │ │ │ ├── exceptions.py │ │ │ ├── messages.py │ │ │ ├── parser.py │ │ │ └── replies.py │ │ │ ├── events.py │ │ │ ├── exceptions.py │ │ │ ├── fields.py │ │ │ ├── messages.py │ │ │ ├── oauth.py │ │ │ ├── parser.py │ │ │ ├── pay │ │ │ ├── __init__.py │ │ │ ├── api │ │ │ │ ├── __init__.py │ │ │ │ ├── coupon.py │ │ │ │ ├── jsapi.py │ │ │ │ ├── micropay.py │ │ │ │ ├── order.py │ │ │ │ ├── redpack.py │ │ │ │ ├── refund.py │ │ │ │ ├── tools.py │ │ │ │ ├── transfer.py │ │ │ │ └── withhold.py │ │ │ ├── base.py │ │ │ └── utils.py │ │ │ ├── replies.py │ │ │ ├── session │ │ │ ├── __init__.py │ │ │ ├── memcachedstorage.py │ │ │ ├── memorystorage.py │ │ │ ├── redisstorage.py │ │ │ └── shovestorage.py │ │ │ └── utils.py │ ├── main.py │ ├── middlewares │ │ ├── __init__.py │ │ └── loger │ │ │ ├── __init__.py │ │ │ ├── bing.py │ │ │ └── middleware.py │ ├── order_consumer.py │ ├── plugins │ │ ├── __init__.py │ │ ├── base.py │ │ └── request_hook.py │ ├── requirements.txt │ ├── static │ │ ├── swagger-ui-bundle.js │ │ └── swagger-ui.css │ ├── testcase │ │ ├── __init__.py │ │ ├── conftest.py │ │ ├── test_async_api_v1.py │ │ ├── test_async_api_v2.py │ │ └── test_sync_api.py │ ├── utils │ │ ├── __init__.py │ │ ├── cast_helper.py │ │ ├── datatime_helper.py │ │ ├── json_helper.py │ │ ├── ordernum_helper.py │ │ ├── run_with_asyncio.py │ │ └── xmlhelper.py │ └── wxchatsdk │ │ └── __init__.py └── drone_docker-compose.yml ├── chapter15 ├── Fastapi_cProfile │ ├── .prof │ └── main.py ├── Jaeger │ ├── test_jaeger_client │ │ └── main.py │ └── test_jaeger_client_fastapi │ │ └── middeware │ │ ├── __init__.py │ │ └── main.py ├── async_sync_change │ ├── main_asgiref_async_to_sync.py │ ├── main_asgiref_sync_to_async.py │ ├── main_asyncer_asyncify.py │ └── main_asyncer_syncify.py ├── async_wrapper │ ├── .runtest.prof │ └── main_asgiref_sync_to_async.py ├── body │ ├── main_01.py │ ├── main_02.py │ ├── main_03.py │ └── main_04.py ├── cProfile │ ├── c_profile_text_run.py │ ├── crpresutl.svg │ ├── runtest.prof │ ├── runtest_profile.stats │ └── runtest_profile_stats_run.py ├── contextvar_request │ ├── bind_.py │ ├── main_class.py │ └── request.py ├── depends │ ├── main_class.py │ ├── main_class_call.py │ ├── main_class_security_scopes.py │ ├── main_fun.py │ └── main_fun_security_scopes.py ├── fastapi_cache │ ├── main.py │ └── uu.py ├── model_sort │ └── main_asyncer_syncify.py ├── plugins │ ├── base.py │ └── main.py ├── sentry │ ├── __init__.py │ └── main.py └── smtplib │ ├── main_aiosmtplib.py │ ├── main_smtplib.py │ ├── test.jpg │ ├── test1.txt │ └── test2.txt ├── chapter16 ├── Jaeger │ ├── test_jaeger_client │ │ └── main.py │ └── test_jaeger_client_fastapi │ │ └── middeware │ │ ├── __init__.py │ │ └── main.py ├── async_sync_change │ ├── main_asgiref_async_to_sync.py │ ├── main_asgiref_sync_to_async.py │ ├── main_asyncer_asyncify.py │ └── main_asyncer_syncify.py ├── async_wrapper │ ├── .runtest.prof │ └── main_asgiref_sync_to_async.py ├── body │ ├── main_01.py │ ├── main_02.py │ ├── main_03.py │ └── main_04.py ├── contextvar_request │ ├── bind_.py │ ├── main_class.py │ └── request.py ├── depends │ ├── main_class.py │ ├── main_class_call.py │ ├── main_class_security_scopes.py │ ├── main_fun.py │ └── main_fun_security_scopes.py ├── model_sort │ └── main_asyncer_syncify.py ├── plugins │ ├── base.py │ └── main.py ├── sentry │ ├── __init__.py │ └── main.py └── smtplib │ ├── aaaa.py │ ├── main_aiosmtplib.py │ ├── main_smtplib.py │ ├── test.jpg │ ├── test1.txt │ └── test2.txt └── image.png /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/LICENSE -------------------------------------------------------------------------------- /README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/README.en.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/README.md -------------------------------------------------------------------------------- /chapter01/asyncio/contrast_async_other.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter01/asyncio/contrast_async_other.py -------------------------------------------------------------------------------- /chapter01/asyncio/contrast_sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter01/asyncio/contrast_sync.py -------------------------------------------------------------------------------- /chapter01/asyncio/cotrast_async.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter01/asyncio/cotrast_async.py -------------------------------------------------------------------------------- /chapter02/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter02/main.py -------------------------------------------------------------------------------- /chapter02/static/css/style.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter02/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter02/templates/index.html -------------------------------------------------------------------------------- /chapter02/templates/yyy.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter02/templates/yyy.txt -------------------------------------------------------------------------------- /chapter03/async_sync/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/async_sync/main.py -------------------------------------------------------------------------------- /chapter03/background_tasks/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/background_tasks/main.py -------------------------------------------------------------------------------- /chapter03/close_docs/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/close_docs/main.py -------------------------------------------------------------------------------- /chapter03/configparser_config/conf.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/configparser_config/conf.ini -------------------------------------------------------------------------------- /chapter03/configparser_config/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/configparser_config/main.py -------------------------------------------------------------------------------- /chapter03/debugshow/main.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter03/env_config/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/env_config/.env -------------------------------------------------------------------------------- /chapter03/env_config/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/env_config/main.py -------------------------------------------------------------------------------- /chapter03/global_exception/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/global_exception/main.py -------------------------------------------------------------------------------- /chapter03/localswagger/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/localswagger/main.py -------------------------------------------------------------------------------- /chapter03/localswagger/static/swagger-ui-bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/localswagger/static/swagger-ui-bundle.js -------------------------------------------------------------------------------- /chapter03/localswagger/static/swagger-ui.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/localswagger/static/swagger-ui.css -------------------------------------------------------------------------------- /chapter03/more_routers/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/more_routers/main.py -------------------------------------------------------------------------------- /chapter03/mount_app/fastapiapp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/mount_app/fastapiapp.py -------------------------------------------------------------------------------- /chapter03/mount_app/flaskapp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/mount_app/flaskapp.py -------------------------------------------------------------------------------- /chapter03/parameter_body/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_body/main.py -------------------------------------------------------------------------------- /chapter03/parameter_cookie/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_cookie/main.py -------------------------------------------------------------------------------- /chapter03/parameter_form_and_file/data.bat: -------------------------------------------------------------------------------- 1 | 你好,我是小钟同学。 -------------------------------------------------------------------------------- /chapter03/parameter_form_and_file/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_form_and_file/main.py -------------------------------------------------------------------------------- /chapter03/parameter_header/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_header/main.py -------------------------------------------------------------------------------- /chapter03/parameter_path/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_path/main.py -------------------------------------------------------------------------------- /chapter03/parameter_query/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_query/main.py -------------------------------------------------------------------------------- /chapter03/parameter_request/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_request/main.py -------------------------------------------------------------------------------- /chapter03/parameter_response/data.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_response/data.bat -------------------------------------------------------------------------------- /chapter03/parameter_response/main_file_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_response/main_file_response.py -------------------------------------------------------------------------------- /chapter03/parameter_response/main_html_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_response/main_html_response.py -------------------------------------------------------------------------------- /chapter03/parameter_response/main_json_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_response/main_json_response.py -------------------------------------------------------------------------------- /chapter03/parameter_response/main_plain_text_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_response/main_plain_text_response.py -------------------------------------------------------------------------------- /chapter03/parameter_response/main_redirect_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_response/main_redirect_response.py -------------------------------------------------------------------------------- /chapter03/parameter_response/main_response_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_response/main_response_model.py -------------------------------------------------------------------------------- /chapter03/parameter_response/main_status_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_response/main_status_code.py -------------------------------------------------------------------------------- /chapter03/parameter_response/main_streaming_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_response/main_streaming_response.py -------------------------------------------------------------------------------- /chapter03/parameter_response/main_xml_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/parameter_response/main_xml_response.py -------------------------------------------------------------------------------- /chapter03/startup_shutdown/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/startup_shutdown/main.py -------------------------------------------------------------------------------- /chapter03/static_dynamic/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/static_dynamic/main.py -------------------------------------------------------------------------------- /chapter03/swaggershow/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter03/swaggershow/main.py -------------------------------------------------------------------------------- /chapter04/business_error/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter04/business_error/main.py -------------------------------------------------------------------------------- /chapter04/custom_exception/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter04/custom_exception/main.py -------------------------------------------------------------------------------- /chapter04/http_exception/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter04/http_exception/main.py -------------------------------------------------------------------------------- /chapter04/middleware_exception/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter04/middleware_exception/main.py -------------------------------------------------------------------------------- /chapter04/request_validation_error/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter04/request_validation_error/main.py -------------------------------------------------------------------------------- /chapter05/body/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/body/main.py -------------------------------------------------------------------------------- /chapter05/pydantic_base/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/pydantic_base/main.py -------------------------------------------------------------------------------- /chapter05/pydantic_fastapi_get/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/pydantic_fastapi_get/main.py -------------------------------------------------------------------------------- /chapter05/pydantic_fastapi_post/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/pydantic_fastapi_post/main.py -------------------------------------------------------------------------------- /chapter05/pydantic_field/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/pydantic_field/main.py -------------------------------------------------------------------------------- /chapter05/pydantic_obj_to_dict_json/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/pydantic_obj_to_dict_json/main.py -------------------------------------------------------------------------------- /chapter05/pydantic_orm/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/pydantic_orm/main.py -------------------------------------------------------------------------------- /chapter05/pydantic_validator/address_error_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/pydantic_validator/address_error_main.py -------------------------------------------------------------------------------- /chapter05/pydantic_validator/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/pydantic_validator/main.py -------------------------------------------------------------------------------- /chapter05/pydantic_validator/root_validator_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/pydantic_validator/root_validator_main.py -------------------------------------------------------------------------------- /chapter05/pydantic_validator/share_logic_auth_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/pydantic_validator/share_logic_auth_main.py -------------------------------------------------------------------------------- /chapter05/pydantic_validator_order/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter05/pydantic_validator_order/main.py -------------------------------------------------------------------------------- /chapter06/depend_class/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter06/depend_class/main.py -------------------------------------------------------------------------------- /chapter06/depend_class_more_depends/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter06/depend_class_more_depends/main.py -------------------------------------------------------------------------------- /chapter06/depend_class_nest_depends/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter06/depend_class_nest_depends/main.py -------------------------------------------------------------------------------- /chapter06/depend_func/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter06/depend_func/main.py -------------------------------------------------------------------------------- /chapter06/depend_global_depends/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter06/depend_global_depends/main.py -------------------------------------------------------------------------------- /chapter06/depend_group_router/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter06/depend_group_router/main.py -------------------------------------------------------------------------------- /chapter07/base_http_middleware/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter07/base_http_middleware/main.py -------------------------------------------------------------------------------- /chapter07/cors_middleware/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter07/cors_middleware/main.py -------------------------------------------------------------------------------- /chapter07/https_redirect_middleware/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter07/https_redirect_middleware/main.py -------------------------------------------------------------------------------- /chapter07/log_response_middleware/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter07/log_response_middleware/main.py -------------------------------------------------------------------------------- /chapter07/middleware_process_time/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter07/middleware_process_time/main.py -------------------------------------------------------------------------------- /chapter07/tracdid_middleware/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter07/tracdid_middleware/main.py -------------------------------------------------------------------------------- /chapter07/trusted_host_middleware/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter07/trusted_host_middleware/main.py -------------------------------------------------------------------------------- /chapter07/whileIp_middleware/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter07/whileIp_middleware/main.py -------------------------------------------------------------------------------- /chapter08/aioredis_fastapi/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/aioredis_fastapi/main.py -------------------------------------------------------------------------------- /chapter08/aioredis_lock/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/aioredis_lock/main.py -------------------------------------------------------------------------------- /chapter08/aioredis_pubsub/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/aioredis_pubsub/main.py -------------------------------------------------------------------------------- /chapter08/databases_sql/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/databases_sql/main.py -------------------------------------------------------------------------------- /chapter08/databases_sql/user.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/databases_sql/user.db -------------------------------------------------------------------------------- /chapter08/databases_sqlalchemy/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/databases_sqlalchemy/main.py -------------------------------------------------------------------------------- /chapter08/databases_sqlalchemy/user.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/databases_sqlalchemy/user.db -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/alembic.ini -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/alembic/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/alembic/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/alembic/env.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/alembic/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/alembic/script.py.mako -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/alembic/versions/287a3cf31b84_shann.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/alembic/versions/287a3cf31b84_shann.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/api/__init__.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/api/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/api/user.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/config/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/config/__init__.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/config/confiig.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/config/confiig.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/db/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/db/__init__.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/db/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/db/database.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/dependencies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/dependencies/__init__.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/main.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/models/__init__.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/models/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/models/user.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/schemas/__init__.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/schemas/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/schemas/user.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/servies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/servies/__init__.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/servies/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/servies/user.py -------------------------------------------------------------------------------- /chapter08/fastapi_sqlalchemy/user.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/fastapi_sqlalchemy/user.db -------------------------------------------------------------------------------- /chapter08/lua_register_script/2mian.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/lua_register_script/2mian.py -------------------------------------------------------------------------------- /chapter08/lua_register_script/mian.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/lua_register_script/mian.py -------------------------------------------------------------------------------- /chapter08/sql_model/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/sql_model/main.py -------------------------------------------------------------------------------- /chapter08/sqlalchemy_async_sqlite3/aiosqlite_user.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/sqlalchemy_async_sqlite3/aiosqlite_user.db -------------------------------------------------------------------------------- /chapter08/sqlalchemy_async_sqlite3/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/sqlalchemy_async_sqlite3/main.py -------------------------------------------------------------------------------- /chapter08/sqlalchemy_sync_sqlite3/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/sqlalchemy_sync_sqlite3/main.py -------------------------------------------------------------------------------- /chapter08/sqlalchemy_sync_sqlite3/user.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/sqlalchemy_sync_sqlite3/user.db -------------------------------------------------------------------------------- /chapter08/sqlite3_connect/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/sqlite3_connect/main.py -------------------------------------------------------------------------------- /chapter08/sqlite3_connect/test.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/sqlite3_connect/test.db -------------------------------------------------------------------------------- /chapter08/sqlmodel_async_sqlite3/aiosqlite_user.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/sqlmodel_async_sqlite3/aiosqlite_user.db -------------------------------------------------------------------------------- /chapter08/sqlmodel_async_sqlite3/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/sqlmodel_async_sqlite3/main.py -------------------------------------------------------------------------------- /chapter08/sqlmodel_sync_sqlite3/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/sqlmodel_sync_sqlite3/main.py -------------------------------------------------------------------------------- /chapter08/sqlmodel_sync_sqlite3/user.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter08/sqlmodel_sync_sqlite3/user.db -------------------------------------------------------------------------------- /chapter09/api_key/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter09/api_key/main.py -------------------------------------------------------------------------------- /chapter09/http_basic/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter09/http_basic/main.py -------------------------------------------------------------------------------- /chapter09/http_digest/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter09/http_digest/main.py -------------------------------------------------------------------------------- /chapter09/jwt_use/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter09/jwt_use/main.py -------------------------------------------------------------------------------- /chapter09/mode_client/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter09/mode_client/main.py -------------------------------------------------------------------------------- /chapter09/mode_code/get_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter09/mode_code/get_token.py -------------------------------------------------------------------------------- /chapter09/mode_code/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter09/mode_code/main.py -------------------------------------------------------------------------------- /chapter09/mode_password/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter09/mode_password/main.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/api/__init__.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/api/short.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/api/short.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/api/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/api/user.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/config/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/config/__init__.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/config/config.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/db/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/db/__init__.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/db/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/db/database.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/dependencies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/dependencies/__init__.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/main.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/models/__init__.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/models/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/models/model.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/schemas/__init__.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/schemas/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/schemas/user.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/servies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/servies/__init__.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/servies/short.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/servies/short.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/servies/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/servies/user.py -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/short.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/shorr_url_pro/short.db -------------------------------------------------------------------------------- /chapter10/shorr_url_pro/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter10/short_url_pro/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter10/short_url_pro/api/short.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/api/short.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/api/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/api/user.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/app.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/config/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter10/short_url_pro/config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/config/config.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter10/short_url_pro/db/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/db/database.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/dependencies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/dependencies/__init__.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/main.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter10/short_url_pro/models/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/models/model.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/schemas/__init__.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/servies/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter10/short_url_pro/servies/short.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/servies/short.db -------------------------------------------------------------------------------- /chapter10/short_url_pro/servies/short.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/servies/short.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/servies/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/servies/user.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/short.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/short.db -------------------------------------------------------------------------------- /chapter10/short_url_pro/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter10/short_url_pro/utils/auth_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/utils/auth_helper.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/utils/passlib_hepler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/utils/passlib_hepler.py -------------------------------------------------------------------------------- /chapter10/short_url_pro/utils/random_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/short_url_pro/utils/random_helper.py -------------------------------------------------------------------------------- /chapter10/测试生成模型.pdma.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter10/测试生成模型.pdma.json -------------------------------------------------------------------------------- /chapter11/distributed_websocket/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/distributed_websocket/api/room.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/api/room.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/api/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/api/user.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/app.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/chat.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/chat.db -------------------------------------------------------------------------------- /chapter11/distributed_websocket/config/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/distributed_websocket/config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/config/config.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/distributed_websocket/db/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/db/database.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/dependencies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/dependencies/__init__.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/main.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/distributed_websocket/models/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/models/model.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/schemas/__init__.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/servies/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/distributed_websocket/servies/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/servies/user.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/templates/login.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/templates/login.html -------------------------------------------------------------------------------- /chapter11/distributed_websocket/templates/register.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/templates/register.html -------------------------------------------------------------------------------- /chapter11/distributed_websocket/templates/room.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/templates/room.html -------------------------------------------------------------------------------- /chapter11/distributed_websocket/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/distributed_websocket/utils/auth_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/utils/auth_helper.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/utils/passlib_hepler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/utils/passlib_hepler.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/utils/random_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/utils/random_helper.py -------------------------------------------------------------------------------- /chapter11/distributed_websocket/utils/room_connection_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/distributed_websocket/utils/room_connection_helper.py -------------------------------------------------------------------------------- /chapter11/websocket/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/websocket/api/room.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/api/room.py -------------------------------------------------------------------------------- /chapter11/websocket/api/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/api/user.py -------------------------------------------------------------------------------- /chapter11/websocket/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/app.py -------------------------------------------------------------------------------- /chapter11/websocket/chat.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/chat.db -------------------------------------------------------------------------------- /chapter11/websocket/config/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/websocket/config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/config/config.py -------------------------------------------------------------------------------- /chapter11/websocket/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/websocket/db/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/db/database.py -------------------------------------------------------------------------------- /chapter11/websocket/dependencies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/dependencies/__init__.py -------------------------------------------------------------------------------- /chapter11/websocket/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/main.py -------------------------------------------------------------------------------- /chapter11/websocket/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/websocket/models/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/models/model.py -------------------------------------------------------------------------------- /chapter11/websocket/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/schemas/__init__.py -------------------------------------------------------------------------------- /chapter11/websocket/servies/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/websocket/servies/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/servies/user.py -------------------------------------------------------------------------------- /chapter11/websocket/templates/login.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/templates/login.html -------------------------------------------------------------------------------- /chapter11/websocket/templates/register.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/templates/register.html -------------------------------------------------------------------------------- /chapter11/websocket/templates/room.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/templates/room.html -------------------------------------------------------------------------------- /chapter11/websocket/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter11/websocket/utils/auth_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/utils/auth_helper.py -------------------------------------------------------------------------------- /chapter11/websocket/utils/passlib_hepler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/utils/passlib_hepler.py -------------------------------------------------------------------------------- /chapter11/websocket/utils/random_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/utils/random_helper.py -------------------------------------------------------------------------------- /chapter11/websocket/utils/room_connection_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter11/websocket/utils/room_connection_helper.py -------------------------------------------------------------------------------- /chapter12/booking_system/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/apis/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/apis/doctor/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/doctor/api/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/doctor/api/doctor_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/doctor/api/doctor_api.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/doctor/dependencies/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/apis/doctor/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/doctor/repository/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/doctor/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/doctor/schemas/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/hospital/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/apis/hospital/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/hospital/api/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/hospital/api/get_hospital_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/hospital/api/get_hospital_info.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/hospital/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/hospital/repository/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/payorders/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/apis/payorders/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/payorders/api/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/payorders/api/doctor_order_check.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/payorders/api/doctor_order_check.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/payorders/api/doctor_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/payorders/api/doctor_reserve_order.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/payorders/api/doctor_reserve_reorder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/payorders/api/doctor_reserve_reorder.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/payorders/api/payback_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/payorders/api/payback_reserve_order.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/payorders/api/reserve_order_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/payorders/api/reserve_order_info.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/payorders/dependencies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/payorders/dependencies/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/payorders/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/payorders/repository/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/payorders/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/payorders/schemas/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/userorders/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/apis/userorders/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/userorders/api/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/userorders/api/refund_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/userorders/api/refund_reserve_order.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/userorders/api/unpay_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/userorders/api/unpay_reserve_order.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/userorders/api/user_order_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/userorders/api/user_order_info.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/userorders/api/user_order_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/userorders/api/user_order_list.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/userorders/api/wxauth_login.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/userorders/api/wxauth_login.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/userorders/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/userorders/repository/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/apis/userorders/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/apis/userorders/schemas/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/app.py -------------------------------------------------------------------------------- /chapter12/booking_system/app_sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/app_sync.py -------------------------------------------------------------------------------- /chapter12/booking_system/config/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/config/config.py -------------------------------------------------------------------------------- /chapter12/booking_system/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/db/async_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/db/async_database.py -------------------------------------------------------------------------------- /chapter12/booking_system/db/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/db/models.py -------------------------------------------------------------------------------- /chapter12/booking_system/db/sync_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/db/sync_database.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/exts/async_rabbit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/async_rabbit/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/exceptions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/exceptions/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/logururoute/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/logururoute/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/logururoute/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/logururoute/config.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/rabbit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/rabbit/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/rabbit2/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/rabbit2/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/requestvar/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/requestvar/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/requestvar/bing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/requestvar/bing.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/responses/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/responses/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/responses/json_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/responses/json_response.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/_compat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/_compat.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/base.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/card.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/card.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/customservice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/customservice.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/datacube.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/datacube.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/device.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/device.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/group.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/invoice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/invoice.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/jsapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/jsapi.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/marketing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/marketing.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/material.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/material.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/media.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/media.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/menu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/menu.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/merchant/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/merchant/common.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/merchant/express.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/merchant/express.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/merchant/group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/merchant/group.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/merchant/order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/merchant/order.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/merchant/shelf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/merchant/shelf.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/merchant/stock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/merchant/stock.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/message.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/misc.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/poi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/poi.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/qrcode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/qrcode.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/scan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/scan.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/semantic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/semantic.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/shakearound.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/shakearound.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/tag.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/template.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/user.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/wifi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/wifi.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/api/wxa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/api/wxa.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/client/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/client/base.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/component.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/component.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/constants.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/crypto/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/crypto/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/crypto/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/crypto/base.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/crypto/cryptography.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/crypto/cryptography.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/crypto/pkcs7.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/crypto/pkcs7.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/crypto/pycrypto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/crypto/pycrypto.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/client/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/client/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/client/api/agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/client/api/agent.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/client/api/batch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/client/api/batch.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/client/api/chat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/client/api/chat.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/client/api/jsapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/client/api/jsapi.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/client/api/media.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/client/api/media.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/client/api/menu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/client/api/menu.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/client/api/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/client/api/misc.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/client/api/oauth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/client/api/oauth.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/client/api/tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/client/api/tag.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/client/api/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/client/api/user.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/crypto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/crypto.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/events.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/exceptions.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/messages.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/parser.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/enterprise/replies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/enterprise/replies.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/events.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/exceptions.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/fields.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/fields.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/messages.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/oauth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/oauth.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/parser.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/api/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/api/coupon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/api/coupon.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/api/jsapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/api/jsapi.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/api/micropay.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/api/micropay.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/api/order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/api/order.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/api/redpack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/api/redpack.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/api/refund.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/api/refund.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/api/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/api/tools.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/api/transfer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/api/transfer.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/api/withhold.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/api/withhold.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/base.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/pay/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/pay/utils.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/replies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/replies.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/session/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/session/__init__.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/session/memcachedstorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/session/memcachedstorage.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/session/memorystorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/session/memorystorage.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/session/redisstorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/session/redisstorage.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/session/shovestorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/session/shovestorage.py -------------------------------------------------------------------------------- /chapter12/booking_system/exts/wechatpy/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/exts/wechatpy/utils.py -------------------------------------------------------------------------------- /chapter12/booking_system/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/main.py -------------------------------------------------------------------------------- /chapter12/booking_system/middlewares/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/middlewares/loger/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/middlewares/loger/bing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/middlewares/loger/bing.py -------------------------------------------------------------------------------- /chapter12/booking_system/middlewares/loger/middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/middlewares/loger/middleware.py -------------------------------------------------------------------------------- /chapter12/booking_system/order_consumer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/order_consumer.py -------------------------------------------------------------------------------- /chapter12/booking_system/plugins/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/plugins/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/plugins/base.py -------------------------------------------------------------------------------- /chapter12/booking_system/plugins/request_hook.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/plugins/request_hook.py -------------------------------------------------------------------------------- /chapter12/booking_system/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/requirements.txt -------------------------------------------------------------------------------- /chapter12/booking_system/static/swagger-ui-bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/static/swagger-ui-bundle.js -------------------------------------------------------------------------------- /chapter12/booking_system/static/swagger-ui.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/static/swagger-ui.css -------------------------------------------------------------------------------- /chapter12/booking_system/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter12/booking_system/utils/cast_helper.py: -------------------------------------------------------------------------------- 1 | def add(a,b): 2 | return a+b; -------------------------------------------------------------------------------- /chapter12/booking_system/utils/datatime_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/utils/datatime_helper.py -------------------------------------------------------------------------------- /chapter12/booking_system/utils/json_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/utils/json_helper.py -------------------------------------------------------------------------------- /chapter12/booking_system/utils/ordernum_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/utils/ordernum_helper.py -------------------------------------------------------------------------------- /chapter12/booking_system/utils/run_with_asyncio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/utils/run_with_asyncio.py -------------------------------------------------------------------------------- /chapter12/booking_system/utils/xmlhelper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter12/booking_system/utils/xmlhelper.py -------------------------------------------------------------------------------- /chapter12/booking_system/wxchatsdk/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/apis/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/apis/doctor/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/doctor/api/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/doctor/api/doctor_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/doctor/api/doctor_api.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/doctor/dependencies/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/apis/doctor/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/doctor/repository/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/doctor/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/doctor/schemas/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/hospital/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/apis/hospital/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/hospital/api/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/hospital/api/get_hospital_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/hospital/api/get_hospital_info.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/hospital/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/hospital/repository/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/payorders/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/apis/payorders/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/payorders/api/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/payorders/api/doctor_order_check.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/payorders/api/doctor_order_check.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/payorders/api/doctor_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/payorders/api/doctor_reserve_order.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/payorders/api/doctor_reserve_reorder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/payorders/api/doctor_reserve_reorder.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/payorders/api/payback_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/payorders/api/payback_reserve_order.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/payorders/api/reserve_order_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/payorders/api/reserve_order_info.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/payorders/dependencies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/payorders/dependencies/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/payorders/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/payorders/repository/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/payorders/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/payorders/schemas/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/userorders/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/apis/userorders/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/userorders/api/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/userorders/api/refund_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/userorders/api/refund_reserve_order.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/userorders/api/unpay_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/userorders/api/unpay_reserve_order.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/userorders/api/user_order_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/userorders/api/user_order_info.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/userorders/api/user_order_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/userorders/api/user_order_list.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/userorders/api/wxauth_login.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/userorders/api/wxauth_login.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/userorders/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/userorders/repository/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/apis/userorders/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/apis/userorders/schemas/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/app.py -------------------------------------------------------------------------------- /chapter13/booking_system/app_sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/app_sync.py -------------------------------------------------------------------------------- /chapter13/booking_system/config/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/config/config.py -------------------------------------------------------------------------------- /chapter13/booking_system/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/db/async_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/db/async_database.py -------------------------------------------------------------------------------- /chapter13/booking_system/db/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/db/models.py -------------------------------------------------------------------------------- /chapter13/booking_system/db/sync_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/db/sync_database.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/exts/async_rabbit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/async_rabbit/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/exceptions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/exceptions/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/logururoute/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/logururoute/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/logururoute/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/logururoute/config.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/rabbit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/rabbit/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/rabbit2/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/rabbit2/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/requestvar/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/requestvar/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/requestvar/bing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/requestvar/bing.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/responses/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/responses/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/responses/json_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/responses/json_response.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/_compat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/_compat.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/base.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/card.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/card.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/customservice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/customservice.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/datacube.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/datacube.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/device.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/device.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/group.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/invoice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/invoice.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/jsapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/jsapi.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/marketing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/marketing.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/material.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/material.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/media.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/media.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/menu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/menu.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/merchant/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/merchant/common.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/merchant/express.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/merchant/express.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/merchant/group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/merchant/group.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/merchant/order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/merchant/order.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/merchant/shelf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/merchant/shelf.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/merchant/stock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/merchant/stock.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/message.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/misc.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/poi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/poi.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/qrcode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/qrcode.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/scan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/scan.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/semantic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/semantic.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/shakearound.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/shakearound.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/tag.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/template.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/user.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/wifi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/wifi.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/api/wxa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/api/wxa.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/client/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/client/base.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/component.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/component.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/constants.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/crypto/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/crypto/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/crypto/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/crypto/base.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/crypto/cryptography.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/crypto/cryptography.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/crypto/pkcs7.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/crypto/pkcs7.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/crypto/pycrypto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/crypto/pycrypto.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/client/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/client/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/client/api/agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/client/api/agent.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/client/api/batch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/client/api/batch.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/client/api/chat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/client/api/chat.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/client/api/jsapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/client/api/jsapi.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/client/api/media.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/client/api/media.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/client/api/menu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/client/api/menu.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/client/api/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/client/api/misc.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/client/api/oauth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/client/api/oauth.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/client/api/tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/client/api/tag.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/client/api/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/client/api/user.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/crypto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/crypto.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/events.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/exceptions.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/messages.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/parser.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/enterprise/replies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/enterprise/replies.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/events.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/exceptions.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/fields.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/fields.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/messages.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/oauth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/oauth.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/parser.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/api/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/api/coupon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/api/coupon.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/api/jsapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/api/jsapi.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/api/micropay.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/api/micropay.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/api/order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/api/order.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/api/redpack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/api/redpack.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/api/refund.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/api/refund.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/api/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/api/tools.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/api/transfer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/api/transfer.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/api/withhold.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/api/withhold.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/base.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/pay/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/pay/utils.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/replies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/replies.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/session/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/session/__init__.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/session/memcachedstorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/session/memcachedstorage.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/session/memorystorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/session/memorystorage.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/session/redisstorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/session/redisstorage.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/session/shovestorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/session/shovestorage.py -------------------------------------------------------------------------------- /chapter13/booking_system/exts/wechatpy/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/exts/wechatpy/utils.py -------------------------------------------------------------------------------- /chapter13/booking_system/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/main.py -------------------------------------------------------------------------------- /chapter13/booking_system/middlewares/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/middlewares/loger/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/middlewares/loger/bing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/middlewares/loger/bing.py -------------------------------------------------------------------------------- /chapter13/booking_system/middlewares/loger/middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/middlewares/loger/middleware.py -------------------------------------------------------------------------------- /chapter13/booking_system/order_consumer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/order_consumer.py -------------------------------------------------------------------------------- /chapter13/booking_system/plugins/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/plugins/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/plugins/base.py -------------------------------------------------------------------------------- /chapter13/booking_system/plugins/request_hook.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/plugins/request_hook.py -------------------------------------------------------------------------------- /chapter13/booking_system/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/requirements.txt -------------------------------------------------------------------------------- /chapter13/booking_system/static/swagger-ui-bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/static/swagger-ui-bundle.js -------------------------------------------------------------------------------- /chapter13/booking_system/static/swagger-ui.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/static/swagger-ui.css -------------------------------------------------------------------------------- /chapter13/booking_system/testcase/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/testcase/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/testcase/conftest.py -------------------------------------------------------------------------------- /chapter13/booking_system/testcase/test_async_api_v1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/testcase/test_async_api_v1.py -------------------------------------------------------------------------------- /chapter13/booking_system/testcase/test_async_api_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/testcase/test_async_api_v2.py -------------------------------------------------------------------------------- /chapter13/booking_system/testcase/test_sync_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/testcase/test_sync_api.py -------------------------------------------------------------------------------- /chapter13/booking_system/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/booking_system/utils/cast_helper.py: -------------------------------------------------------------------------------- 1 | def add(a,b): 2 | return a+b; -------------------------------------------------------------------------------- /chapter13/booking_system/utils/datatime_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/utils/datatime_helper.py -------------------------------------------------------------------------------- /chapter13/booking_system/utils/json_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/utils/json_helper.py -------------------------------------------------------------------------------- /chapter13/booking_system/utils/ordernum_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/utils/ordernum_helper.py -------------------------------------------------------------------------------- /chapter13/booking_system/utils/run_with_asyncio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/utils/run_with_asyncio.py -------------------------------------------------------------------------------- /chapter13/booking_system/utils/xmlhelper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/booking_system/utils/xmlhelper.py -------------------------------------------------------------------------------- /chapter13/booking_system/wxchatsdk/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/pytest_demo/cast_helper.py: -------------------------------------------------------------------------------- 1 | def add(a,b): 2 | return a+b; -------------------------------------------------------------------------------- /chapter13/pytest_demo/test_add.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/pytest_demo/test_add.py -------------------------------------------------------------------------------- /chapter13/pytest_fixture_demo/testcase/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/pytest_fixture_demo/testcase/conftest.py -------------------------------------------------------------------------------- /chapter13/pytest_fixture_demo/testcase/test_case1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/pytest_fixture_demo/testcase/test_case1.py -------------------------------------------------------------------------------- /chapter13/pytest_fixture_demo/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter13/pytest_fixture_demo/tests/test_fixs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/pytest_fixture_demo/tests/test_fixs.py -------------------------------------------------------------------------------- /chapter13/pytest_fixture_demo/tests/test_fixs_parametrize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/pytest_fixture_demo/tests/test_fixs_parametrize.py -------------------------------------------------------------------------------- /chapter13/pytest_fixture_demo/tests/test_fixs_parametrize_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/pytest_fixture_demo/tests/test_fixs_parametrize_class.py -------------------------------------------------------------------------------- /chapter13/pytest_fixture_demo/tests/test_fixs_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/pytest_fixture_demo/tests/test_fixs_params.py -------------------------------------------------------------------------------- /chapter13/unittest_demo/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter13/unittest_demo/main.py -------------------------------------------------------------------------------- /chapter14/app.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/app.ini -------------------------------------------------------------------------------- /chapter14/booking_system/.drone.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/.drone.yml -------------------------------------------------------------------------------- /chapter14/booking_system/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/Dockerfile -------------------------------------------------------------------------------- /chapter14/booking_system/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/apis/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/apis/doctor/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/doctor/api/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/doctor/api/doctor_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/doctor/api/doctor_api.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/doctor/dependencies/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/apis/doctor/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/doctor/repository/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/doctor/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/doctor/schemas/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/hospital/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/apis/hospital/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/hospital/api/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/hospital/api/get_hospital_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/hospital/api/get_hospital_info.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/hospital/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/hospital/repository/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/payorders/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/apis/payorders/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/payorders/api/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/payorders/api/doctor_order_check.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/payorders/api/doctor_order_check.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/payorders/api/doctor_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/payorders/api/doctor_reserve_order.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/payorders/api/doctor_reserve_reorder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/payorders/api/doctor_reserve_reorder.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/payorders/api/payback_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/payorders/api/payback_reserve_order.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/payorders/api/reserve_order_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/payorders/api/reserve_order_info.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/payorders/dependencies/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/payorders/dependencies/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/payorders/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/payorders/repository/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/payorders/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/payorders/schemas/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/userorders/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/apis/userorders/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/userorders/api/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/userorders/api/refund_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/userorders/api/refund_reserve_order.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/userorders/api/unpay_reserve_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/userorders/api/unpay_reserve_order.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/userorders/api/user_order_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/userorders/api/user_order_info.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/userorders/api/user_order_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/userorders/api/user_order_list.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/userorders/api/wxauth_login.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/userorders/api/wxauth_login.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/userorders/repository/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/userorders/repository/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/apis/userorders/schemas/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/apis/userorders/schemas/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/app.py -------------------------------------------------------------------------------- /chapter14/booking_system/app_sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/app_sync.py -------------------------------------------------------------------------------- /chapter14/booking_system/config/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/config/config.py -------------------------------------------------------------------------------- /chapter14/booking_system/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/db/async_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/db/async_database.py -------------------------------------------------------------------------------- /chapter14/booking_system/db/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/db/models.py -------------------------------------------------------------------------------- /chapter14/booking_system/db/sync_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/db/sync_database.py -------------------------------------------------------------------------------- /chapter14/booking_system/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/docker-compose.yml -------------------------------------------------------------------------------- /chapter14/booking_system/exts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/exts/async_rabbit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/async_rabbit/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/exceptions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/exceptions/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/logururoute/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/logururoute/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/logururoute/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/logururoute/config.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/rabbit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/rabbit/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/rabbit2/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/rabbit2/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/requestvar/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/requestvar/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/requestvar/bing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/requestvar/bing.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/responses/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/responses/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/responses/json_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/responses/json_response.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/_compat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/_compat.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/base.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/card.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/card.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/customservice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/customservice.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/datacube.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/datacube.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/device.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/device.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/group.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/invoice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/invoice.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/jsapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/jsapi.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/marketing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/marketing.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/material.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/material.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/media.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/media.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/menu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/menu.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/merchant/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/merchant/common.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/merchant/express.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/merchant/express.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/merchant/group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/merchant/group.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/merchant/order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/merchant/order.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/merchant/shelf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/merchant/shelf.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/merchant/stock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/merchant/stock.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/message.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/misc.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/poi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/poi.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/qrcode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/qrcode.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/scan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/scan.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/semantic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/semantic.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/shakearound.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/shakearound.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/tag.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/template.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/user.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/wifi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/wifi.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/api/wxa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/api/wxa.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/client/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/client/base.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/component.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/component.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/constants.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/crypto/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/crypto/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/crypto/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/crypto/base.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/crypto/cryptography.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/crypto/cryptography.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/crypto/pkcs7.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/crypto/pkcs7.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/crypto/pycrypto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/crypto/pycrypto.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/enterprise/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/enterprise/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/enterprise/client/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/enterprise/client/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/enterprise/client/api/agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/enterprise/client/api/agent.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/enterprise/client/api/tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/enterprise/client/api/tag.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/enterprise/crypto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/enterprise/crypto.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/enterprise/events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/enterprise/events.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/enterprise/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/enterprise/exceptions.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/enterprise/messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/enterprise/messages.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/enterprise/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/enterprise/parser.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/enterprise/replies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/enterprise/replies.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/events.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/exceptions.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/fields.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/fields.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/messages.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/oauth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/oauth.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/parser.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/api/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/api/coupon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/api/coupon.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/api/jsapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/api/jsapi.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/api/micropay.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/api/micropay.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/api/order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/api/order.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/api/redpack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/api/redpack.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/api/refund.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/api/refund.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/api/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/api/tools.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/api/transfer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/api/transfer.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/api/withhold.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/api/withhold.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/base.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/pay/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/pay/utils.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/replies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/replies.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/session/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/session/__init__.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/session/memcachedstorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/session/memcachedstorage.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/session/memorystorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/session/memorystorage.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/session/redisstorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/session/redisstorage.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/session/shovestorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/session/shovestorage.py -------------------------------------------------------------------------------- /chapter14/booking_system/exts/wechatpy/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/exts/wechatpy/utils.py -------------------------------------------------------------------------------- /chapter14/booking_system/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/main.py -------------------------------------------------------------------------------- /chapter14/booking_system/middlewares/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/middlewares/loger/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/middlewares/loger/bing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/middlewares/loger/bing.py -------------------------------------------------------------------------------- /chapter14/booking_system/middlewares/loger/middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/middlewares/loger/middleware.py -------------------------------------------------------------------------------- /chapter14/booking_system/order_consumer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/order_consumer.py -------------------------------------------------------------------------------- /chapter14/booking_system/plugins/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/plugins/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/plugins/base.py -------------------------------------------------------------------------------- /chapter14/booking_system/plugins/request_hook.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/plugins/request_hook.py -------------------------------------------------------------------------------- /chapter14/booking_system/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/requirements.txt -------------------------------------------------------------------------------- /chapter14/booking_system/static/swagger-ui-bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/static/swagger-ui-bundle.js -------------------------------------------------------------------------------- /chapter14/booking_system/static/swagger-ui.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/static/swagger-ui.css -------------------------------------------------------------------------------- /chapter14/booking_system/testcase/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/testcase/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/testcase/conftest.py -------------------------------------------------------------------------------- /chapter14/booking_system/testcase/test_async_api_v1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/testcase/test_async_api_v1.py -------------------------------------------------------------------------------- /chapter14/booking_system/testcase/test_async_api_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/testcase/test_async_api_v2.py -------------------------------------------------------------------------------- /chapter14/booking_system/testcase/test_sync_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/testcase/test_sync_api.py -------------------------------------------------------------------------------- /chapter14/booking_system/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/booking_system/utils/cast_helper.py: -------------------------------------------------------------------------------- 1 | def add(a,b): 2 | return a+b; -------------------------------------------------------------------------------- /chapter14/booking_system/utils/datatime_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/utils/datatime_helper.py -------------------------------------------------------------------------------- /chapter14/booking_system/utils/json_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/utils/json_helper.py -------------------------------------------------------------------------------- /chapter14/booking_system/utils/ordernum_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/utils/ordernum_helper.py -------------------------------------------------------------------------------- /chapter14/booking_system/utils/run_with_asyncio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/utils/run_with_asyncio.py -------------------------------------------------------------------------------- /chapter14/booking_system/utils/xmlhelper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/booking_system/utils/xmlhelper.py -------------------------------------------------------------------------------- /chapter14/booking_system/wxchatsdk/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter14/drone_docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter14/drone_docker-compose.yml -------------------------------------------------------------------------------- /chapter15/Fastapi_cProfile/.prof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/Fastapi_cProfile/.prof -------------------------------------------------------------------------------- /chapter15/Fastapi_cProfile/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/Fastapi_cProfile/main.py -------------------------------------------------------------------------------- /chapter15/Jaeger/test_jaeger_client/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/Jaeger/test_jaeger_client/main.py -------------------------------------------------------------------------------- /chapter15/Jaeger/test_jaeger_client_fastapi/middeware/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/Jaeger/test_jaeger_client_fastapi/middeware/__init__.py -------------------------------------------------------------------------------- /chapter15/Jaeger/test_jaeger_client_fastapi/middeware/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/Jaeger/test_jaeger_client_fastapi/middeware/main.py -------------------------------------------------------------------------------- /chapter15/async_sync_change/main_asgiref_async_to_sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/async_sync_change/main_asgiref_async_to_sync.py -------------------------------------------------------------------------------- /chapter15/async_sync_change/main_asgiref_sync_to_async.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/async_sync_change/main_asgiref_sync_to_async.py -------------------------------------------------------------------------------- /chapter15/async_sync_change/main_asyncer_asyncify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/async_sync_change/main_asyncer_asyncify.py -------------------------------------------------------------------------------- /chapter15/async_sync_change/main_asyncer_syncify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/async_sync_change/main_asyncer_syncify.py -------------------------------------------------------------------------------- /chapter15/async_wrapper/.runtest.prof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/async_wrapper/.runtest.prof -------------------------------------------------------------------------------- /chapter15/async_wrapper/main_asgiref_sync_to_async.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/async_wrapper/main_asgiref_sync_to_async.py -------------------------------------------------------------------------------- /chapter15/body/main_01.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/body/main_01.py -------------------------------------------------------------------------------- /chapter15/body/main_02.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/body/main_02.py -------------------------------------------------------------------------------- /chapter15/body/main_03.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/body/main_03.py -------------------------------------------------------------------------------- /chapter15/body/main_04.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/body/main_04.py -------------------------------------------------------------------------------- /chapter15/cProfile/c_profile_text_run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/cProfile/c_profile_text_run.py -------------------------------------------------------------------------------- /chapter15/cProfile/crpresutl.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter15/cProfile/runtest.prof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/cProfile/runtest.prof -------------------------------------------------------------------------------- /chapter15/cProfile/runtest_profile.stats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/cProfile/runtest_profile.stats -------------------------------------------------------------------------------- /chapter15/cProfile/runtest_profile_stats_run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/cProfile/runtest_profile_stats_run.py -------------------------------------------------------------------------------- /chapter15/contextvar_request/bind_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/contextvar_request/bind_.py -------------------------------------------------------------------------------- /chapter15/contextvar_request/main_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/contextvar_request/main_class.py -------------------------------------------------------------------------------- /chapter15/contextvar_request/request.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/contextvar_request/request.py -------------------------------------------------------------------------------- /chapter15/depends/main_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/depends/main_class.py -------------------------------------------------------------------------------- /chapter15/depends/main_class_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/depends/main_class_call.py -------------------------------------------------------------------------------- /chapter15/depends/main_class_security_scopes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/depends/main_class_security_scopes.py -------------------------------------------------------------------------------- /chapter15/depends/main_fun.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/depends/main_fun.py -------------------------------------------------------------------------------- /chapter15/depends/main_fun_security_scopes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/depends/main_fun_security_scopes.py -------------------------------------------------------------------------------- /chapter15/fastapi_cache/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/fastapi_cache/main.py -------------------------------------------------------------------------------- /chapter15/fastapi_cache/uu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/fastapi_cache/uu.py -------------------------------------------------------------------------------- /chapter15/model_sort/main_asyncer_syncify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/model_sort/main_asyncer_syncify.py -------------------------------------------------------------------------------- /chapter15/plugins/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/plugins/base.py -------------------------------------------------------------------------------- /chapter15/plugins/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/plugins/main.py -------------------------------------------------------------------------------- /chapter15/sentry/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter15/sentry/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/sentry/main.py -------------------------------------------------------------------------------- /chapter15/smtplib/main_aiosmtplib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/smtplib/main_aiosmtplib.py -------------------------------------------------------------------------------- /chapter15/smtplib/main_smtplib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/smtplib/main_smtplib.py -------------------------------------------------------------------------------- /chapter15/smtplib/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter15/smtplib/test.jpg -------------------------------------------------------------------------------- /chapter15/smtplib/test1.txt: -------------------------------------------------------------------------------- 1 | 我是测试文件的内容! -------------------------------------------------------------------------------- /chapter15/smtplib/test2.txt: -------------------------------------------------------------------------------- 1 | 我是测试文件的内容! -------------------------------------------------------------------------------- /chapter16/Jaeger/test_jaeger_client/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/Jaeger/test_jaeger_client/main.py -------------------------------------------------------------------------------- /chapter16/Jaeger/test_jaeger_client_fastapi/middeware/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/Jaeger/test_jaeger_client_fastapi/middeware/__init__.py -------------------------------------------------------------------------------- /chapter16/Jaeger/test_jaeger_client_fastapi/middeware/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/Jaeger/test_jaeger_client_fastapi/middeware/main.py -------------------------------------------------------------------------------- /chapter16/async_sync_change/main_asgiref_async_to_sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/async_sync_change/main_asgiref_async_to_sync.py -------------------------------------------------------------------------------- /chapter16/async_sync_change/main_asgiref_sync_to_async.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/async_sync_change/main_asgiref_sync_to_async.py -------------------------------------------------------------------------------- /chapter16/async_sync_change/main_asyncer_asyncify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/async_sync_change/main_asyncer_asyncify.py -------------------------------------------------------------------------------- /chapter16/async_sync_change/main_asyncer_syncify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/async_sync_change/main_asyncer_syncify.py -------------------------------------------------------------------------------- /chapter16/async_wrapper/.runtest.prof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/async_wrapper/.runtest.prof -------------------------------------------------------------------------------- /chapter16/async_wrapper/main_asgiref_sync_to_async.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/async_wrapper/main_asgiref_sync_to_async.py -------------------------------------------------------------------------------- /chapter16/body/main_01.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/body/main_01.py -------------------------------------------------------------------------------- /chapter16/body/main_02.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/body/main_02.py -------------------------------------------------------------------------------- /chapter16/body/main_03.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/body/main_03.py -------------------------------------------------------------------------------- /chapter16/body/main_04.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/body/main_04.py -------------------------------------------------------------------------------- /chapter16/contextvar_request/bind_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/contextvar_request/bind_.py -------------------------------------------------------------------------------- /chapter16/contextvar_request/main_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/contextvar_request/main_class.py -------------------------------------------------------------------------------- /chapter16/contextvar_request/request.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/contextvar_request/request.py -------------------------------------------------------------------------------- /chapter16/depends/main_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/depends/main_class.py -------------------------------------------------------------------------------- /chapter16/depends/main_class_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/depends/main_class_call.py -------------------------------------------------------------------------------- /chapter16/depends/main_class_security_scopes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/depends/main_class_security_scopes.py -------------------------------------------------------------------------------- /chapter16/depends/main_fun.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/depends/main_fun.py -------------------------------------------------------------------------------- /chapter16/depends/main_fun_security_scopes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/depends/main_fun_security_scopes.py -------------------------------------------------------------------------------- /chapter16/model_sort/main_asyncer_syncify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/model_sort/main_asyncer_syncify.py -------------------------------------------------------------------------------- /chapter16/plugins/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/plugins/base.py -------------------------------------------------------------------------------- /chapter16/plugins/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/plugins/main.py -------------------------------------------------------------------------------- /chapter16/sentry/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter16/sentry/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/sentry/main.py -------------------------------------------------------------------------------- /chapter16/smtplib/aaaa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/smtplib/aaaa.py -------------------------------------------------------------------------------- /chapter16/smtplib/main_aiosmtplib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/smtplib/main_aiosmtplib.py -------------------------------------------------------------------------------- /chapter16/smtplib/main_smtplib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/smtplib/main_smtplib.py -------------------------------------------------------------------------------- /chapter16/smtplib/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/chapter16/smtplib/test.jpg -------------------------------------------------------------------------------- /chapter16/smtplib/test1.txt: -------------------------------------------------------------------------------- 1 | 我是测试文件的内容! -------------------------------------------------------------------------------- /chapter16/smtplib/test2.txt: -------------------------------------------------------------------------------- 1 | 我是测试文件的内容! -------------------------------------------------------------------------------- /image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangXinNan/fastapi_tutorial/HEAD/image.png --------------------------------------------------------------------------------