An open API service indexing awesome lists of open source software.

https://github.com/internetarchive/acs4_py

Python interface to ACS4
https://github.com/internetarchive/acs4_py

Last synced: 9 months ago
JSON representation

Python interface to ACS4

Awesome Lists containing this project

README

          

A basic API for interacting with the Adobe Content Server.

Sample use (command line)

SERVER=your.server.here
PW=your_password
DIST=distributor_uuid
RSRC=resource_uuid

# upload file
python acs4cmd.py $SERVER upload sample.epub --password=$PW
# ... this returns some JSON, which includes the newly assigned resource ID
# ... or (for large files)
python acs4cmd.py $SERVER upload --datapath=/server/path/sample.epub --password=$PW

# 'distribute' it, as a loanable, returnable book
python acs4cmd.py $SERVER request DistributionRights create --password=$PW --distributionType=loan --returnable=true --available=1 --permissions=sample_permissions.xml --resource=$RSRC --distributor=$DIST

# 'mint' a download url
python acs4cmd.py $SERVER mint --resource=$RSRC --distributor=$DIST

'bss.py' is a server-side CGI for peeking under the ACS4 hood. See
README_bss for a bit more.