amsdal_storages 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- amsdal_storages-0.1.0/.amsdal-cli +11 -0
- amsdal_storages-0.1.0/.github/workflows/ci.yml +62 -0
- amsdal_storages-0.1.0/.github/workflows/release.yml +99 -0
- amsdal_storages-0.1.0/.github/workflows/tag_check.yml +29 -0
- amsdal_storages-0.1.0/.gitignore +210 -0
- amsdal_storages-0.1.0/PKG-INFO +60 -0
- amsdal_storages-0.1.0/README.md +48 -0
- amsdal_storages-0.1.0/amsdal_storages/Third-Party Materials - AMSDAL Dependencies - License Notices.md +1223 -0
- amsdal_storages-0.1.0/amsdal_storages/__about__.py +1 -0
- amsdal_storages-0.1.0/amsdal_storages/__init__.py +0 -0
- amsdal_storages-0.1.0/amsdal_storages/py.typed +0 -0
- amsdal_storages-0.1.0/amsdal_storages/s3/__init__.py +0 -0
- amsdal_storages-0.1.0/amsdal_storages/s3/storage.py +201 -0
- amsdal_storages-0.1.0/config.yml +20 -0
- amsdal_storages-0.1.0/license_check.py +38 -0
- amsdal_storages-0.1.0/pyproject.toml +142 -0
- amsdal_storages-0.1.0/tests/__init__.py +0 -0
- amsdal_storages-0.1.0/tests/test_s3_storage.py +261 -0
- amsdal_storages-0.1.0/uv.lock +2320 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"src_dir": "amsdal_storages",
|
|
3
|
+
"config_path": "./config.yml",
|
|
4
|
+
"http_port": 8080,
|
|
5
|
+
"check_model_exists": true,
|
|
6
|
+
"json_indent": 4,
|
|
7
|
+
"application_uuid": "rd6b53c7b862748e8ac8731d58c02d82",
|
|
8
|
+
"application_name": "amsdal_storages",
|
|
9
|
+
"models_format": "py",
|
|
10
|
+
"is_plugin": true
|
|
11
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
license-check:
|
|
8
|
+
name: License check
|
|
9
|
+
runs-on: self-hosted
|
|
10
|
+
steps:
|
|
11
|
+
- name: Reset permissions
|
|
12
|
+
run: |
|
|
13
|
+
sudo chown -R $(id -u):$(id -g) .
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Python install
|
|
17
|
+
uses: actions/setup-python@v5
|
|
18
|
+
with:
|
|
19
|
+
python-version: "3.11"
|
|
20
|
+
- name: License check
|
|
21
|
+
run: |
|
|
22
|
+
pip install toml
|
|
23
|
+
python license_check.py
|
|
24
|
+
|
|
25
|
+
test-lint:
|
|
26
|
+
name: Run tests and check style
|
|
27
|
+
needs: [license-check]
|
|
28
|
+
runs-on: self-hosted
|
|
29
|
+
strategy:
|
|
30
|
+
max-parallel: 1
|
|
31
|
+
fail-fast: false
|
|
32
|
+
matrix:
|
|
33
|
+
python-version: ["3.11", "3.12"]
|
|
34
|
+
env:
|
|
35
|
+
PYTHON: ${{ matrix.python-version }}
|
|
36
|
+
DEPS: yes
|
|
37
|
+
_TYPER_FORCE_DISABLE_TERMINAL: true
|
|
38
|
+
steps:
|
|
39
|
+
- uses: actions/checkout@v4
|
|
40
|
+
- uses: szenius/set-timezone@v2.0
|
|
41
|
+
with:
|
|
42
|
+
timezoneLinux: "EEST"
|
|
43
|
+
|
|
44
|
+
- name: Set up python
|
|
45
|
+
uses: actions/setup-python@v5
|
|
46
|
+
with:
|
|
47
|
+
python-version: ${{ matrix.python-version }}
|
|
48
|
+
|
|
49
|
+
- name: Hatch and UV setup
|
|
50
|
+
run: |
|
|
51
|
+
pip install --upgrade uv hatch
|
|
52
|
+
hatch env prune
|
|
53
|
+
hatch env create
|
|
54
|
+
hatch run sync
|
|
55
|
+
|
|
56
|
+
- name: Run style checks
|
|
57
|
+
if: always()
|
|
58
|
+
run: hatch run all
|
|
59
|
+
|
|
60
|
+
- name: Run tests
|
|
61
|
+
if: always()
|
|
62
|
+
run: hatch run cov tests/
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
name: CD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
license-check:
|
|
10
|
+
name: License check
|
|
11
|
+
runs-on: self-hosted
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
|
|
15
|
+
- name: Python install
|
|
16
|
+
uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: "3.11"
|
|
19
|
+
- name: License check
|
|
20
|
+
run: |
|
|
21
|
+
pip install toml
|
|
22
|
+
python license_check.py
|
|
23
|
+
|
|
24
|
+
build:
|
|
25
|
+
name: Build and compile
|
|
26
|
+
needs: [license-check]
|
|
27
|
+
runs-on: self-hosted
|
|
28
|
+
strategy:
|
|
29
|
+
fail-fast: false
|
|
30
|
+
matrix:
|
|
31
|
+
python-version: [ "3.10" ]
|
|
32
|
+
env:
|
|
33
|
+
PYTHON: ${{ matrix.python-version }}
|
|
34
|
+
DEPS: yes
|
|
35
|
+
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v4
|
|
38
|
+
|
|
39
|
+
- name: Set up python
|
|
40
|
+
uses: actions/setup-python@v5
|
|
41
|
+
with:
|
|
42
|
+
python-version: ${{ matrix.python-version }}
|
|
43
|
+
|
|
44
|
+
- name: Install hatch
|
|
45
|
+
run: |
|
|
46
|
+
python -m pip install --upgrade setuptools
|
|
47
|
+
python -m pip install --upgrade hatch
|
|
48
|
+
|
|
49
|
+
- name: Build
|
|
50
|
+
run: hatch build
|
|
51
|
+
|
|
52
|
+
- name: Store the distribution packages
|
|
53
|
+
uses: actions/upload-artifact@v4
|
|
54
|
+
with:
|
|
55
|
+
name: python-package-distributions
|
|
56
|
+
path: dist/
|
|
57
|
+
|
|
58
|
+
publish:
|
|
59
|
+
name: Publish to PyPi
|
|
60
|
+
runs-on: self-hosted
|
|
61
|
+
needs: build
|
|
62
|
+
strategy:
|
|
63
|
+
fail-fast: false
|
|
64
|
+
matrix:
|
|
65
|
+
python-version: [ "3.10" ]
|
|
66
|
+
steps:
|
|
67
|
+
- name: Set up python
|
|
68
|
+
uses: actions/setup-python@v5
|
|
69
|
+
with:
|
|
70
|
+
python-version: ${{ matrix.python-version }}
|
|
71
|
+
|
|
72
|
+
- name: Download all the dists
|
|
73
|
+
uses: actions/download-artifact@v4
|
|
74
|
+
with:
|
|
75
|
+
name: python-package-distributions
|
|
76
|
+
path: dist/
|
|
77
|
+
|
|
78
|
+
- name: Branch info
|
|
79
|
+
id: branch_info
|
|
80
|
+
run: |
|
|
81
|
+
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
|
|
82
|
+
|
|
83
|
+
- name: Install hatch
|
|
84
|
+
run: |
|
|
85
|
+
python -m pip install --upgrade setuptools
|
|
86
|
+
python -m pip install --upgrade hatch
|
|
87
|
+
|
|
88
|
+
- name: Publish
|
|
89
|
+
run: |
|
|
90
|
+
hatch publish --user ${{ secrets.PYPI_USERNAME }} --auth ${{ secrets.PYPI_TOKEN }}
|
|
91
|
+
|
|
92
|
+
- name: Create Release
|
|
93
|
+
uses: softprops/action-gh-release@v2
|
|
94
|
+
with:
|
|
95
|
+
body_path: latest-changelogs.md
|
|
96
|
+
files: dist/*
|
|
97
|
+
name: ${{ steps.branch_info.outputs.SOURCE_TAG }}
|
|
98
|
+
draft: false
|
|
99
|
+
prerelease: false
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Tags Check
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
types: [closed]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
tags_check:
|
|
12
|
+
name: Tags Check
|
|
13
|
+
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' && startsWith(github.event.pull_request.head.ref, 'release/')
|
|
14
|
+
runs-on: self-hosted
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
with:
|
|
18
|
+
token: ${{ secrets.ACCESS_KEY }}
|
|
19
|
+
|
|
20
|
+
- name: Install jq
|
|
21
|
+
run: |
|
|
22
|
+
sudo apt-get update
|
|
23
|
+
sudo apt-get install -y jq
|
|
24
|
+
|
|
25
|
+
- name: Create tag
|
|
26
|
+
env:
|
|
27
|
+
GITHUB_TOKEN: ${{ secrets.ACCESS_KEY }}
|
|
28
|
+
run: |
|
|
29
|
+
bash ./scripts/tag_check.sh
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
.idea
|
|
3
|
+
.vscode
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[codz]
|
|
6
|
+
*$py.class
|
|
7
|
+
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
|
|
11
|
+
# Distribution / packaging
|
|
12
|
+
.Python
|
|
13
|
+
build/
|
|
14
|
+
develop-eggs/
|
|
15
|
+
dist/
|
|
16
|
+
downloads/
|
|
17
|
+
eggs/
|
|
18
|
+
.eggs/
|
|
19
|
+
lib/
|
|
20
|
+
lib64/
|
|
21
|
+
parts/
|
|
22
|
+
sdist/
|
|
23
|
+
var/
|
|
24
|
+
wheels/
|
|
25
|
+
share/python-wheels/
|
|
26
|
+
*.egg-info/
|
|
27
|
+
.installed.cfg
|
|
28
|
+
*.egg
|
|
29
|
+
MANIFEST
|
|
30
|
+
|
|
31
|
+
# PyInstaller
|
|
32
|
+
# Usually these files are written by a python script from a template
|
|
33
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
34
|
+
*.manifest
|
|
35
|
+
*.spec
|
|
36
|
+
|
|
37
|
+
# Installer logs
|
|
38
|
+
pip-log.txt
|
|
39
|
+
pip-delete-this-directory.txt
|
|
40
|
+
|
|
41
|
+
# Unit test / coverage reports
|
|
42
|
+
htmlcov/
|
|
43
|
+
.tox/
|
|
44
|
+
.nox/
|
|
45
|
+
.coverage
|
|
46
|
+
.coverage.*
|
|
47
|
+
.cache
|
|
48
|
+
nosetests.xml
|
|
49
|
+
coverage.xml
|
|
50
|
+
*.cover
|
|
51
|
+
*.py.cover
|
|
52
|
+
.hypothesis/
|
|
53
|
+
.pytest_cache/
|
|
54
|
+
cover/
|
|
55
|
+
|
|
56
|
+
# Translations
|
|
57
|
+
*.mo
|
|
58
|
+
*.pot
|
|
59
|
+
|
|
60
|
+
# Django stuff:
|
|
61
|
+
*.log
|
|
62
|
+
local_settings.py
|
|
63
|
+
db.sqlite3
|
|
64
|
+
db.sqlite3-journal
|
|
65
|
+
|
|
66
|
+
# Flask stuff:
|
|
67
|
+
instance/
|
|
68
|
+
.webassets-cache
|
|
69
|
+
|
|
70
|
+
# Scrapy stuff:
|
|
71
|
+
.scrapy
|
|
72
|
+
|
|
73
|
+
# Sphinx documentation
|
|
74
|
+
docs/_build/
|
|
75
|
+
|
|
76
|
+
# PyBuilder
|
|
77
|
+
.pybuilder/
|
|
78
|
+
target/
|
|
79
|
+
|
|
80
|
+
# Jupyter Notebook
|
|
81
|
+
.ipynb_checkpoints
|
|
82
|
+
|
|
83
|
+
# IPython
|
|
84
|
+
profile_default/
|
|
85
|
+
ipython_config.py
|
|
86
|
+
|
|
87
|
+
# pyenv
|
|
88
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
89
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
90
|
+
# .python-version
|
|
91
|
+
|
|
92
|
+
# pipenv
|
|
93
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
94
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
95
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
96
|
+
# install all needed dependencies.
|
|
97
|
+
#Pipfile.lock
|
|
98
|
+
|
|
99
|
+
# UV
|
|
100
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
101
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
102
|
+
# commonly ignored for libraries.
|
|
103
|
+
#uv.lock
|
|
104
|
+
|
|
105
|
+
# poetry
|
|
106
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
107
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
108
|
+
# commonly ignored for libraries.
|
|
109
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
110
|
+
#poetry.lock
|
|
111
|
+
#poetry.toml
|
|
112
|
+
|
|
113
|
+
# pdm
|
|
114
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
115
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
116
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
117
|
+
#pdm.lock
|
|
118
|
+
#pdm.toml
|
|
119
|
+
.pdm-python
|
|
120
|
+
.pdm-build/
|
|
121
|
+
.idea/
|
|
122
|
+
|
|
123
|
+
# pixi
|
|
124
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
125
|
+
#pixi.lock
|
|
126
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
127
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
128
|
+
.pixi
|
|
129
|
+
|
|
130
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
131
|
+
__pypackages__/
|
|
132
|
+
|
|
133
|
+
# Celery stuff
|
|
134
|
+
celerybeat-schedule
|
|
135
|
+
celerybeat.pid
|
|
136
|
+
|
|
137
|
+
# SageMath parsed files
|
|
138
|
+
*.sage.py
|
|
139
|
+
|
|
140
|
+
# Environments
|
|
141
|
+
.env
|
|
142
|
+
.envrc
|
|
143
|
+
.venv
|
|
144
|
+
env/
|
|
145
|
+
venv/
|
|
146
|
+
ENV/
|
|
147
|
+
env.bak/
|
|
148
|
+
venv.bak/
|
|
149
|
+
|
|
150
|
+
# Spyder project settings
|
|
151
|
+
.spyderproject
|
|
152
|
+
.spyproject
|
|
153
|
+
|
|
154
|
+
# Rope project settings
|
|
155
|
+
.ropeproject
|
|
156
|
+
|
|
157
|
+
# mkdocs documentation
|
|
158
|
+
/site
|
|
159
|
+
|
|
160
|
+
# mypy
|
|
161
|
+
.mypy_cache/
|
|
162
|
+
.dmypy.json
|
|
163
|
+
dmypy.json
|
|
164
|
+
|
|
165
|
+
# Pyre type checker
|
|
166
|
+
.pyre/
|
|
167
|
+
|
|
168
|
+
# pytype static type analyzer
|
|
169
|
+
.pytype/
|
|
170
|
+
|
|
171
|
+
# Cython debug symbols
|
|
172
|
+
cython_debug/
|
|
173
|
+
|
|
174
|
+
# PyCharm
|
|
175
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
176
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
177
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
178
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
179
|
+
#.idea/
|
|
180
|
+
|
|
181
|
+
# Abstra
|
|
182
|
+
# Abstra is an AI-powered process automation framework.
|
|
183
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
184
|
+
# Learn more at https://abstra.io/docs
|
|
185
|
+
.abstra/
|
|
186
|
+
|
|
187
|
+
# Visual Studio Code
|
|
188
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
189
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
190
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
191
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
192
|
+
# .vscode/
|
|
193
|
+
|
|
194
|
+
# Ruff stuff:
|
|
195
|
+
.ruff_cache/
|
|
196
|
+
|
|
197
|
+
# PyPI configuration file
|
|
198
|
+
.pypirc
|
|
199
|
+
|
|
200
|
+
# Cursor
|
|
201
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
202
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
203
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
204
|
+
.cursorignore
|
|
205
|
+
.cursorindexingignore
|
|
206
|
+
|
|
207
|
+
# Marimo
|
|
208
|
+
marimo/_static/
|
|
209
|
+
marimo/_lsp/
|
|
210
|
+
__marimo__/
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: amsdal_storages
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: amsdal_storages plugin for AMSDAL Framework
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
Requires-Dist: amsdal-models>=0.5.16
|
|
7
|
+
Requires-Dist: amsdal[cli]==0.5.10
|
|
8
|
+
Provides-Extra: s3
|
|
9
|
+
Requires-Dist: aioboto3>=11.0.0; extra == 's3'
|
|
10
|
+
Requires-Dist: boto3; extra == 's3'
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
# amsdal_storages
|
|
14
|
+
|
|
15
|
+
This plugin provides implementations of the Storage backends for AMSDAL.
|
|
16
|
+
|
|
17
|
+
## Plugin Structure
|
|
18
|
+
|
|
19
|
+
- `pyproject.toml` - Plugin configuration file
|
|
20
|
+
- `config.yml` - Configuration for connections
|
|
21
|
+
|
|
22
|
+
## Installing this Plugin
|
|
23
|
+
|
|
24
|
+
To use this plugin in an AMSDAL application:
|
|
25
|
+
|
|
26
|
+
1. Copy the plugin directory to your AMSDAL application
|
|
27
|
+
2. Import the models and transactions as needed
|
|
28
|
+
3. Register the plugin in your application configuration
|
|
29
|
+
|
|
30
|
+
## Development
|
|
31
|
+
|
|
32
|
+
This plugin uses sync mode.
|
|
33
|
+
|
|
34
|
+
### Adding Models
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
amsdal generate model ModelName --format py
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Adding Properties
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
amsdal generate property --model ModelName property_name
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Adding Transactions
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
amsdal generate transaction TransactionName
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Adding Hooks
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
amsdal generate hook --model ModelName on_create
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Testing
|
|
59
|
+
|
|
60
|
+
Test your plugin by integrating it with an AMSDAL application and running the application's test suite.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# amsdal_storages
|
|
2
|
+
|
|
3
|
+
This plugin provides implementations of the Storage backends for AMSDAL.
|
|
4
|
+
|
|
5
|
+
## Plugin Structure
|
|
6
|
+
|
|
7
|
+
- `pyproject.toml` - Plugin configuration file
|
|
8
|
+
- `config.yml` - Configuration for connections
|
|
9
|
+
|
|
10
|
+
## Installing this Plugin
|
|
11
|
+
|
|
12
|
+
To use this plugin in an AMSDAL application:
|
|
13
|
+
|
|
14
|
+
1. Copy the plugin directory to your AMSDAL application
|
|
15
|
+
2. Import the models and transactions as needed
|
|
16
|
+
3. Register the plugin in your application configuration
|
|
17
|
+
|
|
18
|
+
## Development
|
|
19
|
+
|
|
20
|
+
This plugin uses sync mode.
|
|
21
|
+
|
|
22
|
+
### Adding Models
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
amsdal generate model ModelName --format py
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Adding Properties
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
amsdal generate property --model ModelName property_name
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Adding Transactions
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
amsdal generate transaction TransactionName
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Adding Hooks
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
amsdal generate hook --model ModelName on_create
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Testing
|
|
47
|
+
|
|
48
|
+
Test your plugin by integrating it with an AMSDAL application and running the application's test suite.
|