Skip to content
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

Expand the C/C++ API to allow access to info #985

Closed
runette opened this issue Jun 5, 2021 · 4 comments
Closed

Expand the C/C++ API to allow access to info #985

runette opened this issue Jun 5, 2021 · 4 comments
Labels
type::feature-request New feature proposal

Comments

@runette
Copy link

runette commented Jun 5, 2021

I have an application that needs to get the list of installed Conda packages. Currently, it uses the Conda CLI and screen scrapping.

When I heard about Mamba and that it had a C API I thought that this might be a better solution.

However - the current C++ and C APIs allow install and list etc to be run but the output is hardcoded to the console (as far as I can see).

It would be good if there were additional calls added to the C API that allow the string response to be returned by the API as opposed to piped to the std::cout

@adriendelsalle adriendelsalle added the type::feature-request New feature proposal label Jun 7, 2021
@adriendelsalle
Copy link
Member

Hi @runette
Thanks for opening this issue!

Could you please advertise a bit your use case ? I guess you would like to parse/re-use information so you may prefer getting those using json output activated?

@adriendelsalle adriendelsalle changed the title Enhancement :: Expand the C API to allow access to info Expand the C/C++ API to allow access to info Jun 7, 2021
@runette
Copy link
Author

runette commented Jun 7, 2021 via email

@wolfv
Copy link
Member

wolfv commented Jun 7, 2021

Hi @runette that's an interesting use-case. In fact, we've been talking with the FreeCAD and QGIS developers about using mamba / libmamba as a plugin manager. Now I am sure Unity already has something, but nevertheless it could be interesting for your use-case.

Relevant links:

I am not entirely sure that JSON is the best option as we could just as well expose native C or C++ data structures like lists or arrays of structs (dataframes).

Anyways, JSON might be easier in terms of memory management.

@runette
Copy link
Author

runette commented Jun 7, 2021 via email

@jonashaag jonashaag closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature-request New feature proposal
Projects
None yet
Development

No branches or pull requests

4 participants