New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rtpy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rtpy

Python wrapper for the JFrog Artifactory REST API.

  • 1.4.9
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc