Comments (8)
@orbeckst Maybe you are interested in this too. I didn't do a lot of testing but it should allow to write bash code like this
for folder in $(dtr search simulations --tags GB3 --categories gromacs:2016.4)
do
# run some GROMACS functions or other things.
done
from datreant.cli.
@kain88-de if this is finished can we not just include it into the main package?
from datreant.cli.
Nothing speaking against it but I'm not using click so this would mean adding another dependency. I see nothing against having this as a stand-alone package for some time and using it to see if we need to change it.
from datreant.cli.
Does datreant.cli
still thinks that datreant has namespace packages – is this the problem?
from datreant.cli.
Nope it doesn't. We can also use a hyphen instead of the dot so name it datreant-cli
. I'm not aware the dot is a problem but worth a check.
from datreant.cli.
Unless something has changed in the python import system last time I researched it (>3 years ago), the dot would be a problem for importing the module. If you try to import datreant.cli
and the import system finds the datreant
package first, it won't find a cli
module and would give on ImportError
. A namespace package avoids this by being an umbrella in which nothing really lives but under which a bunch of modules are available.
See my comment in #4: let's make the CLI interface part of the datreant
package itself.
from datreant.cli.
yup replacing the dot with an underscore worked.
So this can be tested now. There will be bugs. I have not done any testing yet. I still have to update all of my projects to actually use the new datreant version.
from datreant.cli.
See 7e19586
from datreant.cli.
Related Issues (8)
- add categorie filter HOT 1
- add tests HOT 2
- find treants of other packages. HOT 2
- Merge into core? HOT 6
- Prompt for category key/value pairs HOT 1
- Improve usability of the CLI HOT 5
- Core functions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datreant.cli.