- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 43 for __name__ (0.06 seconds)
-
docs_src/wsgi/tutorial001_py39.py
from fastapi import FastAPI from fastapi.middleware.wsgi import WSGIMiddleware from flask import Flask, request from markupsafe import escape flask_app = Flask(__name__) @flask_app.route("/") def flask_main(): name = request.args.get("name", "World") return f"Hello, {escape(name)} from Flask!" app = FastAPI() @app.get("/v2") def read_main(): return {"message": "Hello World"}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 443 bytes - Click Count (0) -
fastapi/_compat/v2.py
ModelField( field_info=FieldInfo(annotation=model), name=model.__name__, mode="validation", ) for model in flat_validation_models ] flat_serialization_model_fields = [ ModelField( field_info=FieldInfo(annotation=model), name=model.__name__, mode="serialization", ) for model in flat_serialization_models
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 19.1K bytes - Click Count (0) -
scripts/sponsors.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 12:34:01 GMT 2025 - 6.1K bytes - Click Count (0) -
fastapi/security/open_id_connect_url.py
), ] = True, ): self.model = OpenIdConnectModel( openIdConnectUrl=openIdConnectUrl, description=description ) self.scheme_name = scheme_name or self.__class__.__name__ self.auto_error = auto_error def make_not_authenticated_error(self) -> HTTPException: return HTTPException( status_code=HTTP_401_UNAUTHORIZED, detail="Not authenticated",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 3.1K bytes - Click Count (0) -
scripts/topic_repos.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 12:34:01 GMT 2025 - 2.7K bytes - Click Count (0) -
ci/official/utilities/convert_msys_paths_to_win_paths.py
var_str = '\n'.join(f'{k}="{v}"' for k, v in converted_vars.items()) # The string can then be piped into `source`, to re-set the # 'converted' variables. print(var_str) if __name__ == '__main__': parser = argparse.ArgumentParser(description=( 'Convert MSYS paths in environment variables to Windows paths.')) parser.add_argument('--blacklist', nargs='*',
Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Wed Aug 07 23:01:25 GMT 2024 - 2.5K bytes - Click Count (0) -
scripts/deploy_docs_status.py
): comment.edit(message) break else: issue.create_comment(message) logging.info("Finished") if __name__ == "__main__":Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 30 05:56:53 GMT 2025 - 4.4K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial004.py
"full_name": "Alice Wonderson", "email": "******@****.***", "hashed_password": mod.get_password_hash("secretalice"), "disabled": True, } with patch.dict(f"{mod.__name__}.fake_users_db", {"alice": alice_user_data}): access_token = get_access_token( username="alice", password="secretalice", client=client ) response = client.get(
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 13.3K bytes - Click Count (0) -
fastapi/dependencies/utils.py
and param_details.depends.scope == "function" ): assert dependant.call raise DependencyScopeError( f'The dependency "{dependant.call.__name__}" has a scope of ' '"request", it cannot depend on dependencies with scope "function".' ) sub_own_oauth_scopes: list[str] = []
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 37.6K bytes - Click Count (3) -
ci/official/utilities/extract_resultstore_links.py
if args.xml_out_path: output_path = os.path.expandvars(args.xml_out_path) create_xml_file(links, output_path, verbose=verbose) if args.print: print_invocation_results(links) if __name__ == '__main__':Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Wed Nov 08 17:50:27 GMT 2023 - 10.9K bytes - Click Count (0)