Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 125 for Up (0.01 sec)

  1. .github/workflows/ci.yml

          # - 25 for running Javadoc and javac (to help people who build Guava locally and might not use a recent JDK to run Maven)
          - name: 'Set up JDKs'
            uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
            with:
              java-version: |
                ${{ matrix.java }}
                25
              distribution: 'temurin'
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 01 19:32:55 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. docs_src/app_testing/tutorial004_py39.py

    from fastapi.testclient import TestClient
    
    items = {}
    
    
    @asynccontextmanager
    async def lifespan(app: FastAPI):
        items["foo"] = {"name": "Fighters"}
        items["bar"] = {"name": "Tenders"}
        yield
        # clean up items
        items.clear()
    
    
    app = FastAPI(lifespan=lifespan)
    
    
    @app.get("/items/{item_id}")
    async def read_items(item_id: str):
        return items[item_id]
    
    
    def test_read_items():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  3. .github/workflows/maven.yml

      MIMIR_LOCAL: ~/.mimir/local
      MAVEN_OPTS: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./target/java_heapdump.hprof
    
    jobs:
      initial-build:
        runs-on: ubuntu-latest
        steps:
          - name: Set up JDK
            uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
            with:
              java-version: 17
              distribution: 'temurin'
    
          - name: Checkout maven
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 16 04:24:24 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  4. docs/en/docs/project-generation.md

    You can use this template to get started, as it includes a lot of the initial set up, security, database and some API endpoints already done for you.
    
    GitHub Repository: <a href="https://github.com/tiangolo/full-stack-fastapi-template" class="external-link" target="_blank">Full Stack FastAPI Template</a>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Dec 08 13:04:54 UTC 2025
    - 2K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/events.md

    This can be very useful for setting up **resources** that you need to use for the whole app, and that are **shared** among requests, and/or that you need to **clean up** afterwards. For example, a database connection pool, or loading a shared machine learning model.
    
    ## Use Case { #use-case }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. .github/workflows/translate.yml

      langs:
        runs-on: ubuntu-latest
        outputs:
          langs: ${{ steps.show-langs.outputs.langs }}
          commands: ${{ steps.show-langs.outputs.commands }}
        steps:
          - uses: actions/checkout@v6
          - name: Set up Python
            uses: actions/setup-python@v6
            with:
              python-version: "3.11"
          - name: Setup uv
            uses: astral-sh/setup-uv@v7
            with:
              cache-dependency-glob: |
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:48:45 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  7. .github/workflows/build-docs.yml

      langs:
        needs:
          - changes
        runs-on: ubuntu-latest
        outputs:
          langs: ${{ steps.show-langs.outputs.langs }}
        steps:
          - uses: actions/checkout@v6
          - name: Set up Python
            uses: actions/setup-python@v6
            with:
              python-version: "3.11"
          - name: Setup uv
            uses: astral-sh/setup-uv@v7
            with:
              version: "0.4.15"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 21 17:40:17 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  8. docs_src/dependencies/tutorial008e_py39.py

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    def get_username():
        try:
            yield "Rick"
        finally:
            print("Cleanup up before response is sent")
    
    
    @app.get("/users/me")
    def get_user_me(username: str = Depends(get_username, scope="function")):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 289 bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
      }
    
      public void testListenerCalledOnException() throws Exception {
        throwException = true;
    
        // Start up the task and unblock the latch to finish the task.
        exec.execute(task);
        runLatch.await();
        taskLatch.countDown();
    
        ExecutionException e = assertThrows(ExecutionException.class, () -> task.get(5, SECONDS));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  10. docs_src/events/tutorial003_py39.py

    
    ml_models = {}
    
    
    @asynccontextmanager
    async def lifespan(app: FastAPI):
        # Load the ML model
        ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model
        yield
        # Clean up the ML models and release the resources
        ml_models.clear()
    
    
    app = FastAPI(lifespan=lifespan)
    
    
    @app.get("/predict")
    async def predict(x: float):
        result = ml_models["answer_to_everything"](x)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 569 bytes
    - Viewed (0)
Back to top