Giter Club home page Giter Club logo

Comments (5)

MarcellaJP avatar MarcellaJP commented on June 20, 2024 7

We had the same issue after upgrading to the latest version and it's because there are several breaking changes in the new version... Change the import to:

from bunq.sdk.context.bunq_context import ApiContext

In case it might help, other breaking changes that I have encountered are:

  • from bunq.sdk.client import Pagination should now be from bunq import Pagination
  • from bunq.sdk.context import BunqContext should now be from bunq.sdk.context.bunq_context import BunqContext
  • from bunq.sdk.context import ApiContext should now be from bunq.sdk.context.bunq_context import ApiContext
  • from bunq.sdk.context import ApiEnvironmentType should now be from bunq.sdk.context.api_environment_type import ApiEnvironmentType

And whereas before you could initialize the ApiContext with something as

  • api_context = ApiContext(ENVIRONMENT_TYPE, API_KEY, DEVICE_DESCRIPTION)
    It should now be:
  • api_context = ApiContext.create(ENVIRONMENT_TYPE, API_KEY, DEVICE_DESCRIPTION)

Good luck!

from sdk_python.

echoes341 avatar echoes341 commented on June 20, 2024

Thank you @MarcellaJP !

from sdk_python.

tlrh314 avatar tlrh314 commented on June 20, 2024

The changelog is restored in 9d7dbc9, indicating that major refactoring was merged in #117.

@angelomelonas It would be neat if a word of caution would be added to the README and in the description of the 1.13.1 release itself that updating from 1.10.16 to 1.13.1 requires users of this package to implement the fixes as indicated by @MarcellaJP.

from sdk_python.

angelomelonas avatar angelomelonas commented on June 20, 2024

Hi everyone. I apologise for the very late response to this issue.

In order to improve the readability and maintainability of the Python SDK, we performed this refactor. Instead of having functions in very large files, we extracted them into separate files (to match the directory and file structure of the other SDKs). In the process, we also added type hints and other general improvements.

Unfortunately, this leads to the breaking changes @echoes341 and @MarcellaJP mention above. We definitely should have mentioned them in the CHANGELOG.

We have created a new issue which mentions the breaking changes. We will create a new PR that mentions the breaking changes (and the issue) in the CHANGELOG.

from sdk_python.

tlrh314 avatar tlrh314 commented on June 20, 2024

Awesome, thanks @angelomelonas 🔥 🤩

from sdk_python.

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.