Metadata-Version: 2.1
Name: appsync-copier
Version: 0.0.3
Summary: Copy Models in App Sync
Home-page: https://github.com/Habib-Shahzad/ultimate-appsync-copier
Author: Habib
Author-email: habibshehzad55@gmail.com
Project-URL: Bug Tracker, https://github.com/Habib-Shahzad/ultimate-appsync-copier/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE



example:

```sh
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:

```python

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"
)


```
