Skip to content

white-gecko/client-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhotoBackup Python client

A simple console Python 3 client for PhotoBackup. It is mostly used to test servers. You can use it with:

$ python photobackup.py http://myserver.com/ image.jpg

A password is asked to the user, then the request is operated. When the request to the server is done, the response status is shown. You got:

  • 200 when the request was successful ;
  • 400 when the request was badly formed ;
  • 403 when the given password is not the same as the server's one ;
  • 408 when the request timed out ;
  • 500 when an error occured on the server in the meanwhile.

See the official API for more information.

Installation with the Makefile

You can use the included Makefile to build a virtual Python environment:

make && source venv/bin/activate

If I were you, that's what I would do.

Installation without virtual environment

You can use the client directly if you have all dependencies already available. Those are:

About

A simple Python client for PhotoBackup

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Python 96.7%
  • Makefile 3.3%