spokane-tech
No long description provided.
Installation
dagger install github.com/SpokaneTech/SpokaneTech_Py@573bcff688b8972e04f35f97eda6ac056d831f43
Entrypoint
Return Type
SpokaneTech !
Arguments
Name | Type | Description |
---|---|---|
src | Directory ! | A directory. |
req | File ! | A file. |
Example
dagger -m github.com/SpokaneTech/SpokaneTech_Py@573bcff688b8972e04f35f97eda6ac056d831f43 call \
--src DIR_PATH --req file:path
func (m *myModule) example(src *Directory, req *File) *SpokaneTech {
return dag.
SpokaneTech(src, req)
}
@function
def example(src: dagger.Directory, req: dagger.File) -> dag.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 boolean
func (m *myModule) example(src *Directory, req *File, run bool, freshDatabase bool) *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 prod
func (m *myModule) example(src *Directory, req *File) *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 lint
func (m *myModule) example(ctx context.Context, src *Directory, req *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 format
func (m *myModule) example(ctx context.Context, src *Directory, req *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:path
func (m *myModule) example(ctx context.Context, src *Directory, req *File, pyproject *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:path
func (m *myModule) example(ctx context.Context, src *Directory, req *File, pyproject *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)
}