Skip to content

18 support for metadata flags - #19

Merged
thetrotfreak merged 5 commits into
mainfrom
18-support-for-metadata-flags
Jan 26, 2026
Merged

18 support for metadata flags#19
thetrotfreak merged 5 commits into
mainfrom
18-support-for-metadata-flags

Conversation

@thetrotfreak

Copy link
Copy Markdown
Owner

Closes #18 (partially)

To allow for the metadata flags to participate in the cache key of the
lru cache, there's now only 1 *thing* that does the actual api call.

For example, we can add the flags and chain a method call, which will
merge the flags & the arguments from the chained method call.

The added `enum.StrEnum` is not in use for now, since typing strings
directly without namespacing them behind an attribute access is less
friction for library consumption. But using it will aid in test cases
and not having to maintain a type & a corresponding lookup.

Signed-off-by: Bivas Kumar <thetrotfreak@yahoo.com>
Skips the smoke test since it actually API calls (done before pushing to
pypi).

Signed-off-by: Bivas Kumar <thetrotfreak@yahoo.com>
In smoke test, the test case that tests import is floated to top, since
it's logically wrong to place it after other test cases! (as they'd
import datamuse beforehand).

Signed-off-by: Bivas Kumar <thetrotfreak@yahoo.com>
@thetrotfreak thetrotfreak self-assigned this Jan 26, 2026
@thetrotfreak thetrotfreak added the documentation Improvements or additions to documentation label Jan 26, 2026
@thetrotfreak thetrotfreak linked an issue Jan 26, 2026 that may be closed by this pull request
@thetrotfreak thetrotfreak added the enhancement New feature or request label Jan 26, 2026
Having that in between the bulleted examples makes up for a bad
indentation and look.

Fixes typo in docs#examples.

Signed-off-by: Bivas Kumar <thetrotfreak@yahoo.com>
To 3, adding support for metadata flags.

Signed-off-by: Bivas Kumar <thetrotfreak@yahoo.com>
@thetrotfreak
thetrotfreak force-pushed the 18-support-for-metadata-flags branch from b77a48a to 73db279 Compare January 26, 2026 15:34
@thetrotfreak
thetrotfreak merged commit 4c5ffca into main Jan 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support for metadata flags

1 participant