spokane-tech
No long description provided.
Installation
dagger install github.com/SpokaneTech/SpokaneTech_Py@573bcff688b8972e04f35f97eda6ac056d831f43Entrypoint
Return Type
SpokaneTech !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | A directory. |
| req | File ! | - | A file. |
Example
dagger -m github.com/SpokaneTech/SpokaneTech_Py@573bcff688b8972e04f35f97eda6ac056d831f43 call \
--src DIR_PATH --req file:pathfunc (m *MyModule) Example(src *dagger.Directory, req *dagger.File) *dagger.SpokaneTech {
return dag.
SpokaneTech(src, req)
}@function
def example(src: dagger.Directory, req: dagger.File) -> dagger.SpokaneTech:
return (
dag.spokane_tech(src, req)
)@func()
example(src: Directory, req: File): SpokaneTech {
return dag
.spokaneTech(src, req)
}Types
SpokaneTech 🔗
dev() 🔗
A container that represents the dev environment. Celery (and Redis) services are started and attached. An Admin user with username/password ‘dagger’/‘dagger’ is created.
If --run is passed, the Django server will be started.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| run | Boolean ! | false | No description provided |
| freshDatabase | Boolean ! | false | No description provided |
Example
dagger -m github.com/SpokaneTech/SpokaneTech_Py@573bcff688b8972e04f35f97eda6ac056d831f43 call \
--src DIR_PATH --req file:path dev --run boolean --fresh-database booleanfunc (m *MyModule) Example(src *dagger.Directory, req *dagger.File, run bool, freshDatabase bool) *dagger.Container {
return dag.
SpokaneTech(src, req).
Dev(run, freshDatabase)
}@function
def example(src: dagger.Directory, req: dagger.File, run: bool, fresh_database: bool) -> dagger.Container:
return (
dag.spokane_tech(src, req)
.dev(run, fresh_database)
)@func()
example(src: Directory, req: File, run: boolean, freshDatabase: boolean): Container {
return dag
.spokaneTech(src, req)
.dev(run, freshDatabase)
}prod() 🔗
A production-ready container.
Used to deploy to Fly.io.
Return Type
Container ! Example
dagger -m github.com/SpokaneTech/SpokaneTech_Py@573bcff688b8972e04f35f97eda6ac056d831f43 call \
--src DIR_PATH --req file:path prodfunc (m *MyModule) Example(src *dagger.Directory, req *dagger.File) *dagger.Container {
return dag.
SpokaneTech(src, req).
Prod()
}@function
def example(src: dagger.Directory, req: dagger.File) -> dagger.Container:
return (
dag.spokane_tech(src, req)
.prod()
)@func()
example(src: Directory, req: File): Container {
return dag
.spokaneTech(src, req)
.prod()
}lint() 🔗
Lint using ruff.
Return Type
String ! Example
dagger -m github.com/SpokaneTech/SpokaneTech_Py@573bcff688b8972e04f35f97eda6ac056d831f43 call \
--src DIR_PATH --req file:path lintfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, req *dagger.File) string {
return dag.
SpokaneTech(src, req).
Lint(ctx)
}@function
async def example(src: dagger.Directory, req: dagger.File) -> str:
return await (
dag.spokane_tech(src, req)
.lint()
)@func()
async example(src: Directory, req: File): Promise<string> {
return dag
.spokaneTech(src, req)
.lint()
}format() 🔗
Check if the code is formatted correctly.
Return Type
String ! Example
dagger -m github.com/SpokaneTech/SpokaneTech_Py@573bcff688b8972e04f35f97eda6ac056d831f43 call \
--src DIR_PATH --req file:path formatfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, req *dagger.File) string {
return dag.
SpokaneTech(src, req).
Format(ctx)
}@function
async def example(src: dagger.Directory, req: dagger.File) -> str:
return await (
dag.spokane_tech(src, req)
.format()
)@func()
async example(src: Directory, req: File): Promise<string> {
return dag
.spokaneTech(src, req)
.format()
}bandit() 🔗
Check for security issues using Bandit.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| pyproject | File ! | - | A file. |
Example
dagger -m github.com/SpokaneTech/SpokaneTech_Py@573bcff688b8972e04f35f97eda6ac056d831f43 call \
--src DIR_PATH --req file:path bandit --pyproject file:pathfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, req *dagger.File, pyproject *dagger.File) string {
return dag.
SpokaneTech(src, req).
Bandit(ctx, pyproject)
}@function
async def example(src: dagger.Directory, req: dagger.File, pyproject: dagger.File) -> str:
return await (
dag.spokane_tech(src, req)
.bandit(pyproject)
)@func()
async example(src: Directory, req: File, pyproject: File): Promise<string> {
return dag
.spokaneTech(src, req)
.bandit(pyproject)
}test() 🔗
Run tests using Pytest.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| pyproject | File ! | - | A file. |
Example
dagger -m github.com/SpokaneTech/SpokaneTech_Py@573bcff688b8972e04f35f97eda6ac056d831f43 call \
--src DIR_PATH --req file:path test --pyproject file:pathfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, req *dagger.File, pyproject *dagger.File) string {
return dag.
SpokaneTech(src, req).
Test(ctx, pyproject)
}@function
async def example(src: dagger.Directory, req: dagger.File, pyproject: dagger.File) -> str:
return await (
dag.spokane_tech(src, req)
.test(pyproject)
)@func()
async example(src: Directory, req: File, pyproject: File): Promise<string> {
return dag
.spokaneTech(src, req)
.test(pyproject)
}