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
- Host: GitHub
- URL: https://github.com/internetarchive/acs4_py
- Owner: internetarchive
- Created: 2010-06-14T20:00:35.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T17:44:37.000Z (over 5 years ago)
- Last Synced: 2025-03-31T12:01:29.959Z (10 months ago)
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 4
- Watchers: 9
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README
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.