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
Metadata
Release files for rtpy 1.4.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rtpy-1.4.9.tar.gz | 20.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rtpy-1.4.9-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 45.2 kB
Release files / rtpy-1.4.9.tar.gz
| Download URL | rtpy-1.4.9.tar.gz |
|---|---|
| Size | 20.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ff0094ad804c963c4ea56e3ead1c1ac7ed210525336c78e6dfc3456e46c1f1b
|
|
BLAKE2b-256 checksum How to use checksums |
77f52fa8d044cea1026f2020c78262b129d133b439ea170793c8fd1ca535a472
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.3 Linux/5.7.6-arch1-1
|
Release files / rtpy-1.4.9-py2.py3-none-any.whl
| Download URL | rtpy-1.4.9-py2.py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a5e6f2e527c6d83604fe47c228c8c5b3b2f51deb51ff6a67fcd7b85b35b1d88f
|
|
BLAKE2b-256 checksum How to use checksums |
b1c1e11487bdee842837d36836d92380c928a9904f1c9f0ef35611f0021ab34d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.3 Linux/5.7.6-arch1-1
|