Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 47 for __uikit__ (0.14 sec)

  1. fastapi/openapi/utils.py

                    # TODO: probably make status_code a default class attribute for all
                    # responses in Starlette
                    response_signature = inspect.signature(current_response_class.__init__)
                    status_code_param = response_signature.parameters.get("status_code")
                    if status_code_param is not None:
                        if isinstance(status_code_param.default, int):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/first-steps.md

    <font color="#3465A4">INFO    </font> Searching for package file structure from directories with <font color="#3465A4">__init__.py</font> files
    <font color="#3465A4">INFO    </font> Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font>
    
     ╭─ <font color="#8AE234"><b>Python module file</b></font> ─╮
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 00:24:48 UTC 2024
    - 12K bytes
    - Viewed (1)
  3. samples/bookinfo/src/productpage/productpage.py

        # We intentionally do not pool so that we can easily test load distribution across many versions of our backends
        return requests.get(url, **kwargs)
    
    
    class Writer(object):
        def __init__(self, filename):
            self.file = open(filename, 'w')
    
        def write(self, data):
            self.file.write(data)
    
        def flush(self):
            self.file.flush()
    
    
    if __name__ == '__main__':
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 14:35:54 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/sql-databases.md

        在文档中也有一篇使用 Peewee 的等效的文章。
    
    ## 文件结构
    
    对于这些示例,假设您有一个名为的目录`my_super_project`,其中包含一个名为的子目录`sql_app`,其结构如下:
    
    ```
    .
    └── sql_app
        ├── __init__.py
        ├── crud.py
        ├── database.py
        ├── main.py
        ├── models.py
        └── schemas.py
    ```
    
    该文件`__init__.py`只是一个空文件,但它告诉 Python `sql_app` 是一个包。
    
    现在让我们看看每个文件/模块的作用。
    
    ## 安装 SQLAlchemy
    
    首先你需要安装`SQLAlchemy`:
    
    <div class="termy">
    
    ```console
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue May 07 21:00:22 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  5. docs/em/docs/deployment/docker.md

    ```
    
    </div>
    
    !!! info
        📤 🎏 📁 &amp; 🧰 🔬 &amp; ❎ 📦 🔗.
    
        👤 🔜 🎦 👆 🖼 ⚙️ 🎶 ⏪ 📄 🔛. 👶
    
    ### ✍ **FastAPI** 📟
    
    * ✍ `app` 📁 &amp; ⛔ ⚫️.
    * ✍ 🛁 📁 `__init__.py`.
    * ✍ `main.py` 📁 ⏮️:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/settings.md

    {!../../../docs_src/settings/app01/config.py!}
    ```
    
    And then use it in a file `main.py`:
    
    ```Python hl_lines="3  11-13"
    {!../../../docs_src/settings/app01/main.py!}
    ```
    
    !!! tip
        You would also need a file `__init__.py` as you saw in [Bigger Applications - Multiple Files](../tutorial/bigger-applications.md){.internal-link target=_blank}.
    
    ## Settings in a dependency
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. docs/ru/docs/deployment/docker.md

        В этом же разделе, но позже, я покажу вам пример использования Poetry. 👇
    
    ### Создать приложение **FastAPI**
    
    * Создайте директорию `app` и перейдите в неё.
    * Создайте пустой файл `__init__.py`.
    * Создайте файл `main.py` и заполните его:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  8. docs/pt/docs/deployment/docker.md

        Eu vou mostrar um exemplo depois usando Poetry em uma seção abaixo. 👇
    
    ### Criando o Código do **FastAPI**
    
    * Crie um diretório `app` e entre nele.
    * Crie um arquivo vazio `__init__.py`.
    * Crie um arquivo `main.py` com:
    
    ```Python
    from typing import Optional
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

      return variable_nodes
    
    
    class MultipleSignatureModel(module.Module):
      """A model with 2 signatures.
    
      Used to test where the quantizer has to handle multiple signatures.
      """
    
      def __init__(self):
        self.matmul_filters = random_ops.random_uniform(
            shape=(4, 3), minval=-1.0, maxval=1.0
        )
        self.conv_filters = np.random.uniform(
            low=-10, high=10, size=(2, 3, 3, 2)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  10. docs/en/docs/deployment/docker.md

    </div>
    
    !!! info
        There are other formats and tools to define and install package dependencies.
    
    ### Create the **FastAPI** Code
    
    * Create an `app` directory and enter it.
    * Create an empty file `__init__.py`.
    * Create a `main.py` file with:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 34K bytes
    - Viewed (0)
Back to top