Metadata-Version: 2.1
Name: pydroneapi
Version: 0.1.1
Summary: Helper scripts to manage Drone API operations
Home-page: https://github.com/bellyjay1005/pydroneci
Author: Jelili Adebello
Author-email: jeliliadebello@gmail.com
License: MIT
Download-URL: https://github.com/bellyjay1005/pydroneci/archive/refs/tags/v0.1.0.tar.gz
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: boto3
Requires-Dist: requests
Provides-Extra: dev
Requires-Dist: PyYAML (>=5.3.1) ; extra == 'dev'
Requires-Dist: pylint (>=2.5.0) ; extra == 'dev'
Requires-Dist: pytest (>=5.4.1) ; extra == 'dev'
Requires-Dist: pytest-cov (>=2.8.1) ; extra == 'dev'
Requires-Dist: bandit (>=1.6.2) ; extra == 'dev'
Requires-Dist: safety (>=1.10.3) ; extra == 'dev'
Requires-Dist: requests-mock ; extra == 'dev'

# pydroneci

[![Run Python Tests](https://github.com/bellyjay1005/pydroneci/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/bellyjay1005/pydroneci/actions/workflows/ci.yml)
[![Push to PyPi](https://github.com/bellyjay1005/pydroneci/actions/workflows/pypi.yml/badge.svg)](https://github.com/bellyjay1005/pydroneci/actions/workflows/pypi.yml)
[![Latest Version](https://pypip.in/version/pydroneapi/badge.svg)](https://pypi.org/project/pydroneapi/)
[![Download](https://pypip.in/download/pydroneapi/badge.svg)](https://pypi.org/project/pydroneapi/)
[![Status](https://pypip.in/status/pydroneapi/badge.svg)](https://pypi.org/project/pydroneapi/)
[![License](https://pypip.in/license/pydroneapi/badge.svg)](https://pypi.org/project/pydroneapi/)

A DRONE CI Server - Python helper scripts to manage API interactions and operations.

This tool manages authentication against Drone CI and performs common Drone CI API operations using a Python wrapper.

## Prerequisites

 - [Docker 18.09+](https://www.docker.com/)
 - Make

## Installation

From PyPI:

```
pip install pydroneapi
```

From source:

```
git clone --recursive https://github.com/bellyjay1005/pydroneci
cd pydroneci
python setup.py install
```

From Github directly:

```
pip3 install pydroneapi@git+https://github.com/bellyjay1005/pydroneci
```
## Usage

```python
from pydroneapi import PyDroneAPI

# Sync application github repository with Drone pipeline
drone = PyDroneAPI(
    drone_host='https://example.com',
    token='abcd1234',
    repo='bellyjay1005/test-repo',
)

sync_res = drone.synchronize_repository()
if not sync_res[0]['id']:
    print('New Repository Not Synchronized. Error Message - %s', sync_res)
    return False

```

## Development & Test

Reference `make help` for more commands used for development and testing of source codes.


