rtpy-1.4.9
توضیحات
Python wrapper for the JFrog Artifactory REST API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | rtpy-1.4.9 |
| نام | rtpy |
| نسخه کتابخانه | 1.4.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Guillaume Renault |
| ایمیل نویسنده | me@grenault.org |
| آدرس صفحه اصلی | https://github.com/Orange-OpenSource/rtpy |
| آدرس اینترنتی | https://pypi.org/project/rtpy/ |
| مجوز | Apache-2.0 |
# rtpy
[](https://pypi.org/project/rtpy/)
[](https://pypi.org/project/rtpy/)
[](https://github.com/ambv/black)
[](https://rtpy.readthedocs.io/en/latest/?badge=latest)
[](https://pypi.org/project/rtpy/)
Python wrapper for the **[JFrog Artifactory REST API](https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API)**
<br/>
<br/>
## Documentation
**[https://rtpy.rtfd.io](https://rtpy.rtfd.io)**
<br/>
## Installation
```shell
$ pip install rtpy
```
<br/>
## Usage
```python
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
```
<br/>
## Running the tests
### Requirements :
- Dependencies : see [tool.poetry.dependencies] and [tool.poetry.dev-dependencies] in [pyproject.toml](./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 :
```shell
$ python -m pytest -v
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.18.4,<3.0.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* | Python |
نحوه نصب
نصب پکیج whl rtpy-1.4.9:
pip install rtpy-1.4.9.whl
نصب پکیج tar.gz rtpy-1.4.9:
pip install rtpy-1.4.9.tar.gz