Results of 1 - 4 of about 4 for Bash (0.001 sec.)
- Virtual Environments 12389
- 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
...t. Tip Do this every time you start a new terminal session to work on the project. Linux, macOS Windows PowerShell Windows Bash $ source .venv/bin/activate $ .venv \S cripts \A ctivate.ps1 Or if you use Bash for Windows (e.g. Git Bash ): $ source .ve...check that everything is working as expected 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/...irtual Environment Mean When you activate a virtual environment, for example with: Linux, macOS Windows PowerShell Windows Bash $ source .venv/bin/activate $ .venv \S cripts \A ctivate.ps1 Or if you use Bash for Windows (e.g. Git Bash ): $ source .ve... - https://man.mtool.work/fastapi/0.115/virtual-environments/
- Development - Contributing 8543
- 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
..." mode, with the -e option. Format the code There is a script that you can run that will format and clean all your code: $ bash scripts/format.sh It will also auto-sort all your imports. Tests There is a script that you can run locally to test all th...e code and generate coverage reports in HTML: $ bash scripts/test-cov-html.sh This command generates a directory ./htmlcov/ , if you open the file ./htmlcov/index.html in your...u 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 . And there are... - https://man.mtool.work/fastapi/0.115/contributing/
- 環境変数 8358
- 環境変数 Tip もし、「環境変数」とは何か、それをどう使うかを既に知っている場合は、このセクションをスキップして構いません。 環境変数( env var とも呼ばれる)はPythonコードの 外側 、つまり OS に存在する変数で、Pythonから読み取ることができます。
...境変数の作成と使用 環境変数は シェル(ターミナル) 内で 作成 して使用でき、それらにPythonは不要です。 Linux, macOS, Windows Bash Windows PowerShell // You could create an env var MY_NAME with $ export MY_NAME = "Wade Wilson" // Then you could use it w...すが、ここではデフォルト値として "World" を指定しています。 次に、このPythonプログラムを呼び出します。 Linux, macOS, Windows Bash Windows PowerShell // Here we don't set the env var yet $ python main.py // As we didn't set the env var, we get the defau... - https://man.mtool.work/fastapi/0.115/environment-variables/
- デプロイメントのコンセプト 7655
- デプロイメントのコンセプト FastAPI を用いたアプリケーションをデプロイするとき、もしくはどのようなタイプのWeb APIであっても、おそらく気になるコンセプトがいくつかあります。 それらを活用することでアプリケーションを デプロイするための最適な方法
...くつか挙げてみます: アプリコンテナの前に実行されるKubernetesのInitコンテナ 事前のステップを実行し、アプリケーションを起動するbashスクリプト 利用するbashスクリプトを起動/再起動したり、エラーを検出したりする方法は以前として必要になるでしょう。 Tip コンテナ... - https://man.mtool.work/fastapi/0.115/deployment/concepts/
PREV
1
NEXT