Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 9,260 for import_ (0.06 sec)

  1. docs/pt/docs/tutorial/testing.md

    Certifique-se de criar um [ambiente virtual](../virtual-environments.md){.internal-link target=_blank}, ativá-lo e instalá-lo, por exemplo:
    
    ```console
    $ pip install httpx
    ```
    
    ///
    
    Importe `TestClient`.
    
    Crie um `TestClient` passando seu aplicativo **FastAPI** para ele.
    
    Crie funções com um nome que comece com `test_` (essa é a convenção padrão do `pytest`).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.HashSet;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.ListIterator;
    import java.util.Locale;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Properties;
    import java.util.ServiceLoader;
    import java.util.Set;
    import java.util.function.Consumer;
    import java.util.function.Function;
    import java.util.regex.Matcher;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/composition/DefaultDependencyManagementImporter.java

     */
    package org.apache.maven.model.composition;
    
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.util.Collection;
    import java.util.HashSet;
    import java.util.Iterator;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Objects;
    import java.util.Set;
    
    import org.apache.maven.api.model.Dependency;
    import org.apache.maven.api.model.DependencyManagement;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/PublicApi.kt

    package gradlebuild.basics
    
    import java.util.regex.Pattern
    
    
    /**
     * This is the definition of what constitutes the Gradle public API.
     *
     * A type is part of the Gradle public API if and only if its FQCN matches {@link #includes} and does not match {@link #excludes}.
     */
    // NOTE: If you update this, please also change .idea/scopes/Gradle_public_API.xml
    object PublicApi {
        val includes = listOf(
            "org/gradle/*",
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 12 23:20:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. api/maven-api-model/src/main/java/org/apache/maven/api/model/InputLocation.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api.model;
    
    import java.io.Serializable;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.LinkedHashMap;
    import java.util.Map;
    
    /**
     * Class InputLocation.
     */
    public class InputLocation implements Serializable, InputLocationTracker {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 15 13:24:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/RegularImmutableBiMap.java

    import com.google.errorprone.annotations.concurrent.LazyInit;
    import com.google.j2objc.annotations.RetainedWith;
    import java.io.InvalidObjectException;
    import java.io.ObjectInputStream;
    import java.io.Serializable;
    import java.util.function.BiConsumer;
    import java.util.function.Consumer;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. docs/pt/docs/fastapi-cli.md

     │                          │
     ╰──────────────────────────╯
    
    <font color="#3465A4">INFO    </font> Using import string <font color="#8AE234"><b>main:app</b></font>
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. docs/es/docs/advanced/additional-status-codes.md

    Pero también quieres que acepte nuevos ítems. Cuando los ítems no existan anteriormente, serán creados y devolverá un código de estado HTTP 201 "Created".
    
    Para conseguir esto importa `JSONResponse` y devuelve ahí directamente tu contenido, asignando el `status_code` que quieras:
    
    ```Python hl_lines="4  25"
    {!../../docs_src/additional_status_codes/tutorial001.py!}
    ```
    
    /// warning | Advertencia
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/debugging.md

    , 📄:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    🔜 🏃.
    
    ---
    
    👉 🏆 🚫 🔨 🚥 👆 🗄 👈 🕹 (📁).
    
    , 🚥 👆 ✔️ ➕1️⃣ 📁 `importer.py` ⏮️:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    👈 💼, 🏧 🔢 🔘 `myapp.py` 🔜 🚫 ✔️ 🔢 `__name__` ⏮️ 💲 `"__main__"`.
    
    , ⏸:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    🔜 🚫 🛠️.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/debugging.md

        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    будет запущена.
    
    ---
    
    Но этого не произойдет, если вы импортируете этот модуль (файл).
    
    Таким образом, если у вас есть файл `importer.py` с таким импортом:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    то автоматическая создаваемая внутри файла `myapp.py` переменная  `__name__` будет иметь значение отличающееся от `"__main__"`.
    
    Следовательно, строка:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top