Skip to content

small sample to show how to upload a file to transip's stack api

Notifications You must be signed in to change notification settings

weary/transip_stack_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to use the TransIP STACK API from python

Turns out TransIP just uses webdav, so any python webdav wrapper will work

The example

My example uses the webdavclient3 library to talk to stackstorage. To run the example export these environment variables:

export STACK_USERNAME=<your username>
export STACK_PASSWORD=<your password>
export STACK_HOSTNAME=https://<your name>.stackstorage.com

Run pip-install to pull in dependencies

pip install -e .

Run the example

transip_upload /tmp/localtestfile.txt /remotedestination.txt

About

small sample to show how to upload a file to transip's stack api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages