{ "info": { "author": "Cosmin Stejerean", "author_email": "cosmin@offbytwo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", "Topic :: Software Development :: Libraries" ], "description": "stashy\n ======\n \n Python API client for the Atlassian Stash REST API\n \n Installation\n ------------\n \n ::\n \n pip install stashy\n \n Usage\n -----\n \n ::\n \n import stashy\n stash = stashy.connect(\"http://localhost:7990/stash\", \"admin\", \"admin\")\n \n Examples\n --------\n \n - Retrieve all groups\n \n ::\n \n stash.admin.groups.list()\n \n - Retrieve all users that match a given filter\n \n ::\n \n stash.admin.users.list(filter=\"admin\")\n \n - Add a user to a group\n \n ::\n \n stash.admin.groups.add_user('stash-users', 'admin')\n \n - Iterate over all projects (that you have access to)\n \n ::\n \n stash.projects.list()\n \n - List all the repositories in a given project\n \n ::\n \n stash.projects[PROJECT].repos.list()\n \n - List all the commits in a pull request\n \n ::\n \n list(stash.projects[PROJECT].repos[REPO].pull_requests.commits())\n \n Implemented\n -----------\n \n ::\n \n /admin/groups [DELETE, GET, POST]\n /admin/groups/add-user [POST]\n /admin/groups/more-members [GET]\n /admin/groups/more-non-members [GET]\n /admin/groups/remove-user [POST]\n /admin/users [GET, POST, DELETE, PUT]\n /admin/users/add-group [POST]\n /admin/users/credentials [PUT]\n /admin/users/more-members [GET]\n /admin/users/more-non-members [GET]\n /admin/users/remove-group [POST]\n /admin/permissions/groups [GET, PUT, DELETE]\n /admin/permissions/groups/none [GET]\n /admin/permissions/users [GET, PUT, DELETE]\n /admin/permissions/users/none [GET]\n /groups [GET]\n /projects [POST, GET]\n /projects/{projectKey} [DELETE, PUT, GET]\n /projects/{projectKey}/permissions/groups [GET, PUT, DELETE]\n /projects/{projectKey}/permissions/groups/none [GET]\n /projects/{projectKey}/permissions/users [GET, PUT, DELETE]\n /projects/{projectKey}/permissions/users/none [GET]\n /projects/{projectKey}/permissions/{permission}/all [GET, POST]\n /projects/{projectKey}/repos [POST, GET]\n /projects/{projectKey}/repos/{repositorySlug} [DELETE, POST, PUT, GET]\n /projects/{projectKey}/repos/{repositorySlug}/branches [GET]\n /projects/{projectKey}/repos/{repositorySlug}/branches/default [GET, PUT]\n /projects/{projectKey}/repos/{repositorySlug}/changes [GET]\n /projects/{projectKey}/repos/{repositorySlug}/commits [GET]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests [GET, POST]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId} [GET, PUT]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/activities [GET]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/decline [POST]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/merge [GET, POST]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/reopen [POST]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/approve [POST, DELETE]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/changes [GET]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/commits [GET]\n /projects/{projectKey}/repos/{repositorySlug}/settings/hooks [GET]\n /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey} [GET]\n /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/enabled [PUT, DELETE]\n /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/settings [PUT, GET]\n /projects/{projectKey}/repos/{repositorySlug}/tags [GET]\n \n Not yet implemented\n -------------------\n \n ::\n \n /admin/mail-server [DELETE]\n /application-properties [GET]\n /hooks/{hookKey}/avatar [GET]\n /logs/logger/{loggerName} [GET]\n /logs/logger/{loggerName}/{levelName} [PUT]\n /logs/rootLogger [GET]\n /logs/rootLogger/{levelName} [PUT]\n /markup/preview [POST]\n /profile/recent/repos [GET]\n /projects/{projectKey}/avatar.png [GET, POST]\n /projects/{projectKey}/repos/{repositorySlug}/recreate [POST]\n /projects/{projectKey}/repos/{repositorySlug}/browse [GET]\n /projects/{projectKey}/repos/{repositorySlug}/browse/{path:.*} [GET]\n /projects/{projectKey}/repos/{repositorySlug}/commits/{changesetId:.*} [GET]\n /projects/{projectKey}/repos/{repositorySlug}/diff/{path:.*} [GET]\n /projects/{projectKey}/repos/{repositorySlug}/files [GET]\n /projects/{projectKey}/repos/{repositorySlug}/files/{path:.*} [GET]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments [POST]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId} [DELETE, PUT, GET]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff [GET]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff/{path:.*} [GET]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants [GET, DELETE, POST]\n /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/watch [POST, DELETE]\n /users [GET, PUT]\n /users/credentials [PUT]", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/RisingOak/stashy/tarball/0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/RisingOak/stashy", "keywords": null, "license": "Apache License 2.0", "maintainer": null, "maintainer_email": null, "name": "stashyEvry", "package_url": "https://pypi.org/project/stashyEvry/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/stashyEvry/", "project_urls": { "Download": "https://github.com/RisingOak/stashy/tarball/0.1", "Homepage": "http://github.com/RisingOak/stashy" }, "release_url": "https://pypi.org/project/stashyEvry/0.1a1dev0/", "requires_dist": null, "requires_python": null, "summary": "Python API client for the Atlassian Stash REST API", "version": "0.1a1dev0" }, "last_serial": 1137084, "releases": { "0.1a1dev0": [ { "comment_text": "built for Linux-3.14.7-200.fc20.x86_64-x86_64-with-glibc2.3", "digests": { "md5": "de76c8247348a7cfe691fee85747df5a", "sha256": "01586205f82d3923053791a4edee80d72b4115795fa25aa22bccdbd2b4f434f3" }, "downloads": -1, "filename": "stashyEvry-0.1a1dev0.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "de76c8247348a7cfe691fee85747df5a", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 20218, "upload_time": "2014-06-25T15:49:59", "url": "https://files.pythonhosted.org/packages/a1/cd/10db39e1881562c661e8fe09e50651f8e4f1d99924637bc9c493d407cf18/stashyEvry-0.1a1dev0.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "0db2f94ea8df103c599728c51030bd36", "sha256": "60e61e04cefe59a0a6afd3c892f23504c3f3d48bdd4d72a0cae0d7e1773443ae" }, "downloads": -1, "filename": "stashyEvry-0.1a1dev0.tar.gz", "has_sig": false, "md5_digest": "0db2f94ea8df103c599728c51030bd36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9334, "upload_time": "2014-06-25T15:49:56", "url": "https://files.pythonhosted.org/packages/e2/79/bc791fac89d52821333c79401ab76425c0dc46f79d0f1d5389d45b38f446/stashyEvry-0.1a1dev0.tar.gz" } ] }, "urls": [ { "comment_text": "built for Linux-3.14.7-200.fc20.x86_64-x86_64-with-glibc2.3", "digests": { "md5": "de76c8247348a7cfe691fee85747df5a", "sha256": "01586205f82d3923053791a4edee80d72b4115795fa25aa22bccdbd2b4f434f3" }, "downloads": -1, "filename": "stashyEvry-0.1a1dev0.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "de76c8247348a7cfe691fee85747df5a", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 20218, "upload_time": "2014-06-25T15:49:59", "url": "https://files.pythonhosted.org/packages/a1/cd/10db39e1881562c661e8fe09e50651f8e4f1d99924637bc9c493d407cf18/stashyEvry-0.1a1dev0.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "0db2f94ea8df103c599728c51030bd36", "sha256": "60e61e04cefe59a0a6afd3c892f23504c3f3d48bdd4d72a0cae0d7e1773443ae" }, "downloads": -1, "filename": "stashyEvry-0.1a1dev0.tar.gz", "has_sig": false, "md5_digest": "0db2f94ea8df103c599728c51030bd36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9334, "upload_time": "2014-06-25T15:49:56", "url": "https://files.pythonhosted.org/packages/e2/79/bc791fac89d52821333c79401ab76425c0dc46f79d0f1d5389d45b38f446/stashyEvry-0.1a1dev0.tar.gz" } ] }