phases
CLI for pyPhases — scaffold projects with phases create and run pipelines with phases run.
Install
pip install phases
Quick start
phases create -o my-project # interactive wizard
phases run TrainModel # run a phase
Setup
pip install phases
create project.yaml
minimal
name: myProject
namespace: myGroup
phases:
- name: Phase1
description: my first phase
exports: [myData]
- name: Phase2
description: my second phase
run with python myProject
complete
name: "sleepClassificationCNN"
namespace: tud.ibmt
exporter:
- ObjectExporter
- KerasExporter
phases:
prepareData:
- name: DataWrapper
description: get EDF Data
exports:
- trainingRaw
- validationRaw
- evaluationRaw
- name: EDF4SleepStages
description: Prepare EDF Data for sleep stage recognition
exports:
- trainingTransformed
- validationTransformed
train:
- name: SleepPhaseDetectionModel
description: Create Model for sleep stage recognition
exports:
- model
evaluate:
- name: SleepPhaseDetectionModel
description: Create Model for sleep stage recognition
Generate
phases create
Development
The generator will create stubs for each phase, exporter and generator that does not exists in the pyPhase-Package. The stubs are in the project folder and implement empty method that are required.
To implement your project, you only need to fill those methods. For the minimal example you need
to fill the main-methods of Phase1 (myProject/phases/Phase1.py) and Phase2.
Execute
If you want to run the whole Project run: python [ProjectName] for the minimal example: python myProject
To run a single stage: python [ProjectName] [StageName] for the minimal example: python myProject stage2
additional files
-
doc/placeholder for documentation -
.editorconfigsome settings for supporting IDE about File encoding and formats (see https://editorconfig.org/) -
.gitignoresome folders and files that should be ignored by git (see https://git-scm.com/docs/gitignore) -
requirements.txtthe python requirements (just pyPhases in an empty project) -
README.mdan Readme file -
Dockerfilea simple dockerfile that can be used to run the project in a container (TheFROMimage should properly changed) -
docker-compose.ymlthis is a helper to create and run the container. simply rundocker-compose upordocker compose run --rm [projectname] [stagename] -
.gitlab-ci.ymla Configuration for the Gitlab-CI Pipeline, that will be automaticly run if there is a push to gitlab
Release files for phases 1.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| phases-1.7.1.tar.gz | 36.4 kB | Details |
Release files / phases-1.7.1.tar.gz
| Download URL | phases-1.7.1.tar.gz |
|---|---|
| Size | 36.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8299bfd6045826decb6210b3f284f51ed01eba2ccf7a2c8b0a057df34098c535
|
|
BLAKE2b-256 checksum How to use checksums |
4c217c3de0d4b2f9435a1ad34644740e031eab02c20b4b3857cd7fe147c0a91d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.14
|