Code Monkey home page Code Monkey logo

Comments (5)

desertaxle avatar desertaxle commented on May 25, 2024 1

I think strongly typed Dataclasses are preferable for the DX as long as the type they're representing is relatively stable.

from prefect-aws.

desertaxle avatar desertaxle commented on May 25, 2024

Sounds like an excellent addition @davzucky and I'd be happy to review a PR for this contribution! I would recommend adding an attribute to the AwsCredentials class that can be used to pass additional configuration when creating a boto3 session. Let me know if you need any help!

from prefect-aws.

davzucky avatar davzucky commented on May 25, 2024

I'm debating if that extra option should be with the AwsCredential or not. The main point is that AwsCredential are used to create the session, however, these extra params would be used for the client initialization. Should it be another input to the functions?

from prefect-aws.

desertaxle avatar desertaxle commented on May 25, 2024

Yeah, I think it should be another input the the S3 tasks. I wanted to be able to accept those additional options one place so that we wouldn't have to duplicate those options across all the S3 tasks, but since these are client level options it makes more sense for them to be on the tasks.

from prefect-aws.

davzucky avatar davzucky commented on May 25, 2024

ok, So we are on the same page. Let me prepare that. Do you prefer a strongly type dataclass with all the params, or just taking a generic dict as kwargs_s3 ?

from prefect-aws.

Related Issues (20)

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.