An interface to work with sonatype Nexus RestApi
Project description
Nexufy
A simple Object Oriented Program to work with Sonatype Nexus REST API, planning to soon be turning into a py library.
How To Use
from nexupy.assets import Assets
# initialize the class
obj = Assets(base_url="nexus_url", repo_names=["npm-group", "docker-proxy"])
# authenticate into Nexus
obj.auth(username="nexus_username", password="nexus_password")
# choose what you want from the repositories. e.g last_downloaded of the packages
r = obj.last_downloaded()
# use write_to_file method to write the data to file
obj.write_to_file(data=str(r))
By default write_to_file method, creates a file called data.txt inside the directory that the gather.py is located in, so change it as you wish, by using set_file_path method or simply providing the path to your desired file using the path argument to the write_to_file method.
Contributions
All sorts of contributions are welcomed.
TO-DO
- Implement Deletion
Copyright © 2024 Shayan Ghani shayanghani1384@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Nexupy-0.1.0.tar.gz.
File metadata
- Download URL: Nexupy-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4e6b87929166e6316532c2566789870f28540f5a7474f4826c27bd77428c62c
|
|
| MD5 |
85f2468a0e98672696dae5a511193f5e
|
|
| BLAKE2b-256 |
e3e74ccac71b55474fdc8c6b0d83dde385275522d1280e4cdf8ab3ea4371cb72
|
File details
Details for the file Nexupy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: Nexupy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6d8d47dc724cbcbfa466cec5760e7ea2c1ba6140c08539819679db6ad074020
|
|
| MD5 |
0a7310f8d1d09a7e482d05af9a124ab4
|
|
| BLAKE2b-256 |
9289a060e504aca4da6a837559b93cd4fd8c448e78cbe46893e9f0a311fa5542
|