Skip to main content

Automatic deployment on-prem from zip archives

Project description

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:

> pip install adop

Usage

adop is available as console script and library module

> adop -h
> python -m adop -h

Print general help

> adop -h

Help on serving rest api

> adop serve-api -h

Serve rest api on http://127.0.0.1:8000

> adop serve-api

Find the generated access token

  • Windows

    > type work/adop.ini | findstr token
  • Linux

    $ cat work/adop.ini | grep token

Test rest api with curl

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

Upload and deploy a zip-library:

> 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

Zip file layout

Zip files with exactly one root directory are valid and can be distributed. The root directory name must be unique if many zip files are to be distributed.

Example of a valid zip file layout:

/mylib
    /README.rst
    /main.py
    /mypackage1
        /__init__.py
        /__main__.py
    /mypackage2
        /__init__.py
        /__main__.py

Following layout is not valid:

/README.rst
/mylib1
    /__init__.py
    /__main__.py
/mylib2
    /__init__.py
    /__main__.py

API

Description

result

method

endpoint

Check that the API is up

json

GET

/api/v1/test

Sha sum for all deployed zipfiles

json

GET

/api/v1/state

Sha sum for given deployed root

json

GET

/api/v1/state/<root>

Start auto-fetch routine if enabled

json

GET

/api/v1/trigger/fetch

Download zipfile of given root

zip

GET

/api/v1/download/zip/<root>

Upload and deploy a zipfile

json*1

POST

/api/v1/deploy/zip

Upload a zipfile without deploying it

json*1

POST

/api/v1/upload/zip

Deploy a pre uploaded zip-file

json*1

GET

/api/v1/deploy/zip

Zipfile unpacking progress

json

GET

/api/v1/progress

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

adop-0.0.1a3-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file adop-0.0.1a3-py3-none-any.whl.

File metadata

  • Download URL: adop-0.0.1a3-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for adop-0.0.1a3-py3-none-any.whl
Algorithm Hash digest
SHA256 3782dc258624f35413f91fb0693f6da2f3c915a181fa098401a0755714746433
MD5 d2c334ff830507fa20bc15f2a0074604
BLAKE2b-256 46aa09737e114ffac86a1532d9daa7bb6a097fce1962509c98ef89769a68bf33

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page