{"id":15921844,"url":"https://github.com/iwitaly/psycopg2-for-aws-lambda","last_synced_at":"2025-04-03T12:21:59.378Z","repository":{"id":150188292,"uuid":"97760039","full_name":"iwitaly/psycopg2-for-aws-lambda","owner":"iwitaly","description":"Build of the popular Python lib psycopg2 for AWS Lambda","archived":false,"fork":false,"pushed_at":"2017-10-16T09:41:25.000Z","size":807,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-09T01:42:54.947Z","etag":null,"topics":["postgresql","psycopg2","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"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/iwitaly.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":"2017-07-19T20:49:43.000Z","updated_at":"2018-08-25T16:15:52.000Z","dependencies_parsed_at":"2023-04-10T02:33:15.477Z","dependency_job_id":null,"html_url":"https://github.com/iwitaly/psycopg2-for-aws-lambda","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/iwitaly%2Fpsycopg2-for-aws-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwitaly%2Fpsycopg2-for-aws-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwitaly%2Fpsycopg2-for-aws-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwitaly%2Fpsycopg2-for-aws-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iwitaly","download_url":"https://codeload.github.com/iwitaly/psycopg2-for-aws-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998494,"owners_count":20866755,"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":["postgresql","psycopg2","python"],"created_at":"2024-10-06T20:02:29.056Z","updated_at":"2025-04-03T12:21:59.359Z","avatar_url":"https://github.com/iwitaly.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[psycopg2](http://initd.org/psycopg/) is a compiled Python's driver for SQL. That is why when you deploy it to AWS Lambda you probably get an error:\n\u003e _psycopg2.so file had incorrect ELF headers\n\nor\n\n\u003e No module named _psycopg\n\nCheck [Stack](https://stackoverflow.com/questions/36607952/using-psycopg2-with-lambda-to-update-redshift-python) for more about this.\n\n---\n\n`psycopg2/` and `psycopg2-3.6/` are already compiled versiones of lib [psycopg2](http://initd.org/psycopg/) for AWS Linux.\nJust download it, put it into your `vendored/` folder and import into your source code:\n\n```\nhere = os.path.dirname(os.path.realpath(__file__))\nsys.path.append(os.path.join(here, \"./vendored\"))\n```\n\nFeel free to compile it yourself with a Docker with [this tutorial](https://serverlesscode.com/post/deploy-scikitlearn-on-lamba/).\n\nEnjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwitaly%2Fpsycopg2-for-aws-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiwitaly%2Fpsycopg2-for-aws-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwitaly%2Fpsycopg2-for-aws-lambda/lists"}