{"id":30883330,"url":"https://github.com/globocom/swiftsuru","last_synced_at":"2025-10-25T11:41:30.533Z","repository":{"id":22363282,"uuid":"25699466","full_name":"globocom/swiftsuru","owner":"globocom","description":"Swift service for Tsuru PaaS","archived":false,"fork":false,"pushed_at":"2018-06-15T17:09:57.000Z","size":91,"stargazers_count":5,"open_issues_count":5,"forks_count":3,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-06T08:36:39.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/globocom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-24T17:23:16.000Z","updated_at":"2018-06-15T17:09:58.000Z","dependencies_parsed_at":"2022-08-21T04:30:54.433Z","dependency_job_id":null,"html_url":"https://github.com/globocom/swiftsuru","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/globocom/swiftsuru","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fswiftsuru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fswiftsuru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fswiftsuru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fswiftsuru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/globocom","download_url":"https://codeload.github.com/globocom/swiftsuru/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fswiftsuru/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274166945,"owners_count":25233959,"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-09-08T02:00:09.813Z","response_time":121,"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":[],"created_at":"2025-09-08T09:44:42.911Z","updated_at":"2025-10-25T11:41:30.470Z","avatar_url":"https://github.com/globocom.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"API for adding Swift as a service in Tsuru, implemented using Flask (Python).\n\n##User\n\nConsidering you are using a pre-configured Tsuru cloud and that Swiftsuru is already available, you will be able to:\n\n###Check which Swift plans are available\n\n\ttsuru service-info swift\n\n###Create a new Swift instance\n\n\ttsuru service-add swift \u003cswift-instance-name\u003e \u003cswift-plan\u003e\n\n###Bind your swift instance to an existing app\n\n\ttsuru bind \u003cswift-instance-name\u003e --app \u003capp-name\u003e\n\nAfter binding, the following environment variables will be available at your App units:\n\n* SWIFT\\_ADMIN\\_URL\n* SWIFT\\_AUTH\\_URL\n* SWIFT\\_CONTAINER\n* SWIFT\\_INTERNAL\\_URL\n* SWIFT\\_PASSWORD\n* SWIFT\\_PUBLIC\\_URL\n* SWIFT\\_TENANT\n* SWIFT\\_USER\n\nThere are some possible use cases to integrate your App with Swift. The most common use case is deploy/serve the static file of your application. To easily do this, we recommend [simple-swifclient](https://github.com/globocom/simple-swiftclient).\n\nExample of deploy hook of a Django App.\n\ntsuru.yml\n```\nhooks:\n    build:\n        - bash /home/application/current/static-deploy-hook.sh\n```\n\nstatic-deploy-hook.sh\n\n```\n#!/bin/bash\npython manage.py collectstatic --noinput \u0026\u0026 \\\ncd /home/application/current \u0026\u0026 \\\nsimpleswift --os-auth-url $SWIFT_AUTH_URL \\\n            --os-username $SWIFT_USER \\\n            --os-password $SWIFT_PASSWORD \\\n            --os-tenant-name $SWIFT_TENANT \\\n            upload $SWIFT_CONTAINER \u003cstatic_root\u003e\n```\n\n##Developers\n\n###How to run\n\n\nIn order to install dependencies and run the Swiftsuru API locally, do:\n\n```\nmake setup\nmake run\n```\n\n###How to run tests\n\n    make tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Fswiftsuru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobocom%2Fswiftsuru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Fswiftsuru/lists"}