-
Notifications
You must be signed in to change notification settings - Fork 197
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: auto api reference #642
Merged
Merged
Changes from 11 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6645deb
update docstring for dlt/init.py
AstrakhantsevaAA d2fcf9f
fix imports
AstrakhantsevaAA ddd5540
edit docstrings
AstrakhantsevaAA 48cde28
added api documentation
AstrakhantsevaAA 4d5d415
added api documentation md files
AstrakhantsevaAA 835fc81
fixed code strings
AstrakhantsevaAA 241bd87
added full documentation
AstrakhantsevaAA cb619e5
avoid <> in docstrings
AstrakhantsevaAA f313c6b
avoid import/export first word in docstrings
AstrakhantsevaAA 30d0f64
avoid import/export words
AstrakhantsevaAA 9094f81
api refs
AstrakhantsevaAA 1532411
Revert "edit docstrings"
rudolfix 7a0edb8
Revert "avoid import/export first word in docstrings"
rudolfix 682d9b3
reorganizes api reference
rudolfix 0ad443c
fixes netlify build
rudolfix 80828a0
removes cli normalize load modules from reference
rudolfix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
loaders: | ||
- type: python | ||
search_path: [../dlt] | ||
processors: | ||
- type: filter | ||
skip_empty_modules: true | ||
- type: smart | ||
- type: crossref | ||
renderer: | ||
type: docusaurus | ||
docs_base_path: website/docs | ||
relative_output_path: api_reference | ||
relative_sidebar_path: sidebar.json | ||
sidebar_top_level_label: dlt | ||
markdown: | ||
escape_html_in_docstring: false | ||
classdef_with_decorators: true | ||
signature_with_decorators: true | ||
format_code: true | ||
source_linker: | ||
type: github | ||
repo: dlt-hub/dlt | ||
root: .. |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
sidebar_label: __init__ | ||
title: __init__ | ||
--- | ||
|
||
data load tool (dlt) — the open-source Python library for data loading | ||
|
||
How to create a data loading pipeline with dlt in 3 seconds: | ||
|
||
1. Write a pipeline script | ||
>>> import dlt | ||
>>> from dlt.sources.helpers import requests | ||
>>> dlt.run(requests.get("https://pokeapi.co/api/v2/pokemon/").json()["results"], destination="duckdb", table_name="pokemon") | ||
|
||
2. Run your pipeline script | ||
$ python pokemon.py | ||
|
||
3. See and query your data with autogenerated Streamlit app | ||
$ dlt pipeline dlt_pokemon show | ||
|
||
|
||
Or start with our pipeline template with sample PokeAPI (pokeapi.co) data loaded to bigquery | ||
|
||
$ dlt init pokemon bigquery | ||
|
||
For more detailed info, see https://dlthub.com/docs/getting-started | ||
|
||
#### TSecretValue | ||
|
||
When typing source/resource function arguments it indicates that a given argument is a secret and should be taken from dlt.secrets. | ||
|
||
#### TCredentials | ||
|
||
When typing source/resource function arguments it indicates that a given argument represents credentials and should be taken from dlt.secrets. Credentials may be a string, dictionary or any other type. | ||
|
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
sidebar_label: echo | ||
title: cli.echo | ||
--- | ||
|
||
#### always\_choose | ||
|
||
```python | ||
@contextlib.contextmanager | ||
def always_choose(always_choose_default: bool, | ||
always_choose_value: Any) -> Iterator[None] | ||
``` | ||
|
||
[[view_source]](https://github.com/dlt-hub/dlt/blob/30d0f64fb2cdbacc2e88fdb304371650f417e1f0/dlt/cli/echo.py#L11) | ||
|
||
Temporarily answer all confirmations and prompts with the values specified in arguments | ||
|
Oops, something went wrong.
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.
why?