seedcase-project / seedcase-sprout

Upload your research data to formally structure it for better, more reliable, and easier research.
https://sprout.seedcase-project.org/
MIT License
0 stars 0 forks source link

Transform a small bit of code into a prototype of what we discussed #484

Closed lwjohnst86 closed 2 months ago

martonvago commented 3 months ago

Here's an (emphatically) explorative first pass at creating an app with separate components for the command-line interface, the web interface and the core logic.

martonvago commented 2 months ago

The one thing that I think would be a useful addition here is adding the commands as entry points to the app and implementing a better strategy for setting up Django before CLI commands are executed.

lwjohnst86 commented 2 months ago

Very nice, thanks for the example 🤩 I'm not sure I understand your comment about entry points and the app. I understand entrypoints as things Python provides as accessible to the OS when installing the package, but how does that connect to the app? Wouldn't we use the import sprout.core.module pattern when building the Django app?

martonvago commented 2 months ago

Sorry, I think I used "app" very loosely to mean the package we install. (And I added the CLI commands as entry points anyway, so that's not even relevant.)

lwjohnst86 commented 2 months ago

This helped inform on #479, closing now 🤩