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

Simplify Import Paths #13

Open
Roman505050 opened this issue Feb 10, 2025 · 2 comments
Open

Simplify Import Paths #13

Roman505050 opened this issue Feb 10, 2025 · 2 comments
Assignees

Comments

@Roman505050
Copy link

I suggest simplifying the import paths in the SDK to improve code readability and the overall developer experience. The current deep module nesting forces users to write verbose import statements that can be streamlined for better maintainability.

A potential improvement is to re-export frequently used classes at a higher module level. For example, in the kucoin_universal_sdk/generate/spot/market package, you could add an __init__.py file with the following content:

from .model_get_part_order_book_req import GetPartOrderBookReqBuilder

This change would allow users to import the class with a shorter path:

from kucoin_universal_sdk.generate.spot.market import GetPartOrderBookReqBuilder

Thank you for considering this enhancement!

@ISAAC-XXYYZZ ISAAC-XXYYZZ self-assigned this Feb 11, 2025
@ISAAC-XXYYZZ
Copy link
Contributor

Thanks for the feedback! This is a great suggestion, and we will include it in the next version update. Stay in touch!

@JUAN98253
Copy link

Listo

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

No branches or pull requests

3 participants