Posts tagged cloud

Announcement: racktools project

Update on July 21, 2011

This project remains on GitHub but isn't really being main­tained or expanded. I'm just too busy with more inter­est­ing things right now. Also there are sev­eral efforts to cre­ate a uni­fied tool­chain for cloud servers called openstack.compute. There will likely be bet­ter (but hope­fully still sim­ple) tools based on that which will work bet­ter in the future.

This is an update to my ear­lier post on "How to Push files to Rack­space Cloud­Files with Python". I needed the func­tion­al­ity again and decided to make it more usable. Specif­i­cally, I wanted a command-line tool to push files and oth­er­wise mod­ify them.

So now let me announce my new lit­tle project: rack­tools

Some Points

1) It is very dumb and pre­sump­tive (basi­cally assumes things worked).

2) Not a lot of wrap­per mate­r­ial; it is more code exam­ple than big library.

3) I hope to evolve it to pro­vide at least some sim­ple CLI tools and not much beyond that.

4) Please sub­mit patches or improvements.

5) I haven't set­tled on a file struc­ture yet, of using library style or more shell-tool style.

Get­ting It

git clone https://github.com/uncommonguy/racktools

Using it

Right now only 1 real com­mand exists, which is "push" to upload a file.

cd rack­tools

python racktools/files.py <api_username> <api_key> <file_container_name> <file_pattern_1> <file_pattern_2> <file_pattern_n…>

exam­ple:

python joe_user 39sjl343S$#LQREK ~/todo.txt docs/*resume*

You can push as many files as you want and use any nor­mal shell expan­sions. Right now there are no progress mark­ers or indi­ca­tors. Sorry. I will add it soon, it isn't hard, I'm just try­ing 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 snip­pet show­ing how to push files into a Rack­space Files account using their Python API.

(more…)

Go to Top