[Rpm-maint] [rpm-software-management/rpm] Add real-life examples of Python RPM (PR #3177)
Jakub Kadlčík
notifications at github.com
Sat Aug 3 17:43:18 UTC 2024
Once again, sorry for the delay.
@pmatilai I think I addressed all your comments. Can you please take a look again?
> If "real-world" examples are the goal, mightn't it be better to mine actual real-world code that uses the Python API for examples?
I am not aware of any reasonably well-known higher-level tools that use RPM Python API to query, install, and erase packages. I know a few minor tools (some of them mine) that sprinkle some RPM Python API usage here and there but nothing that I'd safely recommend as an example.
It may be a good idea to link such tools in the documentation (Let me know your stance on this, I will be submitting a documentation PR once this one gets merged).
@pmatilai already addressed DNF and its libsolv usage but I'd maybe disagree in general.
I went for example Python implementations of commonly used `rpm` commands because they are quite easy to understand, it is IMHO a reasonable expectation that Python RPM API users know `rpm` commands, and also devs will likely compare values they get from the API with whatever `rpm` prints. Or see some `rpm` output and say to themself "how the heck do I get this value via API?". At least I do that often.
In the documentation, I can use a different terminology than "real-world" if it is deceiving :-)
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3177#issuecomment-2267083556
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3177/c2267083556 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240803/7675cad5/attachment.html>
More information about the Rpm-maint
mailing list