pynetdicom.sop_class.SOPClass

class pynetdicom.sop_class.SOPClass(val)[source]

Extend UID to include the corresponding Service Class.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__()

Initialize self.

capitalize()

Return a capitalized version of S, i.e. make the first character have upper case and the rest lower case.

casefold()

Return a version of S suitable for caseless comparisons.

center(width[, fillchar])

Return S centered in a string of length width.

count(sub[, start[, end]])

Return the number of non-overlapping occurrences of substring sub in string S[start:end].

encode([encoding, errors])

Encode S using the codec registered for encoding.

endswith(suffix[, start[, end]])

Return True if S ends with the specified suffix, False otherwise.

expandtabs([tabsize])

Return a copy of S where all tab characters are expanded using spaces.

find(sub[, start[, end]])

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].

format(*args, **kwargs)

Return a formatted version of S, using substitutions from args and kwargs.

format_map(mapping)

Return a formatted version of S, using substitutions from mapping.

index(sub[, start[, end]])

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].

isalnum()

Return True if all characters in S are alphanumeric and there is at least one character in S, False otherwise.

isalpha()

Return True if all characters in S are alphabetic and there is at least one character in S, False otherwise.

isdecimal()

Return True if there are only decimal characters in S, False otherwise.

isdigit()

Return True if all characters in S are digits and there is at least one character in S, False otherwise.

isidentifier()

Return True if S is a valid identifier according to the language definition.

islower()

Return True if all cased characters in S are lowercase and there is at least one cased character in S, False otherwise.

isnumeric()

Return True if there are only numeric characters in S, False otherwise.

isprintable()

Return True if all characters in S are considered printable in repr() or S is empty, False otherwise.

isspace()

Return True if all characters in S are whitespace and there is at least one character in S, False otherwise.

istitle()

Return True if S is a titlecased string and there is at least one character in S, i.e. upper- and titlecase characters may only follow uncased characters and lowercase characters only cased ones.

isupper()

Return True if all cased characters in S are uppercase and there is at least one cased character in S, False otherwise.

join(iterable)

Return a string which is the concatenation of the strings in the iterable.

ljust(width[, fillchar])

Return S left-justified in a Unicode string of length width.

lower()

Return a copy of the string S converted to lowercase.

lstrip([chars])

Return a copy of the string S with leading whitespace removed.

maketrans(x[, y, z])

Return a translation table usable for str.translate().

partition(sep)

Search for the separator sep in S, and return the part before it, the separator itself, and the part after it.

replace(old, new[, count])

Return a copy of S with all occurrences of substring old replaced by new.

rfind(sub[, start[, end]])

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].

rindex(sub[, start[, end]])

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].

rjust(width[, fillchar])

Return S right-justified in a string of length width.

rpartition(sep)

Search for the separator sep in S, starting at the end of S, and return the part before it, the separator itself, and the part after it.

rsplit([sep, maxsplit])

Return a list of the words in S, using sep as the delimiter string, starting at the end of the string and working to the front.

rstrip([chars])

Return a copy of the string S with trailing whitespace removed.

split([sep, maxsplit])

Return a list of the words in S, using sep as the delimiter string.

splitlines([keepends])

Return a list of the lines in S, breaking at line boundaries.

startswith(prefix[, start[, end]])

Return True if S starts with the specified prefix, False otherwise.

strip([chars])

Return a copy of the string S with leading and trailing whitespace removed.

swapcase()

Return a copy of S with uppercase characters converted to lowercase and vice versa.

title()

Return a titlecased version of S, i.e. words start with title case characters, all remaining cased characters have lower case.

translate(table)

Return a copy of the string S in which each character has been mapped through the given translation table.

upper()

Return a copy of S converted to uppercase.

zfill(width)

Pad a numeric string S with zeros on the left, to fill a field of the specified width.

Attributes

info

Return the UID info from the UID dictionary.

is_compressed

Return True if a compressed transfer syntax UID.

is_deflated

Return True if a deflated transfer syntax UID.

is_encapsulated

Return True if an encasulated transfer syntax UID.

is_implicit_VR

Return True if an implicit VR transfer syntax UID.

is_little_endian

Return True if a little endian transfer syntax UID.

is_private

Return True if the UID isn’t an officially registered DICOM UID.

is_retired

Return True if the UID is retired, False otherwise or if private.

is_transfer_syntax

Return True if a transfer syntax UID.

is_valid

Return True if self is a valid UID, False otherwise.

keyword

Return the UID keyword from the UID dictionary.

name

Return the UID name from the UID dictionary.

service_class

Return the corresponding Service Class implementation.

type

Return the UID type from the UID dictionary.

property service_class

Return the corresponding Service Class implementation.