Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ioggstream/caspython-centera
EMC Centera Python Wrapper
https://github.com/ioggstream/caspython-centera
Last synced: 2 months ago
JSON representation
EMC Centera Python Wrapper
- Host: GitHub
- URL: https://github.com/ioggstream/caspython-centera
- Owner: ioggstream
- License: other
- Created: 2014-06-27T14:47:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T14:50:00.000Z (about 4 years ago)
- Last Synced: 2024-10-05T16:48:59.392Z (3 months ago)
- Language: Python
- Size: 92.8 KB
- Stars: 5
- Watchers: 4
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# caspython-centera
EMC Centera Python Wrapper with a user-friendly CenteraConnection interface.
## Usage
Connecting to Centera is easy thanks to CenteraConnection.
from Filepool.connector import CenteraConnection
# Connect to a pool.
pool = CenteraConnection('192.168.1.1,192.168.1.2')# Get pool info.
infos = pool.info()
print("You have still {freeSpace} bytes".format(**infos))
# Put many files.
clip_id = pool.put("put_one_file", files=["file1.txt", "file2.txt"], retention_sec=10)
# Get clip metadata.
clip = self.connection.get(clip_id, tag=True)
print(clip.attributes)
# Close pool.
pool.close()## Installing
On RHEL7 you need:
#yum -y install compat-libstdc++-33Download and unpack the Centera SDK 3.1 or above.
export CENTERA_HOME=/opt/centera
export PYTHONPATH+=:$(echo $PWD/src/build/lib.*)
(cd src && python setup.py install; )If using sudo, run:
(cd src && sudo CENTERA_HOME=$CENTERA_HOME python setup.py install; )
## Develop
Setup the enviroment for using the local build and your test environment
export CENTERA_PEA_LOCATION=$PWD/stage_pool.pea
tox## Centera Garbage collection & shredding
https://community.emc.com/message/518033
https://community.emc.com/docs/DOC-7853