コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 8 of about 8 for home (0.004 sec.)
Virtual Environments 12616
Virtual Environments Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . When you work in Python projects you probably should use a virtual environment (or a similar m ... a Project First, create a directory for your project. What I normally do is that I create a directory named code inside my home/user directory. And inside of that I create one directory per project. // Go to the home directory $ cd // Create a direct ... cted and you are using the virtual environment you intended. Linux, macOS, Windows Bash Windows PowerShell $ which python /home/user/code/awesome-project/.venv/bin/python If it shows the python binary at .venv/bin/python , inside of your project (in ... System32 After activating the virtual environment, the PATH variable would look something like this: Linux, macOS Windows /home/user/code/awesome-project/.venv/bin:/usr/bin:/bin:/usr/sbin:/sbin That means that the system will now start looking first ...
https://man.mtool.work/fastapi/0.115/virtual-environments/
パスパラメータ 11025
パスパラメータ Pythonのformat文字列と同様のシンタックスで「パスパラメータ」や「パス変数」を宣言できます: Python 3.8+ from fastapi import FastAPI app = FastAPI () @app . get ( "/items/ {item_id} " ) async def read_item ( item_id ): return { ... rning FTW!" } パスを含んだパスパラメータ パス /files/{file_path} となる path operation を持っているとしましょう。 ただし、 home/johndoe/myfile.txt のような パス を含んだ file_path が必要です。 したがって、URLは /files/home/johndoe/myfile.txt の様にな ... " ) async def read_file ( file_path : str ): return { "file_path" : file_path } 豆知識 最初のスラッシュ ( / )が付いている /home/johndoe/myfile.txt をパラメータが含んでいる必要があります。 この場合、URLは files と home の間にダブルスラッシュ ( // ) の ... ある、 /files//home/johndoe/myfile.txt になります。 まとめ 簡潔で、本質的で、標準的なPythonの型宣言を使用することで、 FastAPI は以下を行います ...
https://man.mtool.work/fastapi/0.115/tutorial/path-params/
FastAPI CLI 9850
FastAPI CLI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . FastAPI CLI is a command line program that you can use to serve your FastAPI app, manage your FastAPI p ... file structure from directories with <font color="#3465A4">__init__.py</font> files Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font> <span style="background-color:#007166"><font color="#D3D7CF"> mod ... ont color="#D3D7CF"> INFO </font></span> Will watch for changes in these directories: <b>[</b><font color="#4E9A06">&apos;/home/user/code/awesomeapp&apos;</font><b>]</b> <span style="background-color:#007166"><font color="#D3D7CF"> INFO </font></span ...
https://man.mtool.work/fastapi/0.115/fastapi-cli/
Development - Contributing 8061
Development - Contributing Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . First, you might want to see the basic ways to help FastAPI and get help . Developing If ... tion. If you install Typer CLI, you can install completion with: $ typer --install-completion zsh completion installed in /home/user/.bashrc. Completion will take effect once you restart the terminal. Docs Structure The documentation uses MkDocs . An ...
https://man.mtool.work/fastapi/0.115/contributing/
Behind a Proxy 7862
Behind a Proxy Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some situations, you might need to use a proxy server like Traefik or Nginx with a configuration ... ://127.0.0.1:8000 . Now start Traefik: $ ./traefik --configFile = traefik.toml INFO[0000] Configuration loaded from file: /home/user/awesomeapi/traefik.toml And now start your app, using the --root-path option: $ fastapi run main.py --root-path /api/ ...
https://man.mtool.work/fastapi/0.115/advanced/behind-a-proxy/
Generate Clients 7862
Generate Clients Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . As FastAPI is based on the OpenAPI specification, you get automatic compatibility with many tools, ... that NPM generate-client script there, you can run it with: $ npm run generate-client frontend-app@1.0.0 generate-client /home/user/code/frontend-app > openapi-ts --input http://localhost:8000/openapi.json --output ./src/client --client axios That c ...
https://man.mtool.work/fastapi/0.115/advanced/generate-clients/
テスト 7663
テスト Starlette のおかげで、 FastAPI アプリケーションのテストは簡単で楽しいものになっています。 HTTPX がベースなので、非常に使いやすく直感的です。 これを使用すると、 FastAPI と共に pytest を直接利用できます。 TestClient を使用 TestClient を ... ===== test session starts ================ platform linux -- Python 3.6.9, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 rootdir: /home/user/code/superawesome-cli/app plugins: forked-1.1.3, xdist-1.31.0, cov-2.8.1 collected 6 items ---> 100% test_main.py <sp ...
https://man.mtool.work/fastapi/0.115/tutorial/testing/
Release Notes 7265
Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom ... pi run │ │ │ ╰─────────────────────────────────────────────────────╯ INFO: Will watch for changes in these directories: ['/home/user/code/awesomeapp'] INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader proces ... ipt clients. PR #11293 by @alejsdev . ? Update examples for tests to replace "inexistent" for "nonexistent". PR #11220 by @Homesteady . ? Update python-multipart GitHub link in all docs from https://andrew-d.github.io/python-multipart/ to https://git ...
https://man.mtool.work/fastapi/0.115/release-notes/
PREV 1 NEXT