Code Monkey home page Code Monkey logo

py_awp5's Introduction

py-awp5

A python wraper for the Archiware P5 CLI.

Note: As of Version 6 P5 comes with a REST API. You should consider using to the REST Api instead.

Simplifies the integration of the Archiware P5 Software in modern MAM and DAM Systems.

Table of Contents

  • Getting Started
  • Prerequisites
  • Installation
  • First Steps

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You will require python3 installed on your system.

If you do not have Python installed on your system go to python.org's download section and download the current version for your OS. If you prefer using a package manager(like MacPorts, Homebrew, Chocolatey,...), look for a python-3 package.

You will also need Archiware P5 installed on your system. py-awp5 is using the nsdchat executable to communicate with the P5 Server.

Installation

install py-awp5 directly from GitHub using pip:

pip install git+https://github.com/ThomasWaldinger/py_awp5

Usage

First Steps

In an interactive python session:

from awp5 import Connection
from awp5.api import Job
con=Connection("P5Admin","p5passwd")
for job_i in Job.failed(31):
  print("{}:\n{}".format(job_i, job_i.xmlticket())

API Structure

The wrapper offers both a function-like syntax, using the "id strings" as resource arguments(similar to the syntax the nsdchat cli uses) and a more pythonic/object-based syntax.

from awp5.api import volume
for vol_id in volume.names():
  print(vol_id, volume.barcode(vol_id), volume.isonline(vol_id),
        volume.label(vol_id), volume.mediatype(vol_id))

from awp5.api import Volume
for vol in Volume.names():
  print(vol, vol.barcode(), vol.isonline(), vol.label(), vol.mediatype())

Depending on your personal preference import the modules using capital or lowercase letters.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.