Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 147 for for (0.16 sec)

  1. fastapi/applications.py

                        text representation.
                    * `externalDocs`: Additional external documentation for this tag. If
                        provided, it would contain a `dict` with:
                        * `description`: A short description of the target documentation.
                            [CommonMark syntax](https://commonmark.org/) MAY be used for
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  2. tensorflow/api_template_v1.__init__.py

    setattr(_current_module, "keras", _KerasLazyLoader(globals(), mode="v1"))
    _module_dir = _module_util.get_parent_dir_for_name("keras._tf_keras.keras")
    _current_module.__path__ = [_module_dir] + _current_module.__path__
    if _tf_uses_legacy_keras:
      _module_dir = _module_util.get_parent_dir_for_name("tf_keras.api._v1.keras")
    else:
      _module_dir = _module_util.get_parent_dir_for_name("keras.api._v1.keras")
    _current_module.__path__ = [_module_dir] + _current_module.__path__
    
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 23 02:14:00 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  3. fastapi/openapi/models.py

        # Vocabularies for Semantic Content With "format"
        format: Optional[str] = None
        # Ref: JSON Schema Validation 2020-12: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-a-vocabulary-for-the-conten
        # A Vocabulary for the Contents of String-Encoded Data
        contentEncoding: Optional[str] = None
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  4. fastapi/openapi/docs.py

        for example the URLs to use to load Swagger UI's JavaScript and CSS.
    
        Read more about it in the
        [FastAPI docs for Configure Swagger UI](https://fastapi.tiangolo.com/how-to/configure-swagger-ui/)
        and the [FastAPI docs for Custom Docs UI Static Assets (Self-Hosting)](https://fastapi.tiangolo.com/how-to/custom-docs-ui-assets/).
        """
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  5. tests/test_serialize_response_model.py

    
    client = TestClient(app)
    
    
    def test_valid():
        response = client.get("/items/valid")
        response.raise_for_status()
        assert response.json() == {"aliased_name": "valid", "price": 1.0, "owner_ids": None}
    
    
    def test_coerce():
        response = client.get("/items/coerce")
        response.raise_for_status()
        assert response.json() == {
            "aliased_name": "coerce",
            "price": 1.0,
            "owner_ids": None,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_websockets/test_tutorial002_an_py310.py

                assert data == f"Message text was: {message}, for item ID: foo"
                message = "Message two"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: fakesession"
                data = websocket.receive_text()
                assert data == f"Message text was: {message}, for item ID: foo"
    
    
    @needs_py310
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  7. docs_src/request_files/tutorial002_an.py

    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(files: Annotated[List[bytes], File()]):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(files: List[UploadFile]):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    async def main():
        content = """
    <body>
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 861 bytes
    - Viewed (0)
  8. docs_src/request_files/tutorial003.py

        files: List[bytes] = File(description="Multiple files as bytes"),
    ):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(
        files: List[UploadFile] = File(description="Multiple files as UploadFile"),
    ):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    async def main():
        content = """
    <body>
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 913 bytes
    - Viewed (0)
  9. tensorflow/__init__.py

    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    # ==============================================================================
    
    # Bring in all of the public TensorFlow interface into this
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Sep 28 21:37:05 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  10. fastapi/responses.py

        orjson = None  # type: ignore
    
    
    class UJSONResponse(JSONResponse):
        """
        JSON response using the high-performance ujson library to serialize data to JSON.
    
        Read more about it in the
        [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/).
        """
    
        def render(self, content: Any) -> bytes:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 1.7K bytes
    - Viewed (0)
Back to top