{"id":13449411,"url":"https://github.com/khornberg/elasticpypi","last_synced_at":"2026-01-08T15:01:15.791Z","repository":{"id":13056077,"uuid":"73440358","full_name":"khornberg/elasticpypi","owner":"khornberg","description":"Serverless pypi","archived":false,"fork":false,"pushed_at":"2025-12-12T22:36:23.000Z","size":621,"stargazers_count":201,"open_issues_count":19,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-13T03:06:35.949Z","etag":null,"topics":["aws","hacktoberfest","pypi","python","serverless"],"latest_commit_sha":null,"homepage":"https://khornberg.github.io/elasticpypi/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khornberg.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-11-11T02:50:50.000Z","updated_at":"2025-07-26T12:27:26.000Z","dependencies_parsed_at":"2026-01-03T16:07:43.676Z","dependency_job_id":null,"html_url":"https://github.com/khornberg/elasticpypi","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/khornberg/elasticpypi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khornberg%2Felasticpypi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khornberg%2Felasticpypi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khornberg%2Felasticpypi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khornberg%2Felasticpypi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khornberg","download_url":"https://codeload.github.com/khornberg/elasticpypi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khornberg%2Felasticpypi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28246403,"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":"2026-01-08T02:00:06.591Z","response_time":241,"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":["aws","hacktoberfest","pypi","python","serverless"],"created_at":"2024-07-31T06:00:37.371Z","updated_at":"2026-01-08T15:01:15.730Z","avatar_url":"https://github.com/khornberg.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"elastic pypi\n------------\n\nA fully functional, self-hosted  simple pypi service running on AWS.\n\n# Caveats\n\n**Browse with a browser**\nBrowsers are currently limited by the removal of basic authentication for remote URLs via the URL (e.g. x:y@z). However, if you visit the URL directly, the browser will prompt you to either enter a username and password, or install this [plugin](https://chrome.google.com/webstore/detail/multipass-for-http-basic/enhldmjbphoeibbpdhmjkchohnidgnah) for Chrome and setup the credentials accordingly.\n\n**Uploads through the api are limited to 6MB**\n\nUploads are limited to 6MB through the API because Lambda limits the body size. https://docs.aws.amazon.com/lambda/latest/dg/limits.html#limits-list\n\nUploads directly to the S3 bucket are limited by whatever S3 does.\n\nOnly uploads through the API are checked for and discriminated by the `overwrite` configuration setting.\n\n**Downloads are limited to 10MB**\n\nThis again is a limitation of AWS; specifically API Gateway.\nhttps://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html#api-gateway-limits\n\n# Setup\n\n1. Edit `serverless.yml`\n\n## Configuration\n\n### serverless.yml\n\n```\nservice: elasticpypi\n\nprovider:\n  name: aws\n  runtime: python3.9\n  memorySize: 128\n  stage: dev\n  # profile: \"some-local-aws-config-profile\"\n  # region: us-east-1\n\n  environment:\n    SERVICE: ${self:service}          # See above. Defaults to elasticpypi\n    STAGE: \"/${self:provider.stage}\"  # See above. Defaults to dev\n    BUCKET: \"elasticpypi\"             # CHANGE ME\n    TABLE: \"elasticpypi\"              # You can change me if you want, but do you?\n    USERNAME: \"elasticpypi\"           # You can change me if you want, but do you?\n    PASSWORD: \"something-secretive\"   # CHANGE ME\n    USERS: \"my:blah,your:secret\"      # OPTIONAL, default not present\n    OVERWRITE: false                  # Allow uploads to overwrite already existing packages\n```\n\n#### Users\n\n`USERS` may be a comma delimited string of `username:password`. If present it will be used instead of `USERNAME` and `PASSWORD`\n\n# Deploy\n\n`npm`/`yarn` and `pip` are required to install the necessary packages to deploy.\n\n1. `yarn` or `npm install`\n1. `sls deploy`\n\n\n**Note** that when deploying do not have the virtualenv activated. The `wsgi` plugin for serverless will automatically fetch the python requirements.\n\n# Using\n\nBased on the output of the deploy command or via the AWS console add the url to your pip conf.\n\nThe url should be something like `https://blah.execute-api.region.amazonaws.com/dev/simple`.\n\nMake sure you add a trailing slash as required in the PEP.\n\nMake sure you add your basic authentication credentials to your url.\n\n## Throttling\n\nAWS resources could be throttled. As such, if you are intending to dump a bunch of packages into the S3 bucket, please check your\nservice and account limits. Additionally, changing the read and write capacity of dynamodb may help. It is currently set\nto the lowest possible unit (1).\n\n# Testing\n\n## Requirements\n\n1. Install testing requirements from `test-requirements.txt`\n1. Run `python -m pytest`\n\n## Using Docker\n\nThe example below runs the full test suite. To debug, add `/bin/bash` to the end of the command.\n\n    $ sudo docker build -t elasticpypi-test .\n    $ sudo docker run -it \\\n        -v $(pwd):/code \\\n        elasticpypi-test\n\n# Changelog\n* 2022-05-19 Update serverless and serverless-wsgi versions\n\n* 2022-04-29 Support any cased Authorization header; drop python 3.6 support; updates to a bunch of dependencies\n\n* 2021-03-08 Add Cache-Control header so `pip` caches the package\n\n* 2020-10-12 Multiple users\n\n* 2018-11-26 HTTP Basic Authentication works for in browser browsing\n\n* 2018-01-04 Downloads up to 10 MB work without signed requests\n\n* 2017-12-27 Uploads work. Manually tested with `python setup.py upload` and `twine upload`\n\n* 2017-12-22 Use Python 3, downloads go through the API Gateway so pip's caching now works\n\n* 2017-03-24 The configuration has moved from `./elasticpypi/config.json` to `./serverless.yml` and is consumed by elasticpypi as environment variables. If you are upgrading from an older version, you may need to migrate your configuration to serverless.yml.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhornberg%2Felasticpypi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhornberg%2Felasticpypi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhornberg%2Felasticpypi/lists"}