Skip to main content

AirbyteLib

Project description

airbyte-lib

airbyte-lib is a library that allows to run Airbyte syncs embedded into any Python application, without the need to run Airbyte server.

Development

  • Make sure Poetry is installed.
  • Run poetry install
  • For examples, check out the examples folder. They can be run via poetry run python examples/<example file>
  • Unit tests and type checks can be run via poetry run pytest

Release

  • In your PR:
    • Bump the version in pyproject.toml
    • Add a changelog entry to the table below
  • Once the PR is merged, go to Github and trigger the Publish AirbyteLib Manually workflow. This will publish the new version to PyPI.

Versioning

Versioning follows Semantic Versioning. For new features, bump the minor version. For bug fixes, bump the patch version. For pre-releases, append dev.N to the version. For example, 0.1.0dev.1 is the first pre-release of the 0.1.0 version.

Documentation

Regular documentation lives in the /docs folder. Based on the doc strings of public methods, we generate API documentation using pdoc. To generate the documentation, run poetry run generate-docs. The documentation will be generated in the docs/generate folder. This needs to be done manually when changing the public interface of the library.

A unit test validates the documentation is up to date.

Validating source connectors

To validate a source connector for compliance, the airbyte-lib-validate-source script can be used. It can be used like this:

airbyte-lib-validate-source —connector-dir . -—sample-config secrets/config.json

The script will install the python package in the provided directory, and run the connector against the provided config. The config should be a valid JSON file, with the same structure as the one that would be provided to the connector in Airbyte. The script will exit with a non-zero exit code if the connector fails to run.

For a more lightweight check, the --validate-install-only flag can be used. This will only check that the connector can be installed and returns a spec, no sample config required.

Changelog

Version PR Description
0.1.0dev.2 #34111 Initial publish - add publish workflow

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

airbyte_lib-0.1.0.dev2.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

airbyte_lib-0.1.0.dev2-py3-none-any.whl (43.8 kB view details)

Uploaded Python 3

File details

Details for the file airbyte_lib-0.1.0.dev2.tar.gz.

File metadata

  • Download URL: airbyte_lib-0.1.0.dev2.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/5.10.205-195.804.amzn2.x86_64

File hashes

Hashes for airbyte_lib-0.1.0.dev2.tar.gz
Algorithm Hash digest
SHA256 81bfa4ba84a2da8fa7e41237dbc7579fd5020758136c7323807142fdbf5b2ea5
MD5 f04e5ad5247c67ac0e6d2459d91e905b
BLAKE2b-256 0f87bea55e92b91acf117dbc6661beca89343f31dfded462c8957b9a651d52a8

See more details on using hashes here.

File details

Details for the file airbyte_lib-0.1.0.dev2-py3-none-any.whl.

File metadata

  • Download URL: airbyte_lib-0.1.0.dev2-py3-none-any.whl
  • Upload date:
  • Size: 43.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/5.10.205-195.804.amzn2.x86_64

File hashes

Hashes for airbyte_lib-0.1.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 8e7e043d9524d101837d1754f6b77a9c88551107cc338f3aab16e1eaf89d2cdc
MD5 36fe3340fb248da5460ae11d022b30af
BLAKE2b-256 b9e6b2101e07a1256f7524af55972fa33f71f3d55c93e0f6d6f6348f1bacaf49

See more details on using hashes here.

Supported by

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