Skip to content

Comments

Al-705 Assemblyline Client Wrapper#56

Open
cccs-ach wants to merge 25 commits intomasterfrom
AL-705
Open

Al-705 Assemblyline Client Wrapper#56
cccs-ach wants to merge 25 commits intomasterfrom
AL-705

Conversation

@cccs-ach
Copy link

@cccs-ach cccs-ach commented Nov 26, 2024

The goal of the client wrapper is to simplify API navigation by providing a client that can be interacted with as an object, using its methods directly.

Instead of returning a dictionary when a query is executed via the search module, a wrapper class is returned. This wrapper class inherits from a dictionary, allowing us to extend its functionality and add additional features to the results returned by queries

Example:

al_client.search.file("<query>")['items'][idx].download()

Additional functionality can be added in the future.

al_client.search.file("<query>")['items'][idx].get_extracted_files() -> Returns a list of FileWrapper

@gdesmar gdesmar requested review from cccs-jh and cccs-rs December 18, 2024 19:34
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.

1 participant