2.2.3.21. 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]
- reset()[source]
Reset to defaults.
- Return type:
None
- wrap_frame(data, **metadata)[source]
Apply the configured dataframe wrapper.
- pycsamt.api.view.config.configure_api_view(**kw)[source]
Configure the global API view backend.
- Parameters:
kw (Any)
- Return type:
None
- pycsamt.api.view.config.reset_api_view()[source]
Reset the global API view backend.
- Return type:
None