Python wrapper for the JFrog Artifactory REST API.
Project description
rtpy
Python wrapper for the JFrog Artifactory REST API
Documentation
Installation
$ pip install rtpy
Usage
import rtpy
# instantiate a rtpy.Rtpy object
settings = {}
settings["af_url"] = "http://..."
settings["api_key"] = "123QWA..."
# settings["username"] = "my_username"
# settings["password"] = "my_password"
af = rtpy.Rtpy(settings)
# use a method
r = af.system_and_configuration.system_health_ping()
print(r)
# OK
Running the tests
Requirements :
- Dependencies : see [tool.poetry.dependencies] and [tool.poetry.dev-dependencies] in pyproject.toml
- Artifactory instance (with a valid license) running
NEVER run the tests on a production instance!
Launch
- Set the following environment variables:
- AF_TEST_URL
- AF_TEST_USERNAME
- AF_TEST_PASSWORD
The user must have admin privileges (it's API key will be revoked during the tests)
- Clone the repository and launch the tests using the command :
$ python -m pytest -v
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
rtpy-1.4.9.tar.gz
(20.1 kB
view details)
Built Distribution
rtpy-1.4.9-py2.py3-none-any.whl
(25.0 kB
view details)
File details
Details for the file rtpy-1.4.9.tar.gz
.
File metadata
- Download URL: rtpy-1.4.9.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.7.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ff0094ad804c963c4ea56e3ead1c1ac7ed210525336c78e6dfc3456e46c1f1b |
|
MD5 | 1ed61fd2e9dc0f68199ab742f4d9db9b |
|
BLAKE2b-256 | 77f52fa8d044cea1026f2020c78262b129d133b439ea170793c8fd1ca535a472 |
File details
Details for the file rtpy-1.4.9-py2.py3-none-any.whl
.
File metadata
- Download URL: rtpy-1.4.9-py2.py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.7.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5e6f2e527c6d83604fe47c228c8c5b3b2f51deb51ff6a67fcd7b85b35b1d88f |
|
MD5 | 252512e32d2d9bc1066c6e98d099bd76 |
|
BLAKE2b-256 | b1c1e11487bdee842837d36836d92380c928a9904f1c9f0ef35611f0021ab34d |