Skip to content

fix(python-sdk): rename Suibets to SuiBets for cross-SDK consistency#774

Open
PrettyFox0 wants to merge 1 commit into
pmxt-dev:mainfrom
PrettyFox0:fix/python-sdk-suibets-casing
Open

fix(python-sdk): rename Suibets to SuiBets for cross-SDK consistency#774
PrettyFox0 wants to merge 1 commit into
pmxt-dev:mainfrom
PrettyFox0:fix/python-sdk-suibets-casing

Conversation

@PrettyFox0
Copy link
Copy Markdown

Closes #773

Summary

The TypeScript SDK and core engine both use SuiBets as the canonical class name. The Python SDK was the odd one out with the lowercase-b Suibets, breaking exchange-agnostic naming consistency across SDKs.

Changes

  • sdks/python/pmxt/_exchanges.py: rename class SuibetsSuiBets; keep Suibets = SuiBets deprecation alias so existing callers don't break.
  • sdks/python/pmxt/__init__.py: import and export both names; mark Suibets in __all__ as deprecated alias.

The exchange_name="suibets" registration string is unchanged (matches the issue's "registered identifier" note).

Test plan

  • `python -m py_compile sdks/python/pmxt/_exchanges.py sdks/python/pmxt/init.py` passes
  • `from pmxt import SuiBets` works for new callers
  • `from pmxt import Suibets` still works for existing callers

Closes pmxt-dev#773

The TypeScript SDK and core engine both use 'SuiBets' as the canonical
class name. The Python SDK was the only place still using the lowercase-b
'Suibets', breaking exchange-agnostic naming consistency.

- Rename class to SuiBets in _exchanges.py
- Update __init__.py export and __all__
- Keep a 'Suibets = SuiBets' deprecation alias so existing callers don't break
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.

[core-sdk-gap] Python SDK exports exchange class as Suibets instead of SuiBets

1 participant