Info¶
info
¶
API information, version, and health-check functions.
check_api(api_version=API_VERSION, server=None)
¶
Test connectivity to the PIP API.
Hits the health-check endpoint and returns the parsed response.
Mirrors pipr::check_api().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_version
|
str
|
API version (only |
API_VERSION
|
server
|
str | None
|
Server target — |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
A dict with the health-check response from the API. |
Raises:
| Type | Description |
|---|---|
PIPConnectionError
|
If the network is unreachable. |
PIPAPIError
|
If the health-check endpoint returns an error. |
Example
import povineq status = povineq.check_api()
Source code in src/povineq/info.py
get_versions(api_version=API_VERSION, server=None, simplify=True, dataframe_type='pandas')
¶
List available data versions.
Mirrors pipr::get_versions().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_version
|
str
|
API version (only |
API_VERSION
|
server
|
str | None
|
Server target. |
None
|
simplify
|
bool
|
If |
True
|
dataframe_type
|
Literal['pandas', 'polars']
|
|
'pandas'
|
Returns:
| Type | Description |
|---|---|
DataFrame | dict | list
|
A DataFrame of available versions when simplify is |
DataFrame | dict | list
|
or the raw dict/list otherwise. |
Example
import povineq df = povineq.get_versions()
Source code in src/povineq/info.py
get_pip_info(api_version=API_VERSION, server=None)
¶
Get metadata about the PIP API.
Mirrors pipr::get_pip_info().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_version
|
str
|
API version (only |
API_VERSION
|
server
|
str | None
|
Server target. |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
A dict with API metadata (version, endpoints, etc.). |
Example
import povineq info = povineq.get_pip_info()