Skip to content
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

Script to Generate new Schemas and update tap.py based on a Swagger Specification #20

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,7 @@ dmypy.json

#don't send configs to version control
.secrets/*
config.json
config.json

#local notebooks directory
notebooks/
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2021 Daniel Luftspring

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
111 changes: 110 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[tool.poetry]
name = "tap-hellobaton"
description = "Singer.io tap for extracting data from the Essesnys api"
description = "Singer tap for extracting data from the Baton api"
version = "0.0.3"
license = "Apache 2.0"
authors = ["Daniel Luftspring"]
readme = "README.md"
repository = "https://github.com/dluftspring/tap-hellobaton"

packages = [
{ include = "tap_hellobaton"}
{ include = "tap_hellobaton" },
{ include = "scripts" }
]

[tool.poetry.dependencies]
Expand All @@ -21,9 +22,13 @@ pytest = "^6.2.5"
mypy = "^0.931"
types-requests = "^2.27.7"
black = "^21.12b0"
dictdiffer = "^0.9.0"
pandas = "^1.4.2"
tabulate = "^0.8.9"

[tool.poetry.scripts]
tap-hellobaton = "tap_hellobaton.tap:Taphellobaton.cli"
sync-tap = "scripts.swagger_sync:main"

[build-system]
requires = ["poetry"]
Expand Down
Empty file added scripts/__init__.py
Empty file.
4 changes: 4 additions & 0 deletions scripts/add_schema.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
Command line utility to generate schema files from JSON response files.
"""
#@TODO implement this
Loading