Metadata-Version: 2.4
Name: lakeflow-fxmacrodata
Version: 0.1.0
Summary: FXMacroData custom connector for Databricks Lakeflow Connect
License: MIT License
        
        Copyright (c) 2026 Robert Tidball
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://fxmacrodata.com/?utm_source=pypi&utm_medium=referral&utm_campaign=lakeflow-fxmacrodata&utm_content=homepage
Project-URL: Documentation, https://fxmacrodata.com/documentation/reference?utm_source=pypi&utm_medium=referral&utm_campaign=lakeflow-fxmacrodata&utm_content=package
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fxmacrodata-platform-core==0.1.0
Requires-Dist: lakeflow-community-connectors<1,>=0.1.0
Dynamic: license-file

# FXMacroData for Databricks Lakeflow Connect

Install this wheel as a workspace library alongside the Lakeflow Community Connectors framework. Its public client and platform core dependencies resolve from PyPI. Build the framework wheel from the official repository using Databricks' documented custom-connector procedure; do not assume it is available on PyPI. The framework interface used here is version 0.1.0 at [revision fc69fe7907f640e5283da40d4df0004db73c850b](https://github.com/databrickslabs/lakeflow-community-connectors/tree/fc69fe7907f640e5283da40d4df0004db73c850b). Install the framework wheel and adapter wheel together so the dependency resolver can find the source-built framework. PySpark is supplied by the Databricks runtime. This is a native `LakeflowConnect` implementation and `LakeflowSource` Spark data source.

```python
from databricks.labs.community_connector.sources.fxmacrodata import FXMacroDataDataSource
spark.dataSource.register(FXMacroDataDataSource)
```

For the Add data custom connector tile, use source name `fxmacrodata`, display name `FXMacroData`, the supplied connector specification, and the framework/client/core/connector wheel libraries from a Unity Catalog volume. Follow [Databricks custom connector setup](https://docs.databricks.com/aws/en/ingestion/custom-connectors). A Unity Catalog workspace and compatible Lakeflow runtime are required.

The source archive includes `connector_spec.yaml`. The wheel also installs it
under `share/lakeflow-fxmacrodata` within the library environment, for use when
configuring the custom connector tile. Install framework and adapter wheels in
the same environment so their Databricks package directories are colocated.

Discover the `operation_catalog` table to find all 33 REST operations and 54 MCP tools. Each operation is a table; configure its `arguments` option with a JSON object matching the catalogue schema. For example, table `release_calendar` accepts `{"currency":"usd"}`. Table `indicator_history` accepts `{"currency":"usd","indicator":"policy_rate","value_mode":"source"}`. Keep values and revisions in `record_json` and access, provenance, units and publication evidence in `response_json`.

The connector uses full snapshot refreshes because historical data can revise. It declares snapshot ingestion and returns no incremental offset; it does not infer change-data-capture or deletion events. Offset and calendar cursor histories have explicit page budgets. Set `complete_history=false` to request one page or bounded feed call. An exhausted budget fails the read rather than returning an apparently complete snapshot.

Leave `api_key_env` empty for anonymous access. To use paid access, arrange for the named variable to be available in the ingestion runtime through your workspace's secret-backed environment configuration. Put the variable name in the connection specification; never put the key in arguments, notebooks or connection options. Serverless environments that cannot supply this variable can use anonymous access; provision a compatible secret-backed runtime for protected data.

Anonymous USD data has the API's published delay and history limits. Other datasets require the appropriate subscription. Loading data into your workspace does not grant redistribution rights. This package supplies the custom connector; it is not a Databricks-managed connector or Marketplace listing.
