Commit graph

16 commits

Author SHA1 Message Date
sneakypete81
15d85b3ac9 Allow -h to be used to specify the hostname
This matches the behaviour of the other commandline tools.
Since this is a bit non-standard, the usage message now specifically mentions the --help option.
Also added a check for excess arguments.
2013-05-07 08:55:44 +01:00
sneakypete81
0a35922d12 Move config loader into the OpenPhoto class.
This allows config files to be used everywhere, not just from the commandline.
2013-05-04 13:15:51 +01:00
sneakypete81
c0c6b6d7e1 Host option now prevents config from being loaded.
The -H host option is only useful for unauthenticated API calls.
If you want authentication, use a config file, not the -H option.
2013-05-04 11:39:15 +01:00
sneakypete81
3712b94e80 Use the ConfigParser library to parse the config files.
Automatically prepends:
 * [DEFAULT] section, to provide default values
 * [DUMMY] section header, as ConfigParser doesn't understand key=value pairs
2013-05-03 17:51:42 +01:00
sneakypete81
060db87b84 Remove unused --encode option 2013-05-02 23:34:14 +01:00
sneakypete81
30a843d5aa Update config option to be a filename in the config directory.
This makes it easier to use multiple identities
2013-05-02 23:33:14 +01:00
sneakypete81
6a4be812ed Merge branch 'master' into dotfiles
Conflicts:
	README.markdown
2013-04-02 21:26:32 +01:00
sneakypete81
3f5c0cca49 Add file upload support to the commandline, using the same technique as openphoto-php 2013-03-17 18:14:54 +00:00
sneakypete81
06d1245af0 Only print config file location if verbose switch is set. 2013-02-18 08:34:27 +00:00
sneakypete81
3918b83c1c Add support for config dotfiles 2013-02-17 17:41:43 +00:00
sneakypete81
cbbf5d56c7 Combine get/post variants into a single set of methods with a process_response parameter.
Remember the most recent HTTP request and response to help with debugging.
2012-08-28 21:03:08 +01:00
sneakypete81
b418cf7e78 Extended API to add pythonic classes/methods. See the updated README.markdown for examples 2012-08-28 18:59:33 +01:00
Olivier Scherler
4983a18905 Added fields to verbose output. 2012-04-17 00:25:47 +02:00
Olivier Scherler
d370aa6209 Don’t forget to actually use those thoroughly processed -F options. 2012-04-17 00:24:32 +02:00
Jeff Hammel
ab14ca7efc * use /photos/list.json as the default endpoint, a la https://github.com/openphoto/openphoto-php
* add documentation for undocumented CLI arguments
2012-01-22 22:12:23 -08:00
Jeff Hammel
d9a9e77972 https://github.com/openphoto/openphoto-python/issues/4 2012-01-22 21:58:12 -08:00