Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Modernize repo and code #26

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

Conversation

alfred82santa
Copy link

@alfred82santa alfred82santa commented Feb 25, 2025

🎩 What is the goal?

  • Refactor all SDK.
  • Sync and async drivers.
  • More tests.
  • Started a new cli utility.
  • Refactor repo stuff.

📝 Notes

It changes the exposed API using LatchSDK classes, but you could use the Latch classes in order to get an API similar the old one.

✅ Checklist

  • Solution implemented
  • Tests completed
  • Documentation written
  • QA passed

@alfred82santa alfred82santa changed the title Chore/modernize repo chore: Modernize repo and code Feb 26, 2025
"""

def __init__(self, data: "str | dict[str, Any]"):
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One line comment instead of three lines?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you talking about docstring?

params = {"wallet": web3_account, "signature": web3_signature}
return self._prepare_http("POST", path, None, params)

def pair(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separaría los métodos que se ofrecen de interfaz a los desarrolladores a su propio fichero:
pair, unpair, status, operation_status...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No entiendo que quieres decir. ¿Cada operación en su propio fichero? ¿o un fichero por conjunto de operaciones?

@rpstid
Copy link
Member

rpstid commented Feb 27, 2025

Añadiría en cada fichero de código comentarios sobre la funcionalidad que implementan para hacer la vida más sencilla a futuros mantenedores

@alfred82santa
Copy link
Author

latchsdkforpython.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants