Skip to main content

Fruit is an automation framework written in python.

Configuration

Fruit, when installed via pip, can be called via the command fruit from the terminal.

Targets

Targets are entry points of the fruit make process. They may be executed with the command fruit make <target> from the command line.

Each target may consist of multiple steps or even multiple sub targets. Each of these elemts will be automatically detected during the execution of a target. All sub targets and steps will be automatically listed and added to the result tracking of the called target.

To create a new target, use the decorator @fruit.target().

The following example will create a target with the name build and an empty help text.

@fruit.target()
def build():
  pass

The name and the help text of the target can be overwritten by using the argumetns name and help of @fruit.target().

# Create a target with the name 'build-new'
@fruit.target(name='build-new', help='Build a new castle')
def build():
  pass

The target results will be generated during the target execution process and the results will be shown after target is finished. May the target process be aborted, the results will show the unsuccessful execution with the proper error message.

Steps

Steps are the parts of targets and they serve diagnostic purposes and ease the generation of detailed reports. They are not mandatory to define, but the provide nice diagnostics and cli output for longer processes.

Steps can be created by using the decorator @fruit.step(). The step name will be the name of the decorated function by default but it can be overwritten by the argument name.

# Create a step called step1 without help text
@fruit.step()
def step1():
  pass

# Create a step called 'GIT version' with help text
@fruit.step(name='GIT version', help='Get the current version of the GIT repo')
def step2():
  pass

Release files for fruit 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fruit 0.3.5
File Size Uploaded
fruit-0.3.5.tar.gz 15.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fruit 0.3.5
File Interpreter ABI Platform
fruit-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size:39.1 kB

Release files / fruit-0.3.5.tar.gz

Download URL fruit-0.3.5.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d3029cd2e64f6897b2b32c3e347493972305be4c4afcd17f813c6cd261ce5a97
BLAKE2b-256 checksum
How to use checksums
1215778136ba74420fdc7d71959647bd8b59481d7b95df42f49381e8207218c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

Release files / fruit-0.3.5-py3-none-any.whl

Download URL fruit-0.3.5-py3-none-any.whl
Size 23.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d89c16f0a4d05879b219925fa14ad991b47de49c8bfcd43cf0e252527d4b4625
BLAKE2b-256 checksum
How to use checksums
678fa75c0f373024254a05bcd2d29cf97b47ead78d87edf1b7a459d217a06605
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page