Copy Models in App Sync
Project description
example:
pip install appsync-copier
Make a .env file and add
- GRAPHQL_URL
- ACCESS_KEY
- SECRET_KEY
Make a schema.graphql and paste the schema models..
Continue with the following example:
from appsync_copier import AppSyncCopier, AppSyncClient
from dotenv import load_dotenv
import boto3
import os
load_dotenv()
region = boto3.Session().region_name
client = AppSyncClient(os.getenv("GRAPHQL_URL"),
os.getenv("ACCESS_KEY"),
os.getenv("SECRET_KEY"),
region)
copier = AppSyncCopier(
schema_path="schema.graphql",
client=client,
)
copier.copy_model(
"MODEL_NAME",
"MODEL_ID"
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
appsync-copier-0.0.3.tar.gz
(5.3 kB
view details)
Built Distribution
File details
Details for the file appsync-copier-0.0.3.tar.gz
.
File metadata
- Download URL: appsync-copier-0.0.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5626912b1edc8a2bf01acd79a7b23936b09e4b12e9b7049a6c557787857ba2f |
|
MD5 | 35335ceea621d0b47ad428057b6429de |
|
BLAKE2b-256 | 47734799fb20fd60897fd8e0874d534e1b1bf6189192921c127aeb443f149789 |
File details
Details for the file appsync_copier-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: appsync_copier-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1664bcf44b65f94cbdfa866da78a350fb8af1d2486e1af8e9bd2614f5193205e |
|
MD5 | 8f0001ea3fd87be9623f508aef46ae4c |
|
BLAKE2b-256 | 3c2bfcaf8fc499436e7598def5e6d446a3e23718d8a1524edd940489d686b3ff |