-
Notifications
You must be signed in to change notification settings - Fork 9
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
AttributeDict centralization #39
Comments
Yeah, this has been on my radar for awhile. long term I think the answer is that AttributeDict will reside in models, and both looper and pypiper will import it from models. So this will happen at the models/looper division. |
@vreuter what do you think of making AttributeDIct a separate project and putting it on pypi? Actually, looks there someone else has already done something similar... https://pypi.org/project/attributedict/ And here's a more popular, older project that does the same thing: https://pypi.org/project/attrdict/ any chance to we can use those...? |
related to #68 |
Definitely in favor of centralizing. I think the implementation used in this project may have slightly different default behavior regarding things like the "identity" return for missing attributes (since, e.g., requesting Also fine with moving to an external implementation like you suggest. There are some custom behaviors like the identity thing just mentioned, and probably some others like path expansions that are automatic for us that we'd need to make accommodating changes for, or extend the functionality offered by an external project's data types. |
Closed in favor of #122 |
There are (behaviorally) different versions of
AttributeDict
inlooper.models
and here inpypiper
. Since they're meant to accomplish the same things and be used in similar ways, it would be great to share a single implementation. Maybe this will be simplified with the migration of some of the corelooper
classes to a more general repository.The text was updated successfully, but these errors were encountered: