Skip to main content

Example "hello world" model

Project description

Models

hello

A “hello world” sample model

This is a sample model that provides various operations for printing hello world messages.

The message provided, either by default, by a flag, or a file (see each operation for the applicable interface) is printed to standard output and written to a file named output in the run directory.

Operations

default

Print a default message

This operation doesn’t support a user-defined message. Use the from-flag operation with the ‘message’ flag to print an alternative message.

from-file

Print a message from a file

Use the ‘file’ flag to specify the file to print.

Flags
file

File containing the message to print (default is ‘msg.txt’)

from-file-output

Print output from last file-output operation

This operation requires a completed file-output run.

from-flag

Print a message

Use the ‘message’ flag to specify the message to print.

Flags
message

Message to print (default is ‘Hello Guild, from a flag!’)

References

Modelfile: https://github.com/guildai/index/tree/master/hello/MODEL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

gpkg.hello-0.3.0.dev1-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gpkg.hello-0.3.0.dev1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gpkg.hello-0.3.0.dev1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4e3335e3d3499bf7955ff06137af4bff550c63d0dbd663bcb650492f4791822e
MD5 d86b585250116afa75a4d9cb69aa8cf3
BLAKE2b-256 3292facadf3db280cf8c18cd25a94cafca0fdf473df3a3690d5a7269eae6f7e2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page