A Gallery 3 Python library
crustymonkey
Joined: 2010-11-13
Posts: 11 |
![]() |
I just finished putting the finishing touches on my first run through of Python library that uses the new Gallery 3 REST API for access. If there are any Python programmers that want to play with this, the download and documentation are on my site at: http://stuffivelearned.org/doku.php?id=programming:python:libgal3. I know there are some limitations at this point, but I'm hoping to have the time to crank out some more functionality in the future. I'm open to suggestions and comments on this and let me know if you run into any snags along the way. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Awesome! Would you be interested in putting this into our git repo? I think it'd go here: Make a python directory there and put your library in it. That'd be stellar, I'm sure lots of other folks will appreciate this. |
|
crustymonkey
Joined: 2010-11-13
Posts: 11 |
![]() |
Yep, I'll take a look at that tomorrow. I should have some time to push that to the gallery repo as well. |
|
crustymonkey
Joined: 2010-11-13
Posts: 11 |
![]() |
I only have read access to that directory within the repos. You can either grant me write access to that or just add the Python library as a git "submodule" and then you can just pull changes from the main github repos. at git://github.com/crustymonkey/pylibgal3.git (if github supports submodules). |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Sorry I should have explained better! Now you'll have your own gallery3-contrib repo that's forked off of the master one. Go add your code in there, and then it'll show up in the gallery3-contrib forkqueue: https://github.com/gallery/gallery3-contrib/forkqueue I'll see it there and pull it in, or you can send me a pull request and I'll grab it. You might want to read: --- |
|
crustymonkey
Joined: 2010-11-13
Posts: 11 |
![]() |
Done. A pull request has been sent. I've been using git for a while, but I'm new to Github specifically so the help page is much appreciated. |
|
sjsipila
Joined: 2007-04-03
Posts: 11 |
![]() |
@crustymonkey Many thanks for this nice library! It enabled me to finally get a nice way to upload pics to my Nokia N900 as described here. If you plan to make any updates to the library, changing the import json statements to something like: |
|
crustymonkey
Joined: 2010-11-13
Posts: 11 |
![]() |
Good suggestions sjsipila. I'll get those implemented very soon and issue a pull request for the main Gallery repository. Heh, that "print url" statement was a leftover debug statement from initial testing that I forgot to remove. Thanks for the feedback. |
|
crustymonkey
Joined: 2010-11-13
Posts: 11 |
![]() |
I got the changes in, pushed to https://github.com/crustymonkey/pylibgal3 and my gallery3-contrib fork, and submitted a pull request to the main gallery3-contrib git repos. I would imagine this will be mainlined soon. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Sorry for the delay - I've pulled it into the mainline. thanks, @crustymonkey! |
|