Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🌐 Add Japanese translation for Alternatives#2043

Merged
tiangolo merged 5 commits intofastapi:masterfrom
Attsun1031:tranlation/add-japanese-doc-alternatives-inspiration-comparisons
Oct 18, 2020
Merged

🌐 Add Japanese translation for Alternatives#2043
tiangolo merged 5 commits intofastapi:masterfrom
Attsun1031:tranlation/add-japanese-doc-alternatives-inspiration-comparisons

Conversation

@Attsun1031
Copy link
Contributor

This PR translates the alternatives.md to Japanese.
Please review alternatives.md.

- tr: /tr/
- uk: /uk/
- zh: /zh/
- alternatives.md
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Only this line is edited manually, others are changed automatically bypython scripts/docs.py build-all.

@codecov
Copy link

codecovbot commentedSep 13, 2020
edited
Loading

Codecov Report

Merging#2043 intomaster willnot change coverage.
The diff coverage isn/a.

Impacted file tree graph

@@            Coverage Diff            @@##            master     #2043   +/-   ##=========================================  Coverage   100.00%   100.00%           =========================================  Files          239       239             Lines         7079      7079           =========================================  Hits          7079      7079

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update8a1ebb3...508ff57. Read thecomment docs.

@Attsun1031Attsun1031 mentioned this pull requestSep 13, 2020
@github-actions
Copy link
Contributor

📝 Docs preview for commit3360436 at:https://5f5de27c495aebdaefc39cdb--fastapi.netlify.app

Copy link
Contributor

@tokusumitokusumi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

appreciate for tough work. most of your translation is perfect.
I commented better word choices for unification and small corrections.

@@ -0,0 +1,412 @@
# 代替となるツールからの影響と比較
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

代替ツールから受けた影響と比較

@@ -0,0 +1,412 @@
# 代替となるツールからの影響と比較

何が**FastAPI**に影響を与えたのか、他の代替ツールとの比較、そしてそこから何を学んだのかについて。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

何がFastAPIに影響を与えたのか、他の代替ツールと比較してどうか、そしてそこから何を学んだのかについて。


私は数年前から新しいフレームワークの作成を避けてきました。まず、**FastAPI**でカバーされているすべての機能を、さまざまなフレームワーク、プラグイン、ツールを使って解決しようとしました。

しかし、ある時点で、これらの機能をすべて提供し、以前のツールから優れたアイデアを取り入れ、可能な限り最高の方法でそれらを組み合わせ、それまで利用できなかった言語機能(Python 3.6以降の型ヒント)を利用したものを作る以外に選択肢はありませんでした。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

ある時点で、 -> その時点では、


## はじめに

**FastAPI**は、以前からある代替となるツールがなければ存在しなかったでしょう。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

FastAPIは、代替ツールのこれまでの働きがなければ存在しなかったでしょう。


リレーショナルデータベース(MySQLやPostgreSQLなど)と比較的強固に結合されているので、NoSQLデータベース(Couchbase、MongoDB、Cassandraなど)をメインに利用することは簡単ではありません。

バックエンドでHTMLを生成するために作られたもので、最新のフロントエンド(ReactやVue.js、Angularなど)が使用するAPIや、他のシステム(<abbr title="Internet of Things">IoT</abbr>デバイスなど)が通信するためのAPIを作るために作られたものではありません。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

バックエンドでHTMLを生成するために作られたものであり、現代的なフロントエンド(ReactやVue.js、Angularなど)や、他のシステム(IoTデバイスなど)と通信するためのAPIを構築するために作られたものではありません。


Marshmallowに匹敵しますが、ベンチマークではMarshmallowよりも高速です。また、Pythonの型ヒントを元にしているので、エディタの補助が素晴らしいです。

!!! check "**FastAPI**への影響"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

!!! check "FastAPIでの使用用途"


しかしながら、いくつかのツールにおいてすでに「標準」として利用されています。このことは互換性を大きく改善するもので、Uvicornから他のASGIサーバー(DaphneやHypercorn)に乗り換えることができたり、あなたが`python-socketio`のようなASGI互換のツールを追加することもできます。

!!! check "**FastAPI**への影響"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

!!! check "FastAPIでの使用用途"

しかしながら、いくつかのツールにおいてすでに「標準」として利用されています。このことは互換性を大きく改善するもので、Uvicornから他のASGIサーバー(DaphneやHypercorn)に乗り換えることができたり、あなたが`python-socketio`のようなASGI互換のツールを追加することもできます。

!!! check "**FastAPI**への影響"
`FastAPI`クラスそのものは、`Starlette`クラスを直接継承しています。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

webに関するコアな部分を全て扱います。その上に機能を追加します。`FastAPI`クラスは、`Starlette`クラスを直接継承しています。

(1行抜けています。)

Attsun1031 reacted with thumbs up emoji
!!! check "**FastAPI**への影響"
`FastAPI`クラスそのものは、`Starlette`クラスを直接継承しています。

基本的にはStarletteの強化版であるため、Starletteで可能なことは**FastAPI**で直接可能です。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

基本的にはStarletteの強化版であるため、Starletteで可能なことは**FastAPI**で直接可能です。

