Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for from_pem (0.12 sec)

  1. security/tools/jwt/samples/gen-jwt.py

    def main(args):
        """Generates a signed JSON Web Token from local private key."""
        with open(args.key) as f:
            pem_data = f.read()
        f.closed
    
        pem_data_encode = pem_data.encode("utf-8")
        key = jwk.JWK.from_pem(pem_data_encode)
    
        if args.jwks:
            with open(args.jwks, "w+") as fout:
                fout.write("{ \"keys\":[ ")
                fout.write(key.export(private_key=False))
                fout.write("]}")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 16:38:57 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcshared/testdata/main0.c

      if (ran_main) {
        fprintf(stderr, "ERROR: DidMainRun returned unexpected results: %d\n",
                ran_main);
        return 1;
      }
      int32_t from_pkg = FromPkg();
      if (from_pkg != 1024) {
        fprintf(stderr, "ERROR: FromPkg=%d, want %d\n", from_pkg, 1024);
        return 1;
      }
      uint32_t divu = Divu(2264, 31);
      if (divu != 73) {
        fprintf(stderr, "ERROR: Divu(2264, 31)=%d, want %d\n", divu, 73);
        return 1;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileTreeCodec.kt

                roots.add(toSpec(sourceTree))
            }
        }
    
        private
        fun fromSpec(spec: FileTreeSpec): FileTreeInternal = when (spec) {
            is AdaptedFileTreeSpec -> fileCollectionFactory.treeOf(spec.tree)
            is FilteredFileTreeSpec -> spec.tree.matching(spec.patterns)
            is FilteredMinimalFileTreeSpec -> fromSpec(spec.tree).matching(spec.patterns)
            is WrappedFileCollectionTreeSpec -> spec.collection.asFileTree
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. tests/test_read_with_orm_mode.py

            class Config:
                orm_mode = True
    
        app = FastAPI()
    
        @app.post("/people/", response_model=PersonRead)
        def create_person(person: PersonCreate) -> Any:
            db_person = Person.from_orm(person)
            return db_person
    
        client = TestClient(app)
    
        person_data = {"name": "Dive", "lastname": "Wilson"}
        response = client.post("/people/", json=person_data)
        data = response.json()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. platforms/jvm/language-groovy/src/main/java/org/gradle/api/internal/tasks/compile/ApiGroovyCompiler.java

            this.projectLayout = projectLayout;
        }
    
        private static abstract class IncrementalCompilationCustomizer extends CompilationCustomizer {
            static IncrementalCompilationCustomizer fromSpec(GroovyJavaJointCompileSpec spec, ApiCompilerResult result) {
                if (spec.incrementalCompilationEnabled()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  6. fastapi/routing.py

        exclude_none: bool = False,
    ) -> Any:
        if isinstance(res, BaseModel):
            read_with_orm_mode = getattr(_get_model_config(res), "read_with_orm_mode", None)
            if read_with_orm_mode:
                # Let from_orm extract the data from this model instead of converting
                # it now to a dict.
                # Otherwise, there's no way to extract lazy data that requires attribute
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 170.1K bytes
    - Viewed (0)
Back to top