Skip to content

Commit be5eec8

Browse files
committed
add internal namespace warning to all modules inside internal namespace
1 parent e858661 commit be5eec8

18 files changed

+106
-17
lines changed

src/dynamodb_encryption_sdk/internal/crypto/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Inner cryptographic components."""
13+
"""Inner cryptographic components.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""

src/dynamodb_encryption_sdk/internal/crypto/authentication.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Functions to handle calculating and verifying signatures of encrypted items."""
13+
"""Functions to handle calculating and verifying signatures of encrypted items.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
from cryptography.hazmat.backends import default_backend
1520
from cryptography.hazmat.primitives import hashes
1621

src/dynamodb_encryption_sdk/internal/crypto/encryption.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Functions to handle encrypting and decrypting DynamoDB attributes."""
13+
"""Functions to handle encrypting and decrypting DynamoDB attributes.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
try: # Python 3.5.0 and 3.5.1 have incompatible typing modules
1520
from typing import Text # noqa pylint: disable=unused-import
1621
from dynamodb_encryption_sdk.internal import dynamodb_types # noqa pylint: disable=unused-import

src/dynamodb_encryption_sdk/internal/crypto/jce_bridge/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
# language governing permissions and limitations under the License.
1313
"""Components to provide cryptographic primitives based on JCE Standard Names.
1414
https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html
15+
16+
.. warning::
17+
No guarantee is provided on the modules and APIs within this
18+
namespace staying consistent. Directly reference at your own risk.
1519
"""

src/dynamodb_encryption_sdk/internal/crypto/jce_bridge/authentication.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Cryptographic authentication resources for JCE bridge."""
13+
"""Cryptographic authentication resources for JCE bridge.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
import abc
1520
import logging
1621

src/dynamodb_encryption_sdk/internal/crypto/jce_bridge/encryption.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Cipher resource for JCE bridge."""
13+
"""Cipher resource for JCE bridge.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
import attr
1520

1621
from dynamodb_encryption_sdk.exceptions import JceTransformationError

src/dynamodb_encryption_sdk/internal/crypto/jce_bridge/primitives.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Cryptographic primitive resources for JCE bridge."""
13+
"""Cryptographic primitive resources for JCE bridge.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
import abc
1520
import logging
1621
import os

src/dynamodb_encryption_sdk/internal/dynamodb_types.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
"""Types used with mypy for DynamoDB items and attributes."""
1+
"""Types used with mypy for DynamoDB items and attributes.
2+
3+
.. warning::
4+
No guarantee is provided on the modules and APIs within this
5+
namespace staying consistent. Directly reference at your own risk.
6+
"""
27
try: # Python 3.5.0 and 3.5.1 have incompatible typing modules
38
from typing import Any, AnyStr, ByteString, Dict, List, Text
49

src/dynamodb_encryption_sdk/internal/formatting/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Data formatting utilities for the DynamoDB Encryption Client."""
13+
"""Data formatting utilities for the DynamoDB Encryption Client.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""

src/dynamodb_encryption_sdk/internal/formatting/deserialize/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Helper functions for deserializing values."""
13+
"""Helper functions for deserializing values.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
import struct
1520

1621
from dynamodb_encryption_sdk.exceptions import DeserializationError

src/dynamodb_encryption_sdk/internal/formatting/deserialize/attribute.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Tooling for deserializing attributes."""
13+
"""Tooling for deserializing attributes.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
import codecs
1520
from decimal import Decimal
1621
import io

src/dynamodb_encryption_sdk/internal/formatting/material_description.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Tools for serializing and deserializing material descriptions."""
13+
"""Tools for serializing and deserializing material descriptions.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
import io
1520
import logging
1621
import struct

src/dynamodb_encryption_sdk/internal/formatting/serialize/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Helper functions for serializing values."""
13+
"""Helper functions for serializing values.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
import struct
1520

1621
try: # Python 3.5.0 and 3.5.1 have incompatible typing modules

src/dynamodb_encryption_sdk/internal/formatting/serialize/attribute.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Tooling for serializing attributes."""
13+
"""Tooling for serializing attributes.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
import io
1520
import logging
1621

src/dynamodb_encryption_sdk/internal/identifiers.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Unique identifiers for internal use only."""
13+
"""Unique identifiers for internal use only.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
from enum import Enum
1520

1621
try: # Python 3.5.0 and 3.5.1 have incompatible typing modules

src/dynamodb_encryption_sdk/internal/str_ops.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Helper functions for consistently obtaining str and bytes objects in both Python2 and Python3."""
13+
"""Helper functions for consistently obtaining str and bytes objects in both Python2 and Python3.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
import codecs
1520

1621
import six

src/dynamodb_encryption_sdk/internal/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Otherwise undifferentiated utility resources."""
13+
"""Otherwise undifferentiated utility resources.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419
import attr
1520
import botocore.client
1621

src/dynamodb_encryption_sdk/internal/validators.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
"""Custom validators for ``attrs``."""
13+
"""Custom validators for ``attrs``.
14+
15+
.. warning::
16+
No guarantee is provided on the modules and APIs within this
17+
namespace staying consistent. Directly reference at your own risk.
18+
"""
1419

1520
__all__ = ('dictionary_validator', 'iterable_validator')
1621

0 commit comments

Comments
 (0)