Reactive, robust AWS DynamoDb integration with Swift that Just Works.
This library will
- Call python libraries from Swift, for AWS DynamoDb
- Provide Reactive wrappers for the DynamoDb calls.
- Provide robust, asynchronous connectivity to AWS, unlike the official AWS library (!)
- Provide macOS reactive extensions
- Feature Emojisaurus 🦕
- Firstly, get hold of Swift 5. Currently (for macOS at least) that means downloading the XCode 10.2 beta.
- We use the Google/Tensorflow Python.swift integration to bridge Python and Swift easily. To make this even easier, we use Pedro Vieto's PythonKit which ensures we have a working/buildable version of the Python.swift file. So, go to https://github.com/pvieito/PythonKit and follow the instructions about adding packages to your SPM file.
- As per the DynamoDb instructions https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html pip install boto3. I had to force the right user: pip install boto3 --user. You may also need to ignore installed packages: pip install boto3 --user --ignore-installed six
- Create an AWS credentials file at l,~/.aws/config as per the instructions
- I also had to create a ~/.aws/config file to specify the region. Note that if the credentials and/or region are not correct, you will get errors like 'can't find resource' from Python.
let 🦕 = Dyno() let items = 🦕.selectItems( fromTable: "InstanceTable", matching: "owner", equals: "jrsonline", building: Instance.builder ) items.asDriver() --> rxTableView.rx.rows ..> disposeBag