Skip to main content

Python wrapper for the JFrog Artifactory REST API.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rtpy, version 1.4.9
Filename, size File type Python version Upload date Hashes
Filename, size rtpy-1.4.9-py2.py3-none-any.whl (25.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size rtpy-1.4.9.tar.gz (20.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page