Skip to content

- restructured the src directories to have khaya (as a base and util dir) as a subdirectory of kasa#59

Open
PhidLarkson wants to merge 1 commit intomasterfrom
restructure-kasa-khaya
Open

- restructured the src directories to have khaya (as a base and util dir) as a subdirectory of kasa#59
PhidLarkson wants to merge 1 commit intomasterfrom
restructure-kasa-khaya

Conversation

@PhidLarkson
Copy link
Copy Markdown
Contributor

  • refactoring and chages with imports
  • performed tests (all 22 passed with 6 httpx deprecation errors)

@PhidLarkson PhidLarkson requested a review from Lagyamfi May 7, 2025 09:44
…the util dir) as a subdirectory of kasa

- refactoring and changes with imports
- performed tests (all 22 passed with 6 httpx deprecation warnings)
- identified tests fails a throws "Too Many Requests" error after running tests too closely
@PhidLarkson PhidLarkson force-pushed the restructure-kasa-khaya branch from b12fa22 to 547dc44 Compare May 7, 2025 10:00
@PhidLarkson
Copy link
Copy Markdown
Contributor Author

image
after running tests too closely this happens, also seen similar with making consecutive batch requests when using the library locally

Copy link
Copy Markdown
Member

@Lagyamfi Lagyamfi left a comment

Choose a reason for hiding this comment

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

Hey Prince, thanks for the review.

The idea is that khaya is meant for dealing with the api specifically. All other tools we will develop that dont involve the api will stay under kasa.
What is your reasoning behind moving the khaya directory under the kasa folder?

@PhidLarkson
Copy link
Copy Markdown
Contributor Author

Hey Prince, thanks for the review.

The idea is that khaya is meant for dealing with the api specifically. All other tools we will develop that dont involve the api will stay under kasa. What is your reasoning behind moving the khaya directory under the kasa folder?

So when installing the library locally for improvement and testing I was finding it hard to access khaya, apparentlly from earlier discussions I understood khaya to be utils, so I renamed that for kasa to be the base with api service ojects, khaya remains the interface for the entire API use and then khaya directory carries the extras like preprocessing and batch processing.

Then afterwards it was easier to use and call, effected that change in the tests as well

@Lagyamfi
Copy link
Copy Markdown
Member

Lagyamfi commented May 8, 2025

@PhidLarkson So I think we will keep all preprocessing scripts or tools as part of kasa meaning any additional modules that we include in the library will be able to use it. And Khaya is an example of one of those modules that uses the utility tools in khaya. So in the end all the preprocessing and batching scripts should be moved into kasa and imported into khaya.

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.

2 participants