- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 35 for __name__ (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tensorflow/api_template.__init__.py
# the __path__ so that "from tensorflow.foo import bar" works. # We're using bitwise, but there's nothing special about that. _API_MODULE = _sys.modules[__name__].bitwise _tf_api_dir = _os.path.dirname(_os.path.dirname(_API_MODULE.__file__)) _current_module = _sys.modules[__name__] if not hasattr(_current_module, "__path__"): __path__ = [_tf_api_dir] elif _tf_api_dir not in __path__: __path__.append(_tf_api_dir)
Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Wed Oct 02 22:16:02 GMT 2024 - 6.8K bytes - Click Count (0) -
fastapi/security/http.py
auto_error: bool = True, ): self.model: HTTPBaseModel = HTTPBaseModel( scheme=scheme, description=description ) self.scheme_name = scheme_name or self.__class__.__name__ self.auto_error = auto_error def make_authenticate_headers(self) -> dict[str, str]: return {"WWW-Authenticate": f"{self.model.scheme.title()}"}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 13.2K bytes - Click Count (0) -
tests/test_generic_parameterless_depends.py
class A: pass class B: pass @app.get("/a") async def a(dep: Dep[A]): return {"cls": dep.__class__.__name__} @app.get("/b") async def b(dep: Dep[B]): return {"cls": dep.__class__.__name__} client = TestClient(app) def test_generic_parameterless_depends(): response = client.get("/a") assert response.status_code == 200, response.textCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.8K bytes - Click Count (0) -
tests/test_tutorial/test_custom_request_and_route/test_tutorial001.py
mod = importlib.import_module(f"docs_src.custom_request_and_route.{request.param}") @mod.app.get("/check-class") async def check_gzip_request(request: Request): return {"request_class": type(request).__name__} client = TestClient(mod.app) return client @pytest.mark.parametrize("compress", [True, False]) def test_gzip_request(client: TestClient, compress): n = 1000 headers = {}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.3K bytes - Click Count (0) -
docs/lambda/README.md
Install the necessary dependencies. ```sh pip install flask requests ``` Following is an example lambda handler. ```py from flask import Flask, request, abort, make_response import requests app = Flask(__name__) @app.route('/', methods=['POST']) def get_webhook(): if request.method == 'POST': # obtain the request event from the 'POST' call event = request.json object_context = event["getObjectContext"]
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Aug 12 18:20:36 GMT 2025 - 7.7K bytes - Click Count (0) -
ci/official/utilities/rename_and_verify_wheels.sh
"$python" -c 'import tensorflow as tf; t1=tf.constant([1,2,3,4]); t2=tf.constant([5,6,7,8]); print(tf.add(t1,t2).shape)' "$python" -c 'import sys; import tensorflow as tf; sys.exit(0 if "keras" in tf.keras.__name__ else 1)' fi # Import tf nightly wheel built with numpy2 from PyPI in numpy1 env for testing. # This aims to maintain TF compatibility with NumPy 1.x until 2025 b/361369076. if [[ "$TFCI_WHL_NUMPY_VERSION" == 1 ]]; then
Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Mon Sep 22 21:39:32 GMT 2025 - 4.4K bytes - Click Count (0) -
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) -
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)