Skip to main content

Singer target for Firebase, built with the Meltano Singer SDK.

Project description

target-firebase

target-firebase is a Singer target for Firebase.

Build with the Meltano Target SDK.

Installation

Install from PyPI:

uv tool install target-firebase

Install from GitHub:

uv tool install git+https://github.com/ORG_NAME/target-firebase.git@main

Configuration

Accepted Config Options

Setting Required Default Description
credential_file False None The path to the Google Cloud Firestore credential file. If none is provided, Google Application Default Credentials are used.
credential False None The Google Cloud Firestore credential object. If none is provided, Google Application Default Credentials are used.
credential.type True service_account The type of credential.
credential.client_email True None The service account's email.
credential.token_uri False https://oauth2.googleapis.com/token The OAuth 2.0 Token URI.
credential.project_id True None Project ID associated with the service account credential.
credential.universe_domain False None The universe domain. The default universe domain is googleapis.com. For default value self signed jwt is used for token refresh.
credential.trust_boundary False None String representation of trust boundary meta.
firebase_app False [DEFAULT] The name of the Firebase app to use.
database_id False None The database ID of the Google Cloud Firestore database to be used. Defaults to the default Firestore database ID if not specified or an empty string.
add_record_metadata False None Whether to add metadata fields to records.
load_method False TargetLoadMethods.APPEND_ONLY The method to use when loading data into the destination. append-only will always write all input records whether that records already exists or not. upsert will update existing records and insert new records. overwrite will delete all existing records and insert all input records.
batch_size_rows False None Maximum number of rows in each batch.
validate_records False True Whether to validate the schema of the incoming streams.
stream_maps False None Config object for stream maps capability. For more information check out Stream Maps.
stream_maps.else False None Currently, only setting this to __NULL__ is supported. This will remove all other streams.
stream_map_config False None User-defined config values to be used within map expressions.
faker_config False None Config for the Faker instance variable fake used within map expressions. Only applicable if the plugin specifies faker as an additional dependency (through the singer-sdk faker extra or directly).
faker_config.seed False None Value to seed the Faker generator for deterministic output: https://faker.readthedocs.io/en/master/#seeding-the-generator
faker_config.locale False None One or more LCID locale strings to produce localized output for: https://faker.readthedocs.io/en/master/#localization
flattening_enabled False None 'True' to enable schema flattening and automatically expand nested properties.
flattening_max_depth False None The max depth to flatten schemas.

A full list of supported settings and capabilities for this target is available by running:

target-firebase --about

Configure using environment variables

This Singer target will automatically import any environment variables within the working directory's .env if the --config=ENV is provided, such that config values will be considered if a matching environment variable is set either in the terminal context or in the .env file.

Usage

You can easily run target-firebase by itself or in a pipeline using Meltano.

Executing the Target Directly

target-firebase --version
target-firebase --help
# Test using the "Smoke Test" tap:
tap-smoke-test | target-firebase --config /path/to/target-firebase-config.json

Developer Resources

Follow these instructions to contribute to this project.

Initialize your Development Environment

curl -LsSf https://astral.sh/uv/install.sh | sh  # or see https://docs.astral.sh/uv/getting-started/installation/
uv sync

Create and Run Tests

Create tests within the tests subfolder and then run:

uv run pytest

You can also test the target-firebase CLI interface directly using uv run:

uv run target-firebase --help

Testing with Meltano

Note: This tap will work in any Singer environment and does not require Meltano. Examples here are for convenience and to streamline end-to-end orchestration scenarios.

Use Meltano to run an EL pipeline:

# Test invocation:
uvx meltano invoke tap-firebase --version

# OR run a test `elt` pipeline:
uvx meltano run tap-firebase target-jsonl

SDK Dev Guide

See the dev guide for more instructions on how to use the Meltano Singer SDK to develop your own Singer taps and targets.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

target_firebase-0.0.1a6.tar.gz (116.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

target_firebase-0.0.1a6-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file target_firebase-0.0.1a6.tar.gz.

File metadata

  • Download URL: target_firebase-0.0.1a6.tar.gz
  • Upload date:
  • Size: 116.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for target_firebase-0.0.1a6.tar.gz
Algorithm Hash digest
SHA256 de9215ab7a89d0262ae1dc23bb5780bf16ce19ba48a0475f95e91574d9a7d8e1
MD5 e9697ee58b4635d57dcd2958e178d318
BLAKE2b-256 12d06c36d6affa0e1f91f23dab1b75e63f13dabee56858208008ecd834e493a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for target_firebase-0.0.1a6.tar.gz:

Publisher: build.yml on reservoir-data/target-firebase

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file target_firebase-0.0.1a6-py3-none-any.whl.

File metadata

File hashes

Hashes for target_firebase-0.0.1a6-py3-none-any.whl
Algorithm Hash digest
SHA256 599288ff5d665af8b446a54bae6e318c46f349fc2118c707707296bf7911715a
MD5 a64dcfe88c06c693d7b82783109820ca
BLAKE2b-256 9763f49331c3a437fe679594cbdc6a076d07006b11a57ec432592b19be8f0b61

See more details on using hashes here.

Provenance

The following attestation bundles were made for target_firebase-0.0.1a6-py3-none-any.whl:

Publisher: build.yml on reservoir-data/target-firebase

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page