(インデントの追加)


Starletteや**FastAPI**のサーバーとして推奨されています。

!!! check "**FastAPI** への影響"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

!!! check "FastAPI が推奨する理由"

@Attsun1031Attsun1031force-pushed thetranlation/add-japanese-doc-alternatives-inspiration-comparisons branch fromaf04f01 to6c63165CompareSeptember 17, 2020 10:41
@Attsun1031Attsun1031force-pushed thetranlation/add-japanese-doc-alternatives-inspiration-comparisons branch from6c63165 to2fa0261CompareSeptember 17, 2020 10:50
@github-actions
Copy link
Contributor

📝 Docs preview for commit2fa0261 at:https://5f63539fe55d1fcb3b10d4a5--fastapi.netlify.app

@Attsun1031
Copy link
ContributorAuthor

@tokusumi Thanks for your review! I fixed everything, so please check changes.

Copy link
Contributor

@tokusumitokusumi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

your updates is perfect.

unfortunately, I found some correction to unify "!!!" syntax. please check docs preview what is problem.

Attsun1031 reacted with thumbs up emojiAttsun1031 reacted with heart emoji

これは**自動的なAPIドキュメント生成**の最初の例であり、これは**FastAPI**に向けた「調査」を触発した最初のアイデアの一つでした。

!!! 備考
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

!!! note "備考"


素晴らしいツールで、私も**FastAPI**を持つ前はよく使っていました。

!!! 情報
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

!!! info "情報"


エディタでは、この問題を解決することはできません。また、パラメータやMarshmallowスキーマを変更したときに、YAMLのdocstringを変更するのを忘れてしまうと、生成されたスキーマが古くなってしまいます。

!!! 情報
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

!!! info "情報"


そして、これらのフルスタックジェネレーターは、[**FastAPI** Project Generators](project-generation.md){.internal-link target=_blank}の元となっていました。

!!! info
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

!!! info "情報"


`asyncio`に基づいた、Pythonのフレームワークの中でも非常に高速なものの一つです。Flaskと非常に似た作りになっています。

!!! 備考 "技術的な詳細"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

!!! note "技術詳細"


これは **FastAPI** が追加する主な機能の一つで、すべての機能は Pythonの型ヒントに基づいています (Pydanticを使用しています) 。これに加えて、依存性注入の仕組み、セキュリティユーティリティ、OpenAPIスキーマ生成などがあります。

!!! 備考 "技術的な詳細"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

!!! note "技術詳細"


今ではAPIStarはOpenAPI仕様を検証するためのツールセットであり、ウェブフレームワークではありません。

!!! 情報
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

!!! info "情報"


以前のPythonの同期型Webフレームワーク標準 (WSGI) をベースにしているため、Websocketなどは扱えませんが、それでも高性能です。

!!! 情報
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

!!! info "情報"

fix indent and translation.
@Attsun1031
Copy link
ContributorAuthor

@tokusumi Thanks for your careful review ! I fixed all (and some other points) , so please check once again.
e8869eb

@github-actions
Copy link
Contributor

📝 Docs preview for commite8869eb at:https://5f64dcc1d80b640fc744c023--fastapi.netlify.app

Copy link
Contributor

@tokusumitokusumi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

thank you for improvements 👍

Attsun1031 reacted with rocket emoji
Copy link
Contributor

@komtakikomtaki left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for the tough work. 👍
I commented to make it easier to read as Japanese.

tokusumi and Attsun1031 reacted with heart emoji
Co-authored-by: Taki Komiyama <39375566+komtaki@users.noreply.github.com>
@Attsun1031
Copy link
ContributorAuthor

@komtaki Thanks for your careful review and suggestions ! I applied all your suggestions.

komtaki reacted with thumbs up emoji

@github-actions
Copy link
Contributor

📝 Docs preview for commit3eb6171 at:https://5f6ee9f347cd08fa66921e28--fastapi.netlify.app

Copy link
Contributor

@komtakikomtaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you. 👍

LGTM 👌

Attsun1031 reacted with heart emoji
@tokusumi
Copy link
Contributor

Hi,@tiangolo
This PR has been approved by two reviewers (github actions to label approved PR didn't work, though).
Would you like to require something more for this to be merged?

@tiangolotiangolo added awaiting-review lang-allTranslations lang-jaJapanese translations labelsOct 15, 2020
@tiangolotiangolo changed the titleAdd Japanese translation for alternatives.md🌐 Add Japanese translation for AlternativesOct 18, 2020
@tiangolo
Copy link
Member

Awesome! Thank you@Attsun1031 ! 🙇 🍰

And thanks@komtaki and@tokusumi for the reviews! 🚀 👏

Attsun1031 reacted with heart emojiAttsun1031 reacted with rocket emoji

@tiangolotiangolo merged commite1231ee intofastapi:masterOct 18, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@komtakikomtakikomtaki approved these changes

@tokusumitokusumitokusumi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

approved-2lang-allTranslationslang-jaJapanese translations

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@Attsun1031@tokusumi@tiangolo@komtaki

Comments


[8]ページ先頭

©2009-2026 Movatter.jp