tooluniverse.compose_scripts.tool_graph_composer module

Simplified and fixed tool_graph_composer.py This version includes better error handling and avoids the ‘unhashable type’ issue.

class tooluniverse.compose_scripts.tool_graph_composer.datetime(year, month, day[, hour[, minute[, second[, microsecond[, tzinfo]]]]])[source][source]

Bases: date

The year, month and day arguments are required. tzinfo may be None, or an instance of a tzinfo subclass. The remaining arguments may be ints.

hour[source]
minute[source]
second[source]
microsecond[source]
tzinfo[source]
fold[source]
fromtimestamp()[source]

timestamp[, tz] -> tz’s local time from POSIX timestamp.

utcfromtimestamp()[source]

Construct a naive UTC datetime from a POSIX timestamp.

now()[source]

Returns new datetime object representing current time local to tz.

tz

Timezone object.

If no tz is specified, uses local timezone.

utcnow()[source]

Return a new datetime representing UTC day and time.

combine()[source]

date, time -> datetime with same date and time fields

fromisoformat()[source]

string -> datetime from datetime.isoformat() output

timetuple()[source]

Return time tuple, compatible with time.localtime().

timestamp()[source]

Return POSIX timestamp as float.

utctimetuple()[source]

Return UTC time tuple, compatible with time.localtime().

date()[source]

Return date object with same year, month and day.

time()[source]

Return time object with same time but with tzinfo=None.

timetz()[source]

Return time object with same time and tzinfo.

replace()[source]

Return datetime with new specified fields.

astimezone()[source]

tz -> convert to local time in new timezone tz

ctime()[source]

Return ctime() style string.

isoformat()[source]

[sep] -> string in ISO 8601 format, YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM]. sep is used to separate the year from the time, and defaults to ‘T’. The optional argument timespec specifies the number of additional terms of the time to include. Valid options are ‘auto’, ‘hours’, ‘minutes’, ‘seconds’, ‘milliseconds’ and ‘microseconds’.

__repr__()[source]

Return repr(self).

__str__()[source]

Return str(self).

strptime()[source]

string, format -> new datetime parsed from a string (like time.strptime()).

utcoffset()[source]

Return self.tzinfo.utcoffset(self).

tzname()[source]

Return self.tzinfo.tzname(self).

dst()[source]

Return self.tzinfo.dst(self).

max = datetime.datetime(9999, 12, 31, 23, 59, 59, 999999)[source]
min = datetime.datetime(1, 1, 1, 0, 0)[source]
resolution = datetime.timedelta(microseconds=1)[source]
tooluniverse.compose_scripts.tool_graph_composer.compose(arguments, tooluniverse, call_tool)[source][source]

Compose function for building tool compatibility graphs.

Parameters:
  • arguments – Dictionary with composition parameters

  • tooluniverse – ToolUniverse instance

  • call_tool – Function to call other tools

Returns:

Dictionary with results and file paths