vws-auth-tools 2023.3.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. vws-auth-tools-2023.3.5/.git_archival.txt +1 -0
  2. vws-auth-tools-2023.3.5/.gitattributes +1 -0
  3. vws-auth-tools-2023.3.5/.github/dependabot.yml +12 -0
  4. vws-auth-tools-2023.3.5/.github/workflows/ci.yml +58 -0
  5. vws-auth-tools-2023.3.5/.github/workflows/release.yml +76 -0
  6. vws-auth-tools-2023.3.5/.gitignore +107 -0
  7. vws-auth-tools-2023.3.5/CHANGELOG.rst +99 -0
  8. vws-auth-tools-2023.3.5/CODE_OF_CONDUCT.rst +47 -0
  9. vws-auth-tools-2023.3.5/LICENSE +21 -0
  10. vws-auth-tools-2023.3.5/MANIFEST.in +3 -0
  11. vws-auth-tools-2023.3.5/Makefile +34 -0
  12. vws-auth-tools-2023.3.5/PKG-INFO +104 -0
  13. vws-auth-tools-2023.3.5/README.rst +65 -0
  14. vws-auth-tools-2023.3.5/codecov.yaml +6 -0
  15. vws-auth-tools-2023.3.5/docs/Makefile +20 -0
  16. vws-auth-tools-2023.3.5/docs/source/__init__.py +1 -0
  17. vws-auth-tools-2023.3.5/docs/source/api-reference.rst +6 -0
  18. vws-auth-tools-2023.3.5/docs/source/changelog.rst +1 -0
  19. vws-auth-tools-2023.3.5/docs/source/conf.py +82 -0
  20. vws-auth-tools-2023.3.5/docs/source/contributing.rst +78 -0
  21. vws-auth-tools-2023.3.5/docs/source/index.rst +57 -0
  22. vws-auth-tools-2023.3.5/docs/source/release-process.rst +22 -0
  23. vws-auth-tools-2023.3.5/lint.mk +59 -0
  24. vws-auth-tools-2023.3.5/pyproject.toml +194 -0
  25. vws-auth-tools-2023.3.5/readthedocs.yaml +17 -0
  26. vws-auth-tools-2023.3.5/requirements/dev-requirements.txt +20 -0
  27. vws-auth-tools-2023.3.5/requirements/requirements.txt +0 -0
  28. vws-auth-tools-2023.3.5/requirements/setup-requirements.txt +2 -0
  29. vws-auth-tools-2023.3.5/setup.cfg +4 -0
  30. vws-auth-tools-2023.3.5/setup.py +37 -0
  31. vws-auth-tools-2023.3.5/spelling_private_dict.txt +21 -0
  32. vws-auth-tools-2023.3.5/src/vws_auth_tools/__init__.py +80 -0
  33. vws-auth-tools-2023.3.5/src/vws_auth_tools/py.typed +0 -0
  34. vws-auth-tools-2023.3.5/src/vws_auth_tools.egg-info/PKG-INFO +104 -0
  35. vws-auth-tools-2023.3.5/src/vws_auth_tools.egg-info/SOURCES.txt +39 -0
  36. vws-auth-tools-2023.3.5/src/vws_auth_tools.egg-info/dependency_links.txt +1 -0
  37. vws-auth-tools-2023.3.5/src/vws_auth_tools.egg-info/not-zip-safe +1 -0
  38. vws-auth-tools-2023.3.5/src/vws_auth_tools.egg-info/requires.txt +22 -0
  39. vws-auth-tools-2023.3.5/src/vws_auth_tools.egg-info/top_level.txt +1 -0
  40. vws-auth-tools-2023.3.5/tests/__init__.py +1 -0
  41. vws-auth-tools-2023.3.5/tests/test_vws_auth_tools.py +64 -0
@@ -0,0 +1 @@
1
+ ref-names: $Format:%D$
@@ -0,0 +1 @@
1
+ .git_archival.txt export-subst
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: pip
4
+ directory: "/requirements"
5
+ schedule:
6
+ interval: daily
7
+ open-pull-requests-limit: 10
8
+ - package-ecosystem: "github-actions"
9
+ directory: "/"
10
+ schedule:
11
+ interval: daily
12
+ open-pull-requests-limit: 10
@@ -0,0 +1,58 @@
1
+ ---
2
+
3
+ name: CI
4
+
5
+ on:
6
+ push:
7
+ branches: [master]
8
+ pull_request:
9
+ branches: [master]
10
+ schedule:
11
+ # * is a special character in YAML so you have to quote this string
12
+ # Run at 1:00 every day
13
+ - cron: '0 1 * * *'
14
+
15
+ jobs:
16
+ build:
17
+
18
+ runs-on: ubuntu-latest
19
+
20
+ strategy:
21
+ matrix:
22
+ python-version: ["3.11"]
23
+
24
+ steps:
25
+ - uses: actions/checkout@v3
26
+ - name: "Set up Python"
27
+ uses: actions/setup-python@v4
28
+ with:
29
+ python-version: ${{ matrix.python-version }}
30
+
31
+ - uses: actions/cache@v3
32
+ with:
33
+ path: ~/.cache/pip
34
+ # This is like the example but we use ``*requirements.txt`` rather
35
+ # than ``requirements.txt`` because we have multiple requirements
36
+ # files.
37
+ key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt') }}
38
+ restore-keys: |
39
+ ${{ runner.os }}-pip-
40
+
41
+ - name: "Install dependencies"
42
+ run: |
43
+ python -m pip install --upgrade pip setuptools wheel
44
+ # We use '--ignore-installed' to avoid GitHub's cache which can cause
45
+ # issues - we have seen packages from this cache be cause trouble with
46
+ # pip-extra-reqs.
47
+ python -m pip install --ignore-installed --upgrade --editable .[dev]
48
+
49
+ - name: "Lint"
50
+ run: |
51
+ make lint
52
+
53
+ - name: "Run tests"
54
+ run: |
55
+ pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests tests/ --cov-report=xml
56
+
57
+ - name: "Upload coverage to Codecov"
58
+ uses: "codecov/codecov-action@v3"
@@ -0,0 +1,76 @@
1
+ ---
2
+
3
+ name: Release
4
+
5
+ on: workflow_dispatch
6
+
7
+ jobs:
8
+ build:
9
+ name: Publish a release
10
+ runs-on: ubuntu-latest
11
+
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.11"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+
19
+ - name: "Set up Python"
20
+ uses: actions/setup-python@v4
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+
24
+ - name: "Calver calculate version"
25
+ uses: StephaneBour/actions-calver@master
26
+ id: calver
27
+ with:
28
+ date_format: "%Y.%m.%d"
29
+ release: false
30
+ env:
31
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32
+
33
+ - name: "Update changelog"
34
+ uses: jacobtomlinson/gha-find-replace@v3
35
+ env:
36
+ NEXT_VERSION: ${{ steps.calver.outputs.release }}
37
+ with:
38
+ find: "Next\n----"
39
+ replace: "Next\n----\n\n${{ env.NEXT_VERSION }}\n------------"
40
+ include: "CHANGELOG.rst"
41
+ regex: false
42
+
43
+ - uses: stefanzweifel/git-auto-commit-action@v4
44
+ id: commit
45
+ with:
46
+ commit_message: Bump CHANGELOG
47
+
48
+ - name: Bump version and push tag
49
+ id: tag_version
50
+ uses: mathieudutour/github-tag-action@v6.1
51
+ with:
52
+ github_token: ${{ secrets.GITHUB_TOKEN }}
53
+ custom_tag: ${{ steps.calver.outputs.release }}
54
+ tag_prefix: ""
55
+ commit_sha: ${{ steps.commit.outputs.commit_hash }}
56
+
57
+ - name: Create a GitHub release
58
+ uses: ncipollo/release-action@v1
59
+ with:
60
+ tag: ${{ steps.tag_version.outputs.new_tag }}
61
+ name: Release ${{ steps.tag_version.outputs.new_tag }}
62
+ body: ${{ steps.tag_version.outputs.changelog }}
63
+
64
+ - name: Build a binary wheel and a source tarball
65
+ run: |
66
+ # Checkout the latest tag - the one we just created.
67
+ git fetch --tags
68
+ git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
69
+ python -m pip install build
70
+ python -m build --sdist --wheel --outdir dist/ .
71
+
72
+ - name: Publish distribution 📦 to PyPI
73
+ uses: pypa/gh-action-pypi-publish@master
74
+ with:
75
+ password: ${{ secrets.PYPI_API_TOKEN }}
76
+ verbose: true
@@ -0,0 +1,107 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+ MANIFEST
27
+
28
+ # PyInstaller
29
+ # Usually these files are written by a python script from a template
30
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
31
+ *.manifest
32
+ *.spec
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .coverage
42
+ .coverage.*
43
+ .cache
44
+ nosetests.xml
45
+ coverage.xml
46
+ *.cover
47
+ .hypothesis/
48
+ .pytest_cache/
49
+
50
+ # Translations
51
+ *.mo
52
+ *.pot
53
+
54
+ # Django stuff:
55
+ *.log
56
+ local_settings.py
57
+ db.sqlite3
58
+
59
+ # Flask stuff:
60
+ instance/
61
+ .webassets-cache
62
+
63
+ # Scrapy stuff:
64
+ .scrapy
65
+
66
+ # Sphinx documentation
67
+ docs/_build/
68
+
69
+ # PyBuilder
70
+ target/
71
+
72
+ # Jupyter Notebook
73
+ .ipynb_checkpoints
74
+
75
+ # pyenv
76
+ .python-version
77
+
78
+ # celery beat schedule file
79
+ celerybeat-schedule
80
+
81
+ # SageMath parsed files
82
+ *.sage.py
83
+
84
+ # Environments
85
+ .env
86
+ .venv
87
+ env/
88
+ venv/
89
+ ENV/
90
+ env.bak/
91
+ venv.bak/
92
+
93
+ # Spyder project settings
94
+ .spyderproject
95
+ .spyproject
96
+
97
+ # Rope project settings
98
+ .ropeproject
99
+
100
+ # mkdocs documentation
101
+ /site
102
+
103
+ # mypy
104
+ .mypy_cache/
105
+
106
+ # setuptools_scm
107
+ src/*/_setuptools_scm_version.txt
@@ -0,0 +1,99 @@
1
+ Changelog
2
+ =========
3
+
4
+ .. contents::
5
+ :class: this-will-duplicate-information-and-it-is-still-useful-here
6
+
7
+ Next
8
+ ----
9
+
10
+ 2023.03.05
11
+ ------------
12
+
13
+ 2021.12.13.3
14
+ ------------
15
+
16
+ 2021.12.13.1
17
+ ------------
18
+
19
+ 2021.12.12.9
20
+ ------------
21
+
22
+ 2021.12.12.8
23
+ ------------
24
+
25
+ 2021.12.12.8
26
+ ------------
27
+
28
+ 2021.12.12
29
+ ------------
30
+
31
+ 2021.12.12.8
32
+ ------------
33
+
34
+ 2021.12.12.8
35
+ ------------
36
+
37
+ 2021.12.12.7
38
+ ------------
39
+
40
+ 2021.12.12.6
41
+ ------------
42
+
43
+ 2021.12.12.5
44
+ ------------
45
+
46
+ 2021.12.12.4
47
+ ------------
48
+
49
+ 2021.12.12.3
50
+ ------------
51
+
52
+ 2021.12.12.2
53
+ ------------
54
+
55
+ 2021.12.12.1
56
+ ------------
57
+
58
+ 2021.12.12.0
59
+ ------------
60
+
61
+ 2021.12.11.0
62
+ ------------
63
+
64
+ 2021.11.05.0
65
+ ------------
66
+
67
+ 2020.05.31.0
68
+ ------------
69
+
70
+ 2019.12.28.4
71
+ ------------
72
+
73
+ 2019.12.28.3
74
+ ------------
75
+
76
+ 2019.12.28.2
77
+ ------------
78
+
79
+ 2019.12.28.1
80
+ ------------
81
+
82
+ 2019.12.28.0
83
+ ------------
84
+
85
+ 2019.12.27.1
86
+ ------------
87
+
88
+ 2019.12.27.0
89
+ ------------
90
+
91
+ 2019.12.08.2
92
+ ------------
93
+
94
+ 2019.12.08.1
95
+ ------------
96
+
97
+ 2019.12.08.0
98
+ ------------
99
+
@@ -0,0 +1,47 @@
1
+ Contributor Covenant Code of Conduct
2
+ ====================================
3
+
4
+ Our Pledge
5
+ ----------
6
+
7
+ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
8
+
9
+ Our Standards
10
+ -------------
11
+
12
+ Examples of behavior that contributes to creating a positive environment include:
13
+
14
+ Using welcoming and inclusive language
15
+ Being respectful of differing viewpoints and experiences
16
+ Gracefully accepting constructive criticism
17
+ Focusing on what is best for the community
18
+ Showing empathy towards other community members
19
+ Examples of unacceptable behavior by participants include:
20
+
21
+ The use of sexualized language or imagery and unwelcome sexual attention or advances
22
+ Trolling, insulting/derogatory comments, and personal or political attacks
23
+ Public or private harassment
24
+ Publishing others' private information, such as a physical or electronic address, without explicit permission
25
+ Other conduct which could reasonably be considered inappropriate in a professional setting
26
+ Our Responsibilities
27
+
28
+ Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
29
+
30
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
31
+
32
+ Scope
33
+ -----
34
+
35
+ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
36
+
37
+ Enforcement
38
+ -----------
39
+
40
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at adamdangoor@gmail.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
41
+
42
+ Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
43
+
44
+ Attribution
45
+ -----------
46
+
47
+ This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at http://contributor-covenant.org/version/1/4.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Adam Dangoor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ include src/vws_auth_tools/py.typed
2
+ include requirements/*.txt
3
+ include pyproject.toml
@@ -0,0 +1,34 @@
1
+ SHELL := /bin/bash -euxo pipefail
2
+
3
+ include lint.mk
4
+
5
+ # Treat Sphinx warnings as errors
6
+ SPHINXOPTS := -W
7
+
8
+ .PHONY: lint
9
+ lint: \
10
+ black \
11
+ check-manifest \
12
+ doc8 \
13
+ ruff \
14
+ linkcheck \
15
+ mypy \
16
+ pip-extra-reqs \
17
+ pip-missing-reqs \
18
+ pyroma \
19
+ spelling \
20
+ vulture \
21
+ pylint
22
+
23
+ .PHONY: fix-lint
24
+ fix-lint: \
25
+ fix-black \
26
+ fix-ruff
27
+
28
+ .PHONY: docs
29
+ docs:
30
+ make -C docs clean html SPHINXOPTS=$(SPHINXOPTS)
31
+
32
+ .PHONY: open-docs
33
+ open-docs:
34
+ python -c 'import os, webbrowser; webbrowser.open("file://" + os.path.abspath("docs/build/html/index.html"))'
@@ -0,0 +1,104 @@
1
+ Metadata-Version: 2.1
2
+ Name: vws-auth-tools
3
+ Version: 2023.3.5
4
+ Summary: Authentication and authorization tools for interacting with the Vuforia Web Services (VWS) API.
5
+ Author-email: Adam Dangoor <adamdangoor@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2019 Adam Dangoor
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Source, https://github.com/VWS-Python/vws-auth-tools
29
+ Keywords: vuforia,vws
30
+ Classifier: Operating System :: POSIX
31
+ Classifier: Environment :: Web Environment
32
+ Classifier: Programming Language :: Python :: 3.11
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Development Status :: 5 - Production/Stable
35
+ Requires-Python: >=3.10
36
+ Description-Content-Type: text/x-rst
37
+ Provides-Extra: dev
38
+ License-File: LICENSE
39
+
40
+ |Build Status| |codecov| |PyPI| |Documentation Status|
41
+
42
+ VWS Auth Tools
43
+ ==============
44
+
45
+ Authentication and authorization tools for interacting with the Vuforia Web Services (VWS) API.
46
+
47
+ Installation
48
+ ------------
49
+
50
+ .. code:: sh
51
+
52
+ pip install vws-auth-tools
53
+
54
+ This is tested on Python 3.11+.
55
+
56
+ Usage
57
+ -----
58
+
59
+ .. code:: python
60
+
61
+ import requests
62
+ from vws_auth_tools import authorization_header, rfc_1123_date
63
+
64
+ target_id = '...'
65
+ request_path = f'/duplicates/{target_id}'
66
+ content = b''
67
+ method = 'GET'
68
+ date = rfc_1123_date()
69
+ authorization_header = authorization_header(
70
+ access_key='my_access_key',
71
+ secret_key='my_secret_key',
72
+ method=method,
73
+ content=content,
74
+ content_type='',
75
+ date=date,
76
+ request_path=request_path,
77
+ )
78
+
79
+ headers = {'Authorization': authorization_string, 'Date': date}
80
+
81
+ response = requests.request(
82
+ method=method,
83
+ url=urljoin(base='https://vws.vuforia.com', url=request_path),
84
+ headers=headers,
85
+ data=content,
86
+ )
87
+
88
+ assert response.status_code == 200
89
+
90
+
91
+ Full Documentation
92
+ ------------------
93
+
94
+ See the `full documentation <https://vws-auth-tools.readthedocs.io/en/latest>`__.
95
+
96
+ .. |Build Status| image:: https://github.com/VWS-Python/vws-auth-tools/workflows/CI/badge.svg
97
+ :target: https://github.com/VWS-Python/vws-auth-tools/actions
98
+ .. |codecov| image:: https://codecov.io/gh/VWS-Python/vws-auth-tools/branch/master/graph/badge.svg
99
+ :target: https://codecov.io/gh/VWS-Python/vws-auth-tools
100
+ .. |Documentation Status| image:: https://readthedocs.org/projects/vws-auth-tools/badge/?version=latest
101
+ :target: https://vws-auth-tools.readthedocs.io/en/latest/?badge=latest
102
+ :alt: Documentation Status
103
+ .. |PyPI| image:: https://badge.fury.io/py/VWS-Auth-Tools.svg
104
+ :target: https://badge.fury.io/py/VWS-Auth-Tools
@@ -0,0 +1,65 @@
1
+ |Build Status| |codecov| |PyPI| |Documentation Status|
2
+
3
+ VWS Auth Tools
4
+ ==============
5
+
6
+ Authentication and authorization tools for interacting with the Vuforia Web Services (VWS) API.
7
+
8
+ Installation
9
+ ------------
10
+
11
+ .. code:: sh
12
+
13
+ pip install vws-auth-tools
14
+
15
+ This is tested on Python 3.11+.
16
+
17
+ Usage
18
+ -----
19
+
20
+ .. code:: python
21
+
22
+ import requests
23
+ from vws_auth_tools import authorization_header, rfc_1123_date
24
+
25
+ target_id = '...'
26
+ request_path = f'/duplicates/{target_id}'
27
+ content = b''
28
+ method = 'GET'
29
+ date = rfc_1123_date()
30
+ authorization_header = authorization_header(
31
+ access_key='my_access_key',
32
+ secret_key='my_secret_key',
33
+ method=method,
34
+ content=content,
35
+ content_type='',
36
+ date=date,
37
+ request_path=request_path,
38
+ )
39
+
40
+ headers = {'Authorization': authorization_string, 'Date': date}
41
+
42
+ response = requests.request(
43
+ method=method,
44
+ url=urljoin(base='https://vws.vuforia.com', url=request_path),
45
+ headers=headers,
46
+ data=content,
47
+ )
48
+
49
+ assert response.status_code == 200
50
+
51
+
52
+ Full Documentation
53
+ ------------------
54
+
55
+ See the `full documentation <https://vws-auth-tools.readthedocs.io/en/latest>`__.
56
+
57
+ .. |Build Status| image:: https://github.com/VWS-Python/vws-auth-tools/workflows/CI/badge.svg
58
+ :target: https://github.com/VWS-Python/vws-auth-tools/actions
59
+ .. |codecov| image:: https://codecov.io/gh/VWS-Python/vws-auth-tools/branch/master/graph/badge.svg
60
+ :target: https://codecov.io/gh/VWS-Python/vws-auth-tools
61
+ .. |Documentation Status| image:: https://readthedocs.org/projects/vws-auth-tools/badge/?version=latest
62
+ :target: https://vws-auth-tools.readthedocs.io/en/latest/?badge=latest
63
+ :alt: Documentation Status
64
+ .. |PyPI| image:: https://badge.fury.io/py/VWS-Auth-Tools.svg
65
+ :target: https://badge.fury.io/py/VWS-Auth-Tools
@@ -0,0 +1,6 @@
1
+ coverage:
2
+ status:
3
+ patch:
4
+ default:
5
+ # Require 100% test coverage.
6
+ target: 100%
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line.
5
+ SPHINXOPTS =
6
+ SPHINXBUILD = sphinx-build
7
+ SPHINXPROJ = VWSAUTHTOOLS
8
+ SOURCEDIR = source
9
+ BUILDDIR = build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1 @@
1
+ """Documentation."""
@@ -0,0 +1,6 @@
1
+ API Reference
2
+ =============
3
+
4
+ .. automodule:: vws_auth_tools
5
+ :undoc-members:
6
+ :members:
@@ -0,0 +1 @@
1
+ .. include:: ../../CHANGELOG.rst