# Fetching nexus repository using Python scripts

**URL:** https://community.sonatype.com/t/fetching-nexus-repository-using-python-scripts/10083
**Category:** Sonatype Nexus Repository
**Tags:** nexus-repository
**Created:** [February 8, 2023, 9:20am UTC](https://community.sonatype.com/t/fetching-nexus-repository-using-python-scripts/10083 "2023-02-08T09:20:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![premsagar.kapikad-external](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@premsagar.kapikad-external](https://community.sonatype.com/u/premsagar.kapikad-external)
#### Post date: [February 8, 2023, 9:20am UTC](https://community.sonatype.com/t/fetching-nexus-repository-using-python-scripts/10083/1 "2023-02-08T09:20:27Z")

</div>

Hi,  
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?

---

<div class="post-metadata">

### Author: ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)
#### Post date: [February 8, 2023, 2:59pm UTC](https://community.sonatype.com/t/fetching-nexus-repository-using-python-scripts/10083/2 "2023-02-08T14:59:59Z")

</div>

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

---

<div class="post-metadata">

### Author: ![premsagar.kapikad-external](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@premsagar.kapikad-external](https://community.sonatype.com/u/premsagar.kapikad-external)
#### Post date: [February 9, 2023, 8:09am UTC](https://community.sonatype.com/t/fetching-nexus-repository-using-python-scripts/10083/3 "2023-02-09T08:09:51Z")

</div>

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

---

<div class="post-metadata">

### Author: ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)
#### Post date: [February 9, 2023, 4:01pm UTC](https://community.sonatype.com/t/fetching-nexus-repository-using-python-scripts/10083/4 "2023-02-09T16:01:30Z")

</div>

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