Skip to content

Commit 41a9671

Browse files
josephaxisaOldLacejkasterjoeldodge79DucarrougeR
authored
Migrate sdk-examples (#319)
* Moved all content to be migrated into sdk-examples subdir * Renamed sdk-examples dir to examples * Pointed all examples to root looker.ini * Prettified * Removed superfluous tsconfig.json and tslint.json * More prettiness * Fixed TS examples imports * addressed PR feedback * Changed Ruby readme links to relative paths Co-authored-by: Paul Gelot <[email protected]> Co-authored-by: John Kaster <[email protected]> Co-authored-by: Joel Dodge <[email protected]> Co-authored-by: Romain <[email protected]> Co-authored-by: Macallan Brown <[email protected]> Co-authored-by: Meredith Dodge <[email protected]> Co-authored-by: Olga Dernovska <[email protected]> Co-authored-by: Jesse Carah <[email protected]> Co-authored-by: drewgillson <[email protected]> Co-authored-by: Joel Dodge <[email protected]>
1 parent a55e593 commit 41a9671

File tree

147 files changed

+37756
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+37756
-0
lines changed

examples/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Examples for the Looker SDKs
2+
3+
This repository contains source code examples and projects that use SDKs to communicate with the Looker API. Examples are organized by folder names that correspond to the name of the programming language used.
4+
5+
This is a constantly-evolving repository, where examples could change, appear, and disappear at any time.
6+
7+
## Please contribute
8+
9+
All are welcome to submit examples. Please feel free to submit a PR for any examples you may want to share. Thank you!

examples/csharp/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# C# Examples for the Looker API
2+
3+
There are currently no C# examples for the Looker API. Feel free to submit some!

examples/java/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Java Examples for the Looker API
2+
3+
You can find Java language examples in this folder.

examples/kotlin/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Kotlin Examples for the Looker API
2+
3+
You can find Kotlin language examples in this folder.

examples/python/.flake8

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
ignore = E203, E266, E501, W503
3+
max-line-length = 80
4+
max-complexity = 18
5+
select = B,C,E,F,W,T4,B9

examples/python/.python-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.8.1

examples/python/Pipfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
8+
[packages]
9+
looker-sdk = "*"
10+
mypy = "*"
11+
black = "*"
12+
flake8 = "*"
13+
flake8-bugbear = "*"
14+
15+
[requires]
16+
python_version = "3.8"
17+
18+
[pipenv]
19+
allow_prereleases = true

examples/python/Pipfile.lock

+245
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/python/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Python Examples for the Looker API
2+
3+
You can find Python language examples in this folder.
4+
5+
## Connection management
6+
7+
- [Test a specified connection](test_connection.py)
8+
9+
## Manage Dashboards
10+
11+
- [Soft delete dashboard](soft_delete_dashboard.py)
12+
13+
## Manage Render Tasks
14+
15+
- [Download dashboard tile in specified format](download_tile.py)
16+
- [Download look in specified format](download_look.py)
17+
- [Generate and download dashboard PDFs](download_dashboard_pdf.py)
18+
19+
## User Management
20+
21+
- [Disable all active user sessions](logout_all_users.py)

examples/python/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)