application-research / pestuary

A Python SDK to interact with Estuary nodes
MIT License
2 stars 2 forks source link

Add versions to estuary_client #17

Open gmelodie opened 1 year ago

gmelodie commented 1 year ago

As it is, estuary_client has no version numbers, this leads pip to always get the latest version of estuary_client. When trying to force pip to use pestuary v1.0.7 it kept complaining about estuary_client having a wrong variable name.

Traceback (most recent call last):
  File "/home/gmelodie/repos/estuary-helper-bot/estuary_helper.py", line 9, in <module>
    import pestuary
  File "/home/gmelodie/repos/estuary-helper-bot/my-virtualenv/lib/python3.10/site-packages/pestuary.py", line 37, in <module>
    peeringApi = estuary_client.PeeringApi(estuary_client.ApiClient(configuration))
AttributeError: module 'estuary_client' has no attribute 'PeeringApi'. Did you mean: 'PinningApi'?

This happened because although pestuary was downgraded, estuary_client was kept in the "latest version" since there's no versions or version requirements attached to it

gmelodie commented 1 year ago

Oops! It seems there are versions, but I think either estuary_client needs an update or pestuary needs to adapt to it. I got pestuary.content_add() to work with

pestuary==1.0.7
estuary_client==1.0.3