module documentation
Undocumented
Function | ensure |
Undocumented |
Function | get |
Return the given string converted to a string that can be used for a clean filename. Stolen from Django, I think. |
Function | get |
Parse a version string like <major>.<minor>.<micro> into a tuple of ints. |
Function | is |
Undocumented |
Function | open |
Return a file-like object opened for text reading of the resource. |
Function | parse |
Undocumented |
Function | parse |
Undocumented |
Function | perform |
Wrapper around executable and a list of objects. Will execute the callable on each object of the list. Parameters: |
Function | read |
Return the decoded string of the resource. |
Function | setup |
Undocumented |
Function | strip |
Undocumented |
Variable | _tag |
Undocumented |
Return the given string converted to a string that can be used for a clean filename. Stolen from Django, I think.
def open_text(package:
str
, resource: str
, encoding: str
= 'utf-8', errors: str
= 'strict') -> TextIO
:
(source)
¶
Return a file-like object opened for text reading of the resource.
def perform(func:
Callable[ ..., Any]
, elements: Iterable[ Any]
, func_args: Optional[ Dict[ str, Any]]
= None, asynch: bool
= False, workers: Optional[ int]
= None) -> List[ Any]
:
(source)
¶
Wrapper around executable and a list of objects. Will execute the callable on each object of the list. Parameters:
func
: callable stateless function. func is going to be called likefunc(item, **func_args)
on all items in data.elements
: Perform the action on the elements in the list.func_args
: dict that will be passed by default to func in all calls.asynch
: execute the task asynchronouslyworkers
: mandatory if asynch is true.
Returns a list of returned results
def read_text(package:
str
, resource: str
, encoding: str
= 'utf-8', errors: str
= 'strict') -> str
:
(source)
¶
Return the decoded string of the resource.
The decoding-related arguments have the same semantics as those of bytes.decode().