Metadata-Version: 2.1
Name: adop
Version: 0.0.1a1
Summary: Automatic deployment on-prem from zip archives
Home-page: https://gitlab.com/fholmer/adop
Author: Frode Holmer
Author-email: fholmer+adop@gmail.com
License: BSD
Keywords: rest,api,post,zip,auto,deploy,on-prem
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: BSD License
Classifier: Development Status :: 3 - Alpha
Requires-Dist: Flask (==2.1.2)

====
adop
====

Summary
=======

Automatic deployment on-prem from zip archives.

Warning
=======

This is an alpha release. Not ready for production.

Docs
====

Not available yet. Scheduled for beta release.

Installation
============

Open command line and and install using pip:

.. code-block:: doscon

    > pip install adop

Usage
=====

adop is available as console script and library module

.. code-block:: doscon

    > adop -h
    > python -m adop -h

Print general help

.. code-block:: doscon

    > adop -h

Help on serving rest api

.. code-block:: doscon

    > adop serve-api -h

Serve rest api on http://127.0.0.1:8000

.. code-block:: doscon

    > adop serve-api

Find the generated access token

.. code-block:: doscon

    # linux
    > cat work/adop.ini | grep token
    # windows
    > type work/adop.ini | findstr token

Test rest api with curl

.. code-block:: doscon

    > curl -H "Token: paste-token-here" http://127.0.0.1:8000/api/v1/test

Upload and deploy a zip-library:

.. code-block:: doscon

    > curl -H "Content-Type: application/zip" -H "Root: mylib" -H "Token: T" --data-binary @work/mylib.zip http://127.0.0.1:8000/api/v1/deploy/zip


