-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] - Improve Pipes API docs #21707
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
35545af
Tinkering
erinkcochran87 8577721
Add structure and copy
erinkcochran87 10b40fc
Merge branch 'master' into erin/pipes-api-experiment
erinkcochran87 65bb688
Swap things back; add more detail to intros
erinkcochran87 4106cab
Review comments
erinkcochran87 56a6a1b
Wording changes
erinkcochran87 f169d0a
Merge branch 'master' into erin/pipes-api-experiment
erinkcochran87 a032a26
Add in updates
erinkcochran87 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
88 changes: 69 additions & 19 deletions
88
docs/sphinx/sections/api/apidocs/libraries/dagster-pipes.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,101 @@ | ||
Pipes (dagster-pipes) | ||
----------------------- | ||
|
||
This library is intended for inclusion in an external process that integrates | ||
with Dagster using the Pipes protocol. | ||
===================== | ||
|
||
.. currentmodule:: dagster_pipes | ||
|
||
The ``dagster-pipes`` library is intended for inclusion in an external process that integrates with Dagster using the `Pipes </concepts/dagster-pipes>`_ protocol. This could be in an environment like Databricks, Kubernetes, or Docker. Using this library, you can write code in the external process that streams metadata back to Dagster. | ||
|
||
For a detailed look at the Pipes process, including how to customize it, refer to the `Dagster Pipes details and customization guide </concepts/dagster-pipes/dagster-pipes-details-and-customization#overview-and-terms>`__. | ||
|
||
**Looking to set up a Pipes client in Dagster?** Refer to the `Dagster Pipes API reference </_apidocs/pipes>`_. | ||
|
||
**Note**: This library isn't included with ``dagster`` and must be `installed separately <https://pypi.org/project/dagster-pipes/>`_. | ||
|
||
---- | ||
|
||
Context | ||
------- | ||
|
||
.. autofunction:: open_dagster_pipes | ||
|
||
.. autoclass:: PipesContext | ||
|
||
.. autoclass:: DagsterPipesError | ||
---- | ||
erinkcochran87 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.. autoclass:: DagsterPipesWarning | ||
Advanced | ||
-------- | ||
|
||
.. autofunction:: encode_env_var | ||
Most Pipes users won't need to use the APIs in the following sections unless they are customizing the Pipes protocol. | ||
|
||
.. autofunction:: decode_env_var | ||
Refer to the `Dagster Pipes details and customization guide </concepts/dagster-pipes/dagster-pipes-details-and-customization#overview-and-terms>`__ for more information. | ||
|
||
Context loaders | ||
^^^^^^^^^^^^^^^ | ||
|
||
Context loaders load the context payload from the location specified in the bootstrap payload. | ||
|
||
.. autoclass:: PipesContextLoader | ||
|
||
.. autoclass:: PipesMessageWriter | ||
.. autoclass:: PipesDefaultContextLoader | ||
|
||
.. autoclass:: PipesMessageWriterChannel | ||
.. autoclass:: PipesDbfsContextLoader | ||
|
||
---- | ||
|
||
Params loaders | ||
^^^^^^^^^^^^^^ | ||
|
||
Params loaders load the bootstrap payload from some globally accessible key-value store. | ||
|
||
.. autoclass:: PipesParamsLoader | ||
|
||
.. autoclass:: PipesBlobStoreMessageWriter | ||
.. autoclass:: PipesEnvVarParamsLoader | ||
|
||
.. autoclass:: PipesBlobStoreMessageWriterChannel | ||
---- | ||
|
||
.. autoclass:: PipesBufferedFilesystemMessageWriterChannel | ||
Message writers | ||
^^^^^^^^^^^^^^^ | ||
|
||
.. autoclass:: PipesDefaultContextLoader | ||
Message writers write messages to the location specified in the bootstrap payload. | ||
|
||
.. autoclass:: PipesMessageWriter | ||
|
||
.. autoclass:: PipesDefaultMessageWriter | ||
|
||
.. autoclass:: PipesBlobStoreMessageWriter | ||
|
||
.. autoclass:: PipesS3MessageWriter | ||
|
||
.. autoclass:: PipesDbfsMessageWriter | ||
|
||
---- | ||
|
||
Message writer channels | ||
^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Message writer channels are objects that write messages back to the Dagster orchestration process. | ||
|
||
.. autoclass:: PipesMessageWriterChannel | ||
|
||
.. autoclass:: PipesBlobStoreMessageWriterChannel | ||
|
||
.. autoclass:: PipesBufferedFilesystemMessageWriterChannel | ||
|
||
.. autoclass:: PipesFileMessageWriterChannel | ||
|
||
.. autoclass:: PipesStreamMessageWriterChannel | ||
|
||
.. autoclass:: PipesEnvVarParamsLoader | ||
.. autoclass:: PipesS3MessageWriterChannel | ||
|
||
.. autoclass:: PipesS3MessageWriter | ||
---- | ||
|
||
.. autoclass:: PipesS3MessageWriterChannel | ||
Utilities | ||
^^^^^^^^^ | ||
|
||
.. autoclass:: PipesDbfsContextLoader | ||
.. autofunction:: encode_env_var | ||
|
||
.. autoclass:: PipesDbfsMessageWriter | ||
.. autofunction:: decode_env_var | ||
|
||
.. autoclass:: DagsterPipesError | ||
|
||
.. autoclass:: DagsterPipesWarning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,71 @@ | ||
Dagster Pipes | ||
============= | ||
|
||
.. currentmodule:: dagster | ||
|
||
Pipes | ||
===== | ||
`Dagster Pipes </concepts/dagster-pipes>`_ is a toolkit for building integrations between Dagster and external execution environments. This reference outlines the APIs included with the ``dagster`` library, which should be used in the orchestration environment. | ||
|
||
For a detailed look at the Pipes process, including how to customize it, refer to the `Dagster Pipes details and customization guide </concepts/dagster-pipes/dagster-pipes-details-and-customization#overview-and-terms>`__. | ||
|
||
**Looking to write code in an external process?** Refer to the API reference for the separately-installed `dagster-pipes </_apidocs/libraries/dagster-pipes>`_ library. | ||
|
||
---- | ||
|
||
Sessions | ||
-------- | ||
|
||
.. autoclass:: PipesSession | ||
|
||
.. autofunction:: open_pipes_session | ||
|
||
.. currentmodule:: dagster._core.pipes.subprocess | ||
|
||
---- | ||
|
||
Abstractions for the orchestration side of the Dagster Pipes protocol. | ||
Clients | ||
------- | ||
|
||
.. currentmodule:: dagster | ||
|
||
.. autoclass:: PipesClient | ||
|
||
.. autoclass:: PipesSubprocessClient | ||
|
||
.. autoclass:: PipesContextInjector | ||
---- | ||
|
||
.. autoclass:: PipesMessageReader | ||
Advanced | ||
-------- | ||
|
||
.. autoclass:: PipesMessageHandler | ||
Most Pipes users won't need to use the APIs in the following sections unless they are customizing the Pipes protocol. | ||
|
||
.. autoclass:: PipesSession | ||
Refer to the `Dagster Pipes details and customization guide </concepts/dagster-pipes/dagster-pipes-details-and-customization#overview-and-terms>`__ for more information. | ||
|
||
.. autoclass:: PipesBlobStoreMessageReader | ||
Context injectors | ||
erinkcochran87 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
^^^^^^^^^^^^^^^^^ | ||
|
||
Context injectors write context payloads to an externally accessible location and yield a set of parameters encoding the location for inclusion in the bootstrap payload. | ||
|
||
.. autoclass:: PipesContextInjector | ||
|
||
.. autoclass:: PipesEnvContextInjector | ||
|
||
.. autoclass:: PipesFileContextInjector | ||
|
||
.. autoclass:: PipesFileMessageReader | ||
|
||
.. autoclass:: PipesTempFileContextInjector | ||
|
||
.. autoclass:: PipesTempFileMessageReader | ||
---- | ||
|
||
.. autofunction:: open_pipes_session | ||
Message readers | ||
^^^^^^^^^^^^^^^ | ||
|
||
.. currentmodule:: dagster._core.pipes.subprocess | ||
Message readers read messages (and optionally log files) from an externally accessible location and yield a set of parameters encoding the location in the bootstrap payload. | ||
|
||
.. autoclass:: PipesMessageReader | ||
|
||
.. autoclass:: PipesBlobStoreMessageReader | ||
|
||
.. autoclass:: PipesFileMessageReader | ||
|
||
.. autoclass:: PipesTempFileMessageReader | ||
|
||
.. autoclass:: PipesMessageHandler |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can also mention that pipes passes parameters to the external process from the orchestration environment and you can access them there. It's a key value prop of the system.