-
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
buildmaster
committed
Oct 26, 2022
0 parents
commit 153796c
Showing
68 changed files
with
19,694 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Changelog | ||
|
||
## [1.1.0] - October 2022 | ||
|
||
### Fixed | ||
- DSG-5683 Updated AWS JITR Lambda Python runtime 3.6 -> 3.9 | ||
|
||
## [1.0.0] - June 2022 | ||
|
||
### Added | ||
- DSG-5013 Added Amazon root CA bundle as recommended by Amazon | ||
- DSG-4397 Added readme link | ||
- DSG-4471 Added changelog link | ||
|
||
### Fixed | ||
- DSG-4361 Clean action does not delete any policies | ||
- DSG-5023 Replaced find_packages with find_namespace_packages | ||
|
||
## [0.11.6] - December 2021 | ||
|
||
### Added | ||
- DSG-4071 Publication to GitHub | ||
- DSG-4192 Sphinx documentation | ||
|
||
## [0.10.0] - February 2021 | ||
- First public release to PyPi |
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,21 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2022 Microchip Technology Inc. and its subsidiaries. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,10 @@ | ||
recursive-include pyawsutils/aws_cf *.zip *.json | ||
recursive-include pyawsutils/aws_iot_policies *.json | ||
include pyawsutils/logging.yaml | ||
include pyawsutils/ca_certs/*.* | ||
|
||
# These files are read in setup.py so they must be included in the source zip for pip to be able to install the zip | ||
# Note however that since the files are not a part of the package (not inside the pyawsutils sub folder) | ||
# they won't be included in the python wheel. | ||
include pypi.md | ||
include requirements.txt |
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,39 @@ | ||
[![MCHP](images/microchip.png)](https://www.microchip.com) | ||
|
||
# pyawsutils - Python AWS utils | ||
pyawsutils is a collection of utilities for interacting with Amazon Web Services | ||
|
||
Install using pip from [pypi.org](https://pypi.org/project/pyawsutils): | ||
```bash | ||
pip install pyawsutils | ||
``` | ||
|
||
Browse source code on [github](https://github.com/microchip-pic-avr-tools/pyawsutils) | ||
|
||
Read API documentation on [github](https://microchip-pic-avr-tools.github.io/pyawsutils) | ||
|
||
Read the changelog on [github](https://github.com/microchip-pic-avr-tools/pyawsutils/blob/main/CHANGELOG.md) | ||
|
||
## Usage | ||
pyawsutils can be used as a command-line interface or a library. | ||
|
||
### Using the pyawsutils CLI | ||
To get top level help | ||
```bash | ||
pyawsutils --help | ||
``` | ||
To get the pyawsutils version | ||
```bash | ||
pyawsutils --version | ||
``` | ||
|
||
For more CLI usage examples see pypi.md. | ||
|
||
### Using pyawsutils as a library package | ||
pyawsutils can be used as a library. Its primary consumer is [iotprovision](https://pypi.org/project/iotprovision) | ||
|
||
For usage examples see pypi.md. | ||
|
||
## Notes for Linux® systems | ||
This package uses pyedbglib and other libraries for USB transport and some udev rules are required. | ||
For details see the pyedbglib package: https://pypi.org/project/pyedbglib |
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 = source | ||
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) |
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 @@ | ||
@ECHO OFF | ||
|
||
pushd %~dp0 | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=sphinx-build | ||
) | ||
set SOURCEDIR=source | ||
set BUILDDIR=build | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% >NUL 2>NUL | ||
if errorlevel 9009 ( | ||
echo. | ||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx | ||
echo.installed, then set the SPHINXBUILD environment variable to point | ||
echo.to the full path of the 'sphinx-build' executable. Alternatively you | ||
echo.may add the Sphinx directory to PATH. | ||
echo. | ||
echo.If you don't have Sphinx installed, grab it from | ||
echo.http://sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
goto end | ||
|
||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
|
||
:end | ||
popd |
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,55 @@ | ||
# 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('../..')) | ||
|
||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = 'pyawsutils' | ||
copyright = '2022, Microchip Technology Inc' | ||
author = 'Microchip Technology Inc' | ||
|
||
|
||
# -- 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'] | ||
|
||
# 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 = [] | ||
|
||
# Mock out these objects (note: modules, not packages) | ||
autodoc_mock_imports = ['pyedbglib', 'pytrustplatform', 'appdirs', 'yaml', 'boto3', 'botocore', 'cryptography', 'pyOpenSSL'] | ||
|
||
# -- 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 = 'Microchip' | ||
html_theme_path = ['../../themes'] | ||
pygments_style = 'default' | ||
|
||
# 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'] |
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,21 @@ | ||
pyawsutils documentation | ||
======================== | ||
|
||
.. automodule:: pyawsutils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:noindex: | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
:caption: Contents: | ||
|
||
pyawsutils | ||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
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,64 @@ | ||
pyawsutils package | ||
================== | ||
|
||
Multi-Account Registration | ||
-------------------------- | ||
|
||
.. automodule:: pyawsutils.mar | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
AWS CloudFormation | ||
------------------ | ||
.. automodule:: pyawsutils.aws_cloudformation | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Lambda functions | ||
---------------- | ||
|
||
.. automodule:: pyawsutils.aws_lambda | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Policy functions | ||
---------------- | ||
|
||
.. automodule:: pyawsutils.policy | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Amazon root CA certificate retrieval | ||
------------------------------------ | ||
.. automodule:: pyawsutils.aws_ca_cert | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Signer registration | ||
------------------- | ||
|
||
.. automodule:: pyawsutils.register_signer | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Account cleaning | ||
---------------- | ||
|
||
.. automodule:: pyawsutils.clean | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
pyawsutils | ||
---------- | ||
|
||
.. automodule:: pyawsutils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 023cc2b0bfd7fe6a89027ed0853827bf | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
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,21 @@ | ||
pyawsutils documentation | ||
======================== | ||
|
||
.. automodule:: pyawsutils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:noindex: | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
:caption: Contents: | ||
|
||
pyawsutils | ||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
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,64 @@ | ||
pyawsutils package | ||
================== | ||
|
||
Multi-Account Registration | ||
-------------------------- | ||
|
||
.. automodule:: pyawsutils.mar | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
AWS CloudFormation | ||
------------------ | ||
.. automodule:: pyawsutils.aws_cloudformation | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Lambda functions | ||
---------------- | ||
|
||
.. automodule:: pyawsutils.aws_lambda | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Policy functions | ||
---------------- | ||
|
||
.. automodule:: pyawsutils.policy | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Amazon root CA certificate retrieval | ||
------------------------------------ | ||
.. automodule:: pyawsutils.aws_ca_cert | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Signer registration | ||
------------------- | ||
|
||
.. automodule:: pyawsutils.register_signer | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Account cleaning | ||
---------------- | ||
|
||
.. automodule:: pyawsutils.clean | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
pyawsutils | ||
---------- | ||
|
||
.. automodule:: pyawsutils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
Oops, something went wrong.