Posts tagged cloud
Announcement: racktools project
Update on July 21, 2011
This project remains on GitHub but isn't really being maintained or expanded. I'm just too busy with more interesting things right now. Also there are several efforts to create a unified toolchain for cloud servers called openstack.compute. There will likely be better (but hopefully still simple) tools based on that which will work better in the future.
This is an update to my earlier post on "How to Push files to Rackspace CloudFiles with Python". I needed the functionality again and decided to make it more usable. Specifically, I wanted a command-line tool to push files and otherwise modify them.
So now let me announce my new little project: racktools
Some Points
1) It is very dumb and presumptive (basically assumes things worked).
2) Not a lot of wrapper material; it is more code example than big library.
3) I hope to evolve it to provide at least some simple CLI tools and not much beyond that.
4) Please submit patches or improvements.
5) I haven't settled on a file structure yet, of using library style or more shell-tool style.
Getting It
git clone https://github.com/uncommonguy/racktools
Using it
Right now only 1 real command exists, which is "push" to upload a file.
cd racktools
python racktools/files.py <api_username> <api_key> <file_container_name> <file_pattern_1> <file_pattern_2> <file_pattern_n…>
example:
python joe_user 39sjl343S$#LQREK ~/todo.txt docs/*resume*
You can push as many files as you want and use any normal shell expansions. Right now there are no progress markers or indicators. Sorry. I will add it soon, it isn't hard, I'm just trying to get this wrapped up so I can get back to using this for what I need right now!
Push files to Rackspace CloudFiles with Python
Here is a short snippet showing how to push files into a Rackspace Files account using their Python API.