Fetching nexus repository using Python scripts

I am trying to access our in-premise nexus server using python. Currently I am using the nexus3-cli package. Each time I try to login, I get invalid credential error. It is really strange as I can login to the same URL I specify from the web with the same credentials. Is there anything I am missing here?

nexus3-cli isn’t something Sonatype produces, you’ll need to find the author of that software package.

Thanks @mpiggott for your reply. Do you have any recommendations on any python package that I could use to access the nexus?

We provide a REST API, you can find the Swagger/OpenAPI details in the Admin section of the UI under System (iirc)