Skip to main content

A simplified tool for making easy-to-use build scripts

Project description

Stud

Example Studfile.yaml

.variables:
  all_services:
    - foo
    - bar
    - baz
build-docker: 
  help: "Build and optionally push docker images"
  options:
    - name: -s,--services
      default: all
      nargs: '+'
      required: true
    - name: -p,--push
      action: store_true
  cmd: |
    if 'all' in services:
      services = all_services

    for service in services:
      docker build -t {service} -f src/{service}/Dockerfile .
      if push:
        docker push {service}
build-local: 
  help: "Build local versions of services"
  options:
    - name: -s,--services
      default: all
      nargs: '+'
      required: true
  cmd: |
    # notice that the all_services variable is available 
    if 'all' in services:
      services = all_services

    for service in services:
      # do build things here

Project details


Download files

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

Source Distribution

studfile-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

studfile-0.1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file studfile-0.1.2.tar.gz.

File metadata

  • Download URL: studfile-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.0 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for studfile-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ae04001a6ba9ee59b57988d1ce1aba427da546f077f81de04d28511ab897bde5
MD5 5bbb766945f0b4835f7fc39df7936c00
BLAKE2b-256 f5068e3f650a14d5f127491bbf97217d405a6a233f23e0f6107c24fed7d92288

See more details on using hashes here.

File details

Details for the file studfile-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: studfile-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.0 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for studfile-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec243f99999d2ea0edd1871ee8f063581c3c4878abfdded1bc13f35690800328
MD5 2864398b2fbdd22034b5d24543634535
BLAKE2b-256 e378994b4cd9a2b28d3ebe89ba4601fdc11a0cafd4afd29403bf580c3404b376

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