pycsamt.api.view.config#
Global configuration for pyCSAMT API view wrappers.
Functions
|
Configure the global API view backend. |
Reset the global API view backend. |
Classes
Package-wide policy for dataframe-like public API views. |
- class pycsamt.api.view.config.APIViewConfig[source]#
Bases:
objectPackage-wide policy for dataframe-like public API views.
The backend controls what
pycsamt.api.view.wrap_frame()returns:"pycsamt"/True: return the built-inAPIFrame."pandas"/False: return the original dataframe-like object.callable: call
wrapper(data, **metadata)and return its result.
- context(**kw)[source]#
Temporarily override API view settings.
- Parameters:
kw (Any)
- Return type:
Generator[APIViewConfig, None, None]