Giter Club home page Giter Club logo

prefect-hightouch's People

Contributors

ahuang11 avatar chrisguidry avatar dependabot[bot] avatar desertaxle avatar prefect-collection-synchronizer[bot] avatar urimandujano avatar zzstoatzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

prefect-hightouch's Issues

Add `trigger_hightouch_sync_and_wait_for_completion` flow

Create a flow that triggers a Hightouch sync and waits for it to reach a terminal state.

The flow should accept:

  • a HightouchCredentials block
  • a sync ID
  • a flag to specify if a full resync should be performed
  • an optional number of seconds to wait for completion
  • an optional poll frequency

The flow should return the final details of the final sync run when successful. The flow should raise if the sync run was unsuccessful for any reason.

Failing to Register Credentials Block

prefect block register -m prefect_hightouch.credentials
Warning!  Failed to load collection 'prefect_hightouch': ModuleNotFoundError: No module named 'attr'
Unable to load prefect_hightouch.credentials. Please make sure the module is installed in your current environment

I've verified the package is installed in my conda environment.

(hightouch_sfdc_syncs) dylanbhughes@Dylans-MacBook-Pro-2 ~/d/f/s/p/c/hightouch_sfdc_syncs> prefect version
Warning!  Failed to load collection 'prefect_hightouch': ModuleNotFoundError: No module named 'attr'
Version:             2.7.1
API version:         0.8.3
Python version:      3.10.0
Git commit:          33f7de50
Built:               Thu, Dec 8, 2022 4:09 PM
OS/Arch:             darwin/arm64
Profile:             cloud2_dw
Server type:         cloud

Weird that the warning is being returned in the prefect version call as well?

Add `execute_api_call` task

Create a task that is capable of performing a generic API call against the Hightouch API. The task should consume a HightouchCredentials block along with the necessary info to perform an API call (HTTP method, URI, body, params, etc.). The task should return the body of the API response.

Add `HightouchClient`

Add a HightouchClient class that is responsible for encapsulating the logic around interacting with the Hightouch API. The client should handle authentication and session management with the API. There should be one public method that can be used to execute any generic call to the Hightouch API. Each other public method should be an abstraction around a given API route and have parameters matching what is expected for the route/body/params required for the given API route.

For the issue, only the method to call an arbitrary endpoint in the Hightouch API is necessary.

Add `HightouchCredentials` block

Add a block that can store a Hightouch API key. The block should also expose a get_client method that returns an authenticated Hightouch client that can be used to interact with the Hightouch API.

Package not in PyPi

Hello,
Contrary to what's suggested in the Readme, it looks like this package is not in PyPi. Is it still being developed? Do you have plans to release it? And until it's released, can the V1 tasks be used as a substitute?
Thanks!

Edit: Turns out this package is just a boilerplate… A "disclaimer" somewhere to highlight that it's not useable yet would be useful!

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.