Skip to content
Python wrapper for the JFrog Artifactory REST API
Python
Branch: master
Clone or download
Latest commit d5b71db Feb 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Initial commit Feb 10, 2019
rtpy Initial commit Feb 10, 2019
tests
.gitignore Initial commit Feb 10, 2019
.readthedocs.yml
AUTHORS.md Initial commit Feb 10, 2019
CHANGELOG.rst
CONTRIBUTING.md Initial commit Feb 10, 2019
LICENSE.md Initial commit Feb 10, 2019
README.md Initial commit Feb 10, 2019
SUPPORTED_METHODS.md
USERGUIDE.md Initial commit Feb 10, 2019
pyproject.toml Initial commit Feb 10, 2019
requirements.txt Initial commit Feb 10, 2019
setup.py Initial commit Feb 10, 2019

README.md

rtpy

image image Code style: black Documentation Status image

Python wrapper for the JFrog Artifactory REST API

Documentation

https://rtpy.rtfd.io


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
You can’t perform that action at this time.