-
Notifications
You must be signed in to change notification settings - Fork 24
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
Accessing internal functions #626
Comments
Hello,
Thanks for your interest in the tool!
If you use cli_get_data function in the somef_cli class you will obtain a
an in-memory dictionary returned by the tool (no files are
stored). Is this what you are aiming for?
|
Hello, Thank you for the answer. |
For ttl you have to use |
If you have the token correctly configured, you should be able to do several thousands repositories per hour. It looks like the error is because the zip file of that repo is/was not available when you tried. I recommend retrying. i just did now and it works:
You'll probably see some errors for this repo, but it works fine in the end. |
Thank you, the token was configured correctly, but the error was because of the scope of the token. I was using a token with not sufficient permissions. |
I see. We should refine the errors that we get when the token is incorrect. I guess another issue to open :( |
Hello @dgarijo ,
We have been exploring ways to enhance the capabilities of our tool, and we believe that utilizing Somef's internal functions could help us in this way.
Our purpose is to extract and export more comprehensive metadata with the help of Somef. Currently, we are able to obtain the results from Somef in JSON files, but for further processing within our tool, we require access to the extracted metadata from Somef in the form of Python dictionaries.
We tried to modify the Somef source code to get the result from functions like "save_codemeta_output ", which export CodeMeta format of Metadata, in a form of Python dictionary. However, we recognize that accessing the functions, which export metadata, directly would be a more ideal solution, and give us the possibility to use all three main output formats in form of python dictionaries, not stored in JSON files. Could you share any advice on solving this problem?
The text was updated successfully, but these errors were encountered: