Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2121 - 2130 of 7,602 for _class (0.07 sec)

  1. docs/uk/docs/tutorial/first-steps.md

    ### Перевірте
    
    Відкрийте браузер та введіть адресу <a href="http://127.0.0.1:8000" class="external-link" target="_blank">http://127.0.0.1:8000</a>.
    
    Ви побачите у відповідь таке повідомлення у форматі JSON:
    
    ```JSON
    {"message": "Hello World"}
    ```
    
    ### Інтерактивна API документація
    
    Перейдемо сюди <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. docs_src/body_nested_models/tutorial005_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        image: Image | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 468 bytes
    - Viewed (0)
  3. docs_src/generate_clients/tutorial001.py

    from typing import List
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    class ResponseMessage(BaseModel):
        message: str
    
    
    @app.post("/items/", response_model=ResponseMessage)
    async def create_item(item: Item):
        return {"message": "item received"}
    
    
    @app.get("/items/", response_model=List[Item])
    async def get_items():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Mar 04 22:02:18 UTC 2022
    - 519 bytes
    - Viewed (0)
  4. docs_src/query_param_models/tutorial002_pv1_an_py39.py

    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    from typing_extensions import Annotated, Literal
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        class Config:
            extra = "forbid"
    
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 497 bytes
    - Viewed (0)
  5. docs_src/query_param_models/tutorial002_pv1_py39.py

    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    from typing_extensions import Literal
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        class Config:
            extra = "forbid"
    
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 476 bytes
    - Viewed (0)
  6. docs/de/docs/deployment/server-workers.md

    ## Gunicorn und Uvicorn installieren
    
    <div class="termy">
    
    ```console
    $ pip install "uvicorn[standard]" gunicorn
    
    ---> 100%
    ```
    
    </div>
    
    Dadurch wird sowohl Uvicorn mit zusätzlichen `standard`-Packages (um eine hohe Leistung zu erzielen) als auch Gunicorn installiert.
    
    ## Gunicorn mit Uvicorn-Workern ausführen
    
    Dann können Sie Gunicorn ausführen mit:
    
    <div class="termy">
    
    ```console
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/platform/Android10Platform.kt

        hostname: String?,
        protocols: List<Protocol>,
      ) {
        // No TLS extensions if the socket class is custom.
        socketAdapters.find { it.matchesSocket(sslSocket) }
          ?.configureTlsExtensions(sslSocket, hostname, protocols)
      }
    
      override fun getSelectedProtocol(sslSocket: SSLSocket): String? =
        // No TLS extensions if the socket class is custom.
        socketAdapters.find { it.matchesSocket(sslSocket) }?.getSelectedProtocol(sslSocket)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class BiMapInverseTester<K, V> extends AbstractBiMapTester<K, V> {
    
      public void testInverseSame() {
        assertSame(getMap(), getMap().inverse().inverse());
      }
    
      @CollectionFeature.Require(SERIALIZABLE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/AbstractLoadingCache.java

    import java.util.Map;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutionException;
    
    /**
     * This class provides a skeletal implementation of the {@code Cache} interface to minimize the
     * effort required to implement this interface.
     *
     * <p>To implement a cache, the programmer needs only to extend this class and provide an
     * implementation for the {@link #get(Object)} and {@link #getIfPresent} methods. {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Aug 06 17:12:03 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/debugging.md

    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    mas não é chamado quando outro arquivo o importa, como em:
    
    ```Python
    from myapp import app
    ```
    
    #### Mais detalhes
    
    Digamos que seu arquivo se chama `myapp.py`.
    
    Se você executá-lo com:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top