Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 24 for subprocess (0.31 seconds)

  1. tests/test_fastapi_cli.py

    import os
    import subprocess
    import sys
    from unittest.mock import patch
    
    import fastapi.cli
    import pytest
    
    
    def test_fastapi_cli():
        result = subprocess.run(
            [
                sys.executable,
                "-m",
                "coverage",
                "run",
                "-m",
                "fastapi",
                "dev",
                "non_existent_file.py",
            ],
            capture_output=True,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 02 04:02:38 GMT 2025
    - 866 bytes
    - Click Count (0)
  2. scripts/topic_repos.py

        subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
        subprocess.run(
            ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
            check=True,
        )
        branch_name = f"fastapi-topic-repos-{secrets.token_hex(4)}"
        logging.info(f"Creating a new branch {branch_name}")
        subprocess.run(["git", "checkout", "-b", branch_name], check=True)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  3. scripts/playwright/json_base64_bytes/image01.py

    import subprocess
    import time
    
    import httpx
    from playwright.sync_api import Playwright, sync_playwright
    
    
    # Run playwright codegen to generate the code below, copy paste the sections in run()
    def run(playwright: Playwright) -> None:
        browser = playwright.chromium.launch(headless=False)
        # Update the viewport manually
        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  4. scripts/sponsors.py

        subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
        subprocess.run(
            ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
            check=True,
        )
        branch_name = f"fastapi-people-sponsors-{secrets.token_hex(4)}"
        logging.info(f"Creating a new branch {branch_name}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  5. scripts/contributors.py

        subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
        subprocess.run(
            ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
            check=True,
        )
        branch_name = f"fastapi-people-contributors-{secrets.token_hex(4)}"
        logging.info(f"Creating a new branch {branch_name}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  6. scripts/people.py

        subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
        subprocess.run(
            ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
            check=True,
        )
        branch_name = f"fastapi-people-experts-{secrets.token_hex(4)}"
        logging.info(f"Creating a new branch {branch_name}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 13:51:24 GMT 2026
    - 15K bytes
    - Click Count (0)
  7. scripts/translate.py

        if not repo.is_dirty(untracked_files=True):
            print("Repository is clean, no changes to commit")
            return
        subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
        subprocess.run(
            ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
            check=True,
        )
        current_branch = repo.active_branch.name
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  8. scripts/docs.py

    import json
    import logging
    import os
    import re
    import shutil
    import subprocess
    from html.parser import HTMLParser
    from http.server import HTTPServer, SimpleHTTPRequestHandler
    from multiprocessing import Pool
    from pathlib import Path
    from typing import Any
    
    import mkdocs.utils
    import typer
    import yaml
    from jinja2 import Template
    from ruff.__main__ import find_ruff_bin
    from slugify import slugify as py_slugify
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:46:10 GMT 2026
    - 25.4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

                        process.destroy();
                        teminated = true;
                    } catch (final Exception e) {
                        if (logger.isInfoEnabled()) {
                            logger.info("Could not kill subprocess: process={}", process, e);
                        }
                    }
                }
            }
    
            /**
             * Sets the finished flag to indicate whether the process has completed.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/util/JobProcess.java

     * the input stream thread for capturing process output.
     */
    public class JobProcess {
        /**
         * The underlying system process.
         */
        protected Process process;
    
        /**
         * The thread that handles reading from the process input stream.
         */
        protected InputStreamThread inputStreamThread;
    
        /**
         * Constructs a new JobProcess with the specified process.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.4K bytes
    - Click Count (0)
Back to Top