{"id":20635815,"url":"https://github.com/orsinium-labs/gcserve","last_synced_at":"2025-10-27T11:11:47.863Z","repository":{"id":113464727,"uuid":"358190887","full_name":"orsinium-labs/gcserve","owner":"orsinium-labs","description":"Serve files from a GCP bucket","archived":false,"fork":false,"pushed_at":"2021-04-15T08:52:14.000Z","size":20,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T01:34:15.022Z","etag":null,"topics":["gcp","gcs","go","golang","google","google-cloud","pypi","static-server","static-site"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orsinium-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-15T08:50:47.000Z","updated_at":"2022-06-23T21:09:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f7922a4-d5e9-4d7d-86da-6a7e6039b796","html_url":"https://github.com/orsinium-labs/gcserve","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fgcserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fgcserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fgcserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fgcserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orsinium-labs","download_url":"https://codeload.github.com/orsinium-labs/gcserve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249155829,"owners_count":21221668,"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","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":["gcp","gcs","go","golang","google","google-cloud","pypi","static-server","static-site"],"created_at":"2024-11-16T15:07:37.597Z","updated_at":"2025-10-27T11:11:42.823Z","avatar_url":"https://github.com/orsinium-labs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GCServe\n\nServe files from a [Google Cloud Storage](https://cloud.google.com/storage) bucket.\n\nThere are already a few alternatives (namely, [gcsproxy](https://github.com/daichirata/gcsproxy) and [weasel](https://github.com/google/weasel)). Also, GCP allows to [make all bucket files public](https://cloud.google.com/storage/docs/hosting-static-website). The main difference is that GCServe provides [basic HTTP auth](https://en.wikipedia.org/wiki/Basic_access_authentication).\n\n## Using as PyPI server\n\nA possible use-case for GCServe is to host a private [PyPI](https://pypi.org/) instance. All you need is:\n\n1. Download packages from pypi.org using [pip download](https://pip.pypa.io/en/stable/reference/pip_download/).\n1. Upload packages into the bucket using [gsutil rsync](https://cloud.google.com/storage/docs/gsutil/commands/rsync).\n1. Generate static index using [dumb-pypi](https://github.com/chriskuehl/dumb-pypi).\n1. Serve the bucket with GCServe.\n\nThis pipeline is much faster, smaller, and more reliable than a more dynamic solution, like [pypicloud](https://github.com/stevearc/pypicloud).\n\n## Usage\n\nBuild and run using [Go](https://golang.org/) compiler:\n\n```bash\ngo build -o gcserve.bin .\n./gcserve.bin \\\n    --bucket=test-bucket \\\n    --username=test-user \\\n    --password=test-pass \\\n    --debug\n```\n\nBuild and run using [Docker](https://www.docker.com/):\n\n```sh\nsudo docker build -t gcserve:latest .\nsudo docker run \\\n    -v /path/to/google/credentials.json:/mnt/cred.json \\\n    -it gcserve:latest \\\n    --bucket=test-bucket \\\n    --username=test-user \\\n    --password=test-pass \\\n    --debug\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fgcserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forsinium-labs%2Fgcserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fgcserve/lists"}