https://github.com/nhsdigital/nhs-aws-helpers
https://github.com/nhsdigital/nhs-aws-helpers
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/nhsdigital/nhs-aws-helpers
- Owner: NHSDigital
- License: mit
- Created: 2023-06-21T12:49:42.000Z (almost 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-05-23T08:15:58.000Z (about 2 years ago)
- Last Synced: 2024-05-23T08:17:24.062Z (about 2 years ago)
- Language: Python
- Size: 553 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# NHS AWS Helpers
some useful boto3 utilities
# quick start
### contributing
contributors see [contributing](CONTRIBUTING.md)
### installing
```shell
pip install nhs-aws-helpers
```
## testing
the library comes with a some pytest fixtures ... [nhs_aws_helpers/fixtures.py](nhs_aws_helpers/fixtures.py)
```python
# conftest.py
# noinspection PyUnresolvedReferences
from nhs_aws_helpers.fixtures import * # noqa: F403
# mytest.py
import pytest
from mypy_boto3_dynamodb.service_resource import Table
@pytest.fixture(scope="function", name="my_temp_ddb_table")
def my_temp_table_fixture() -> Table:
yield from temp_dynamodb_table("my-source-table-to-clone")
def my_test(my_temp_ddb_table: Table):
# do things with table
print(my_temp_ddb_table.table_name)
```