Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 211 - 220 of 752 for gain (0.02 seconds)

  1. docs/de/docs/fastapi-cli.md

       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    
         <span style="background-color:#007166"><font color="#D3D7CF"> code </font></span>  Importing the FastAPI app object from the module with the
                 following code:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 02 17:32:56 GMT 2025
    - 5K bytes
    - Click Count (0)
  2. docs/en/docs/fastapi-cli.md

       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    
         <span style="background-color:#007166"><font color="#D3D7CF"> code </font></span>  Importing the FastAPI app object from the module with the
                 following code:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  3. docs/sts/client-grants.go

    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package main
    
    import (
    	"bytes"
    	"context"
    	"crypto/tls"
    	"encoding/json"
    	"flag"
    	"fmt"
    	"log"
    	"net/http"
    	"net/url"
    	"strings"
    
    	minio "github.com/minio/minio-go/v7"
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 3.3K bytes
    - Click Count (0)
  4. misc/ios/detect.go

    // be obtained by following the instructions at
    // https://github.com/libimobiledevice/libimobiledevice.
    package main
    
    import (
    	"bytes"
    	"crypto/x509"
    	"fmt"
    	"os"
    	"os/exec"
    	"strings"
    )
    
    func main() {
    	udids := getLines(exec.Command("idevice_id", "-l"))
    	if len(udids) == 0 {
    		fail("no udid found; is a device connected?")
    	}
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Oct 19 23:33:30 GMT 2023
    - 3.2K bytes
    - Click Count (0)
  5. buildscripts/cross-compile.sh

    	export GOOS=$os
    	export GOARCH=$arch
    	export GO111MODULE=on
    	go build -trimpath -tags kqueue -o /dev/null
    }
    
    function main() {
    	echo "Testing builds for OS/Arch: ${SUPPORTED_OSARCH}"
    	for each_osarch in ${SUPPORTED_OSARCH}; do
    		_build "${each_osarch}"
    	done
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Jun 08 16:12:05 GMT 2025
    - 972 bytes
    - Click Count (0)
  6. misc/cgo/gmp/fib.go

    //go:build ignore
    
    // Compute Fibonacci numbers with two goroutines
    // that pass integers back and forth.  No actual
    // concurrency, just threads and synchronization
    // and foreign code on multiple pthreads.
    
    package main
    
    import (
    	big "."
    	"runtime"
    )
    
    func fibber(c chan *big.Int, out chan string, n int64) {
    	// Keep the fibbers in dedicated operating system
    	// threads, so that this program tests coordination
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Mon Apr 10 22:32:35 GMT 2023
    - 919 bytes
    - Click Count (0)
  7. internal/s3select/unused-errors.go

    }
    
    func errAmbiguousFieldName(err error) *s3Error {
    	return &s3Error{
    		code:       "AmbiguousFieldName",
    		message:    "Field name matches to multiple fields in the file. Check the SQL expression and the file, and try again.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errIntegerOverflow(err error) *s3Error {
    	return &s3Error{
    		code:       "IntegerOverflow",
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 17.5K bytes
    - Click Count (0)
  8. docs_src/custom_response/tutorial009_py39.py

    from fastapi import FastAPI
    from fastapi.responses import FileResponse
    
    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/")
    async def main():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 202 bytes
    - Click Count (0)
  9. docs/zh/docs/environment-variables.md

    然后你可以调用这个 Python 程序:
    
    //// tab | Linux, macOS, Windows Bash
    
    <div class="termy">
    
    ```console
    // 这里我们还没有设置环境变量
    $ python main.py
    
    // 因为我们没有设置环境变量,所以我们得到的是默认值
    
    Hello World from Python
    
    // 但是如果我们事先创建过一个环境变量
    $ export MY_NAME="Wade Wilson"
    
    // 然后再次调用程序
    $ python main.py
    
    // 现在就可以读取到环境变量了
    
    Hello Wade Wilson from Python
    ```
    
    </div>
    
    ////
    
    //// tab | Windows PowerShell
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Nov 09 12:17:15 GMT 2024
    - 8K bytes
    - Click Count (0)
  10. docs_src/app_testing/app_a_py39/test_main.py

    from fastapi.testclient import TestClient
    
    from .main import app
    
    client = TestClient(app)
    
    
    def test_read_main():
        response = client.get("/")
        assert response.status_code == 200
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 238 bytes
    - Click Count (0)
Back to Top