forked from meltano/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AJ Steers
committed
Jun 4, 2021
1 parent
dea69dc
commit b710748
Showing
44 changed files
with
908 additions
and
154 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
|
||
sphinx: | ||
builder: html | ||
configuration: docs/conf.py | ||
|
||
python: | ||
version: 3.8 | ||
install: | ||
# - requirements: docs/requirements.txt | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs |
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,62 +1,22 @@ | ||
# `singer-sdk` - a framework for building Singer taps | ||
# Meltano SDK for Taps and Targets | ||
|
||
## Less is More | ||
The Tap and Target SDKs are the fastest way to build custom data extractors and loaders! | ||
Taps and targets built on the SDK are automatically compliant with the | ||
[Singer Spec](https://meltano.com/docs/singer-spec.html), the | ||
de-facto open source standard for extract and load pipelines. | ||
|
||
Because taps built from the SDK require substantially less code, developers are able to dramatically reduce the time to develop a fully mature Singer tap. | ||
## Future-proof extractors and loaders, with less code | ||
|
||
## Build Future-Proof Data Extractors | ||
On average, developers tell us that they write about 70% less code by using the SDK, which | ||
makes learning the SDK a great investment. Furthermore, as new features and capabilities | ||
are added to the SDK, your taps and targets can always take advantage of the latest | ||
capabilities and bug fixes, simply by updating your SDK dependency to the latest version. | ||
|
||
We will continue to add new features to the SDK. You can always take advantage of the latest capabilities by simply updating your SDK version and then retesting and republishing with the latest version. | ||
## Documentation | ||
|
||
## Cookie-Cutter Quick Start | ||
|
||
`Singer SDK` provides a quickstart `cookiecutter` template for starting new taps. | ||
|
||
* [Click here for the **Cookiecutter Tap Template**](cookiecutter/tap-template/README.md) | ||
|
||
## Tap Dev Guide | ||
|
||
See the [dev guide](docs/dev_guide.md) for instructions on how to get started building your own | ||
taps. | ||
|
||
## Singer SDK Implementation Details | ||
|
||
For more detailed information about the Singer SDK implementation, please see the | ||
[Singer SDK Implementation Details](./docs/implementation/README.md) section. | ||
- See our [online documentation](https://meltano-sdk.readthedocs.io) for instructions on how | ||
to get started with the SDK. | ||
|
||
## Contributing back to the SDK | ||
|
||
First clone, then... | ||
|
||
### Install | ||
|
||
_**Note:** Singer SDK currently works with Python versions 3.6 through 3.8.x. Python 3.9 is not yet supported._ | ||
|
||
Install prereqs: | ||
|
||
```bash | ||
pip3 install pipx | ||
pipx ensurepath | ||
pipx install poetry | ||
``` | ||
|
||
Install package dependencies: | ||
|
||
```bash | ||
cd singer-sdk | ||
``` | ||
|
||
```bash | ||
# Install package and dependencies: | ||
poetry install | ||
# OR install in editable mode: | ||
poetry install --no-root | ||
``` | ||
|
||
- For more information, see our [Contributors Guide](CONTRIBUTING.md). | ||
|
||
### Run tests | ||
|
||
```bash | ||
poetry run pytest | ||
``` | ||
- For more information on how to contribute, see our [Contributors Guide](CONTRIBUTING.md). |
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,4 +1,4 @@ | ||
# Singer SDK Tap Template | ||
# Singer Tap Template | ||
|
||
To use this cookie cutter template: | ||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
cookiecutter/tap-template/{{cookiecutter.tap_id}}/pyproject.toml
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,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Empty file.
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,9 @@ | ||
{% extends '!footer.html' %} | ||
{% block extrafooter %} | ||
|
||
The SDK is built with love by the <a href="https://meltano.com">Meltano</a> core team and contributors, with | ||
contributions from developers across the <a href="https://singer.io">Singer</a> open source community. | ||
|
||
<!-- Docs built using <a href="https://www.sphinx-doc.org">Sphinx</a> and <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> | ||
from <a href="https://readthedocs.org">Read the Docs</a>. --> | ||
{% endblock %} |
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,7 @@ | ||
singer\_sdk.GraphQLStream | ||
========================= | ||
|
||
.. currentmodule:: singer_sdk | ||
|
||
.. autoclass:: GraphQLStream | ||
:members: |
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,7 @@ | ||
singer\_sdk.RESTStream | ||
====================== | ||
|
||
.. currentmodule:: singer_sdk | ||
|
||
.. autoclass:: RESTStream | ||
:members: |
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,7 @@ | ||
singer\_sdk.Stream | ||
================== | ||
|
||
.. currentmodule:: singer_sdk | ||
|
||
.. autoclass:: Stream | ||
:members: |
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,7 @@ | ||
singer\_sdk.Tap | ||
=============== | ||
|
||
.. currentmodule:: singer_sdk | ||
|
||
.. autoclass:: Tap | ||
:members: |
7 changes: 7 additions & 0 deletions
7
docs/classes/singer_sdk.authenticators.OAuthAuthenticator.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
singer\_sdk.authenticators.OAuthAuthenticator | ||
============================================= | ||
|
||
.. currentmodule:: singer_sdk.authenticators | ||
|
||
.. autoclass:: OAuthAuthenticator | ||
:members: |
7 changes: 7 additions & 0 deletions
7
docs/classes/singer_sdk.authenticators.OAuthJWTAuthenticator.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
singer\_sdk.authenticators.OAuthJWTAuthenticator | ||
================================================ | ||
|
||
.. currentmodule:: singer_sdk.authenticators | ||
|
||
.. autoclass:: OAuthJWTAuthenticator | ||
:members: |
7 changes: 7 additions & 0 deletions
7
docs/classes/singer_sdk.authenticators.SimpleAuthenticator.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
singer\_sdk.authenticators.SimpleAuthenticator | ||
============================================== | ||
|
||
.. currentmodule:: singer_sdk.authenticators | ||
|
||
.. autoclass:: SimpleAuthenticator | ||
:members: |
6 changes: 6 additions & 0 deletions
6
docs/classes/singer_sdk.exceptions.TapStreamConnectionFailure.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
singer\_sdk.exceptions.TapStreamConnectionFailure | ||
================================================= | ||
|
||
.. currentmodule:: singer_sdk.exceptions | ||
|
||
.. autoexception:: TapStreamConnectionFailure |
6 changes: 6 additions & 0 deletions
6
docs/classes/singer_sdk.exceptions.TooManyRecordsException.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
singer\_sdk.exceptions.TooManyRecordsException | ||
============================================== | ||
|
||
.. currentmodule:: singer_sdk.exceptions | ||
|
||
.. autoexception:: TooManyRecordsException |
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,63 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# This file only contains a selection of the most common options. For a full | ||
# list see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Path setup -------------------------------------------------------------- | ||
|
||
# If extensions (or modules to document with autodoc) are in another directory, | ||
# add these directories to sys.path here. If the directory is relative to the | ||
# documentation root, use os.path.abspath to make it absolute, like shown here. | ||
# | ||
import os | ||
import sys | ||
|
||
sys.path.insert(0, os.path.abspath("..")) | ||
# sys.path.insert(0, os.path.abspath("../singer_sdk")) | ||
# sys.path.insert(0, os.path.abspath("/Users/ajsteers/Source/singer-sdk")) | ||
|
||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = "Meltano SDK" | ||
copyright = "2021, Meltano Core Team and Contributors" | ||
author = "Meltano Core Team and Contributors" | ||
|
||
# The full version, including alpha/beta/rc tags | ||
release = "0.2.0" | ||
|
||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = [ | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.autosummary", | ||
"sphinx_rtd_theme", | ||
"sphinx_copybutton", | ||
"myst_parser", | ||
] | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ["_templates"] | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
# This pattern also affects html_static_path and html_extra_path. | ||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] | ||
|
||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# | ||
html_theme = "sphinx_rtd_theme" | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = ["_static"] |
Oops, something went wrong.