{"id":21923967,"url":"https://github.com/mrprompt/deploybot-sdk","last_synced_at":"2025-08-08T07:12:58.221Z","repository":{"id":62567703,"uuid":"92245089","full_name":"mrprompt/deploybot-sdk","owner":"mrprompt","description":"A Deploybot SDK written in Python","archived":false,"fork":false,"pushed_at":"2017-10-12T21:01:58.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-22T11:20:29.278Z","etag":null,"topics":["cd","continuous","deploy","deploybot","python","sdk"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/deploybot-sdk/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrprompt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-24T03:19:18.000Z","updated_at":"2019-07-13T21:47:38.000Z","dependencies_parsed_at":"2022-11-03T17:35:47.424Z","dependency_job_id":null,"html_url":"https://github.com/mrprompt/deploybot-sdk","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mrprompt/deploybot-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrprompt%2Fdeploybot-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrprompt%2Fdeploybot-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrprompt%2Fdeploybot-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrprompt%2Fdeploybot-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrprompt","download_url":"https://codeload.github.com/mrprompt/deploybot-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrprompt%2Fdeploybot-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269380256,"owners_count":24407601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cd","continuous","deploy","deploybot","python","sdk"],"created_at":"2024-11-28T21:13:20.275Z","updated_at":"2025-08-08T07:12:58.160Z","avatar_url":"https://github.com/mrprompt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploybot SDK\n\n[![Build Status](https://travis-ci.org/mrprompt/deploybot-sdk.svg?branch=master)](https://travis-ci.org/mrprompt/deploybot-sdk)\n[![Code Climate](https://codeclimate.com/github/mrprompt/deploybot-sdk/badges/gpa.svg)](https://codeclimate.com/github/mrprompt/deploybot-sdk)\n[![Test Coverage](https://codeclimate.com/github/mrprompt/deploybot-sdk/badges/coverage.svg)](https://codeclimate.com/github/mrprompt/deploybot-sdk/coverage)\n[![Issue Count](https://codeclimate.com/github/mrprompt/deploybot-sdk/badges/issue_count.svg)](https://codeclimate.com/github/mrprompt/deploybot-sdk)\n[![GitHub issues](https://img.shields.io/github/issues/mrprompt/deploybot-sdk.svg)](https://github.com/mrprompt/deploybot-sdk/issues)\n[![GitHub stars](https://img.shields.io/github/stars/mrprompt/deploybot-sdk.svg)](https://github.com/mrprompt/deploybot-sdk/stargazers)\n[![GitHub license](https://img.shields.io/badge/license-AGPL-blue.svg)](https://raw.githubusercontent.com/mrprompt/deploybot-sdk/master/LICENSE)\n\nA library to [Deploybot](https://www.deploybot.com) API.\n\nTo see how to use, look [Cli](https://github.com/mrprompt/deploybot-cli).\n\n\n## Install\n\n```\npip install deploybot-sdk\n```\n\n## Usage\n\n### Client\n\nClient is the main library, this is responsible to make and receive requests from API.\n\nThe first step, is instantiate to your application using your account name and API token.\n\n```python\nfrom deploybot.client import Client\nimport os\n\naccount = os.environ.get('DEPLOYBOT_ACCOUNT')\ntoken = os.environ.get('DEPLOYBOT_TOKEN')\n\nclient = Client(account, token)\n```\n\n### Repository\n\nGet one or list repositories.\n\n\n```python\nfrom deploybot.repository import Repository\n\n# client is defined before\nclient = object\n\nrepository = Repository(client)\n\n# list all repositories\nprint(repository.list())\n\n# get specific repository to details\nprint(repository.get(99999))\n\n```\n\n### Environment\n\nGet one or list your environments\n\n\n```python\nfrom deploybot.environment import Environment\n\n# client is defined before\nclient = object\n\nenvironment = Environment(client)\n\n# list all environments\nrepository = 1\n\nprint(environment.list(repository))\n\n# get specific environment to details\nenvironment = 1\n\nprint(environment.get(environment))\n\n```\n\n### Server\n\nGet one or list your servers\n\n\n```python\nfrom deploybot.server import Server\n\n# client is defined before\nclient = object\n\nserver = Server(client)\n\n# list all servers\nprint(server.list())\n\n# get specific server to details\nprint(server.get(123456))\n\n```\n\n### User\n\nGet one or list users from account\n\n\n```python\nfrom deploybot.user import User\n\n# client is defined before\nclient = object\n\nuser = User(client)\n\n# list all users\nprint(user.list())\n\n# get specific user to details\nprint(user.get(123456))\n\n```\n\n### Deploy\n\nList, view and trigger a deploy.\n\n\n```python\nfrom deploybot.deploy import Deploy\n\n# client is defined before\nclient = object\n\ndeploy = Deploy(client)\n\n# list all deploys\nrepository = 1\nenvironment = 2\n\nprint(deploy.list(repository, environment))\n\n# get specific deploy to details\ndeploy_id = 123456\n\nprint(deploy.get(deploy_id))\n\n# trigger a deploy\nenvironment = 2\n\nprint(deploy.trigger(environment))\n\n```\n\n\n## Testing\n\n```\npython setup.py test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrprompt%2Fdeploybot-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrprompt%2Fdeploybot-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrprompt%2Fdeploybot-sdk/lists"}