Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for get_deps (0.06 sec)

  1. tests/test_repeated_dependency_schema.py

    app = FastAPI()
    
    
    def get_header(*, someheader: str = Header()):
        return someheader
    
    
    def get_something_else(*, someheader: str = Depends(get_header)):
        return f"{someheader}123"
    
    
    @app.get("/")
    def get_deps(dep1: str = Depends(get_header), dep2: str = Depends(get_something_else)):
        return {"dep1": dep1, "dep2": dep2}
    
    
    client = TestClient(app)
    
    schema = {
        "components": {
            "schemas": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Mar 06 12:18:57 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. Makefile

    lint: getdeps ## runs golangci-lint suite of linters
    	@echo "Running $@ check"
    	@$(GOLANGCI) run --build-tags kqueue --timeout=10m --config ./.golangci.yml
    	@command typos && typos ./ || echo "typos binary is not found.. skipping.."
    
    lint-fix: getdeps ## runs golangci-lint suite of linters with automatic fixes
    	@echo "Running $@ check"
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Apr 27 00:44:22 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. scripts/label_approved.py

        logging.basicConfig(level=logging.DEBUG)
    else:
        logging.basicConfig(level=logging.INFO)
    logging.debug(f"Using config: {settings.model_dump_json()}")
    g = Github(settings.token.get_secret_value())
    repo = g.get_repo(settings.github_repository)
    for pr in repo.get_pulls(state="open"):
        logging.info(f"Checking PR: #{pr.number}")
        pr_labels = list(pr.get_labels())
        pr_label_by_name = {label.name: label for label in pr_labels}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Jun 17 07:50:19 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/Crypto.java

         *
         * @param key
         *            7 or 8 byte DES key
         * @return DES cipher in encryption mode
         */
        public static Cipher getDES(final byte[] key) {
            if (key.length == 7) {
                return getDES(des7to8(key));
            }
    
            try {
                final Cipher c = Cipher.getInstance("DES/ECB/NoPadding");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. scripts/deploy_docs_status.py

        logging.basicConfig(level=logging.INFO)
        settings = Settings()
    
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(auth=Auth.Token(settings.github_token.get_secret_value()))
        repo = g.get_repo(settings.github_repository)
        use_pr = next(
            (pr for pr in repo.get_pulls() if pr.head.sha == settings.commit_sha), None
        )
        if not use_pr:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 05:56:53 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  6. scripts/topic_repos.py

        logging.basicConfig(level=logging.INFO)
        settings = Settings()
    
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.github_token.get_secret_value(), per_page=100)
        r = g.get_repo(settings.github_repository)
        repos = g.search_repositories(query="topic:fastapi")
        repos_list = list(repos)
        final_repos: list[Repo] = []
        for repo in repos_list[:100]:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 12:34:01 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. scripts/sponsors.py

    def main() -> None:
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.pr_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
    
        tiers = get_individual_sponsors(settings=settings)
        keys = list(tiers.keys())
        keys.sort(reverse=True)
        sponsors = []
        for key in keys:
            sponsor_group = []
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 12:34:01 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  8. scripts/contributors.py

    def main() -> None:
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.github_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
    
        pr_nodes = get_pr_nodes(settings=settings)
        contributors_results = get_contributors(pr_nodes=pr_nodes)
        authors = contributors_results.authors
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 12:34:01 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. scripts/people.py

    def main() -> None:
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
        logging.info(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.github_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
    
        discussion_nodes = get_discussion_nodes(settings=settings)
        experts_results = get_discussions_experts(discussion_nodes=discussion_nodes)
    
        authors = experts_results.authors
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/CryptoTest.java

            // Given
            byte[] key = "testkey1".getBytes(); // 8 bytes for DES
            byte[] plaintext = "12345678".getBytes(); // 8 bytes (DES block size)
    
            // When
            Cipher desCipher = Crypto.getDES(key);
            desCipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "DES"));
            byte[] encrypted = desCipher.doFinal(plaintext);
    
            // Then
            assertNotNull(encrypted);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
Back to top