Git Product home page Git Product logo

source-attio's Introduction

Attio Source

This is forked from the [Attio branch] of Airbyte's monorepo. Because it's not a strict Git fork (to avoid mirroring the entire monorepo) we'll need to keep it synced manually.

Changelog since fork

Local development

Minimum Python version required = 3.9.0

Running Locally

Install

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip intstall '.[tests]'

Note: If you are adding new dependencies, put them in setup.py, not requirements.txt.

Credentials

Credentials are managed via a JSON file.

mkdir secrets
cp integration_tests/sample_config.json secrets/config.json

And fill in in the required credentials.

Running

Set up and validate credentials:

python main.py spec
python main.py check --config secrets/config.json
python main.py discover --config secrets/config.json

Perform extraction and pipe to a file:

cp integration_tests/configured_catalog.json my_configured_catalog.json

Edit the configured catalog to match the streams discovered above.

python main.py read --config secrets/config.json --catalog my_configured_catalog.json > extraction_output.json

Running in Meltano Locally

Build the Docker image:

docker build -t luabase/source-notion .

And then update meltano.yaml in the meltano-extract repo to point to the local image.

Testing

Unit Tests

python -m pytest unit_tests

Integration Tests

Place custom tests inside integration_tests/ folder, then, from the connector root, run:

python -m pytest integration_tests

Acceptance Tests

Acceptance tests are used by Airbyte to test that the source conforms to standard functionality.

Customize acceptance-test-config.yml file to configure tests. See Connector Acceptance Tests for more information.

If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.

To run your integration tests with acceptance tests, from the connector root, run

docker build . -t luabase/source-notion:dev \
&& python -m pytest -p connector_acceptance_test.plugin

source-attio's People

Contributors

dutycycle avatar

Watchers

Jichao Sun avatar

Forkers

dwl285

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.