{"id":28165511,"url":"https://github.com/alexdemure/gadsqlalchemy","last_synced_at":"2025-05-15T12:11:42.319Z","repository":{"id":290540444,"uuid":"974679758","full_name":"AlexDemure/gadsqlalchemy","owner":"AlexDemure","description":"Wrapper around SQLAlchemy AsyncSession with built-in query execution profiling and connection context management","archived":false,"fork":false,"pushed_at":"2025-04-29T10:45:19.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"production","last_synced_at":"2025-04-29T11:02:27.019Z","etag":null,"topics":["python-sqlaclhemy","sqlaclhemy","sqlalchemy-python"],"latest_commit_sha":null,"homepage":"","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/AlexDemure.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}},"created_at":"2025-04-29T06:31:26.000Z","updated_at":"2025-04-29T10:45:22.000Z","dependencies_parsed_at":"2025-04-29T11:02:28.268Z","dependency_job_id":"ca354433-92a8-425f-ac51-499f487a1941","html_url":"https://github.com/AlexDemure/gadsqlalchemy","commit_stats":null,"previous_names":["alexdemure/gadsqlalchemy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadsqlalchemy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadsqlalchemy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadsqlalchemy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadsqlalchemy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexDemure","download_url":"https://codeload.github.com/AlexDemure/gadsqlalchemy/tar.gz/refs/heads/production","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337539,"owners_count":22054254,"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":["python-sqlaclhemy","sqlaclhemy","sqlalchemy-python"],"created_at":"2025-05-15T12:11:41.505Z","updated_at":"2025-05-15T12:11:42.309Z","avatar_url":"https://github.com/AlexDemure.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/AlexDemure/gadsqlalchemy\"\u003e\n    \u003ca href=\"https://ibb.co/QFMLpQhC\"\u003e\u003cimg src=\"https://i.ibb.co/Lz1mYRBJ/logo.png\" alt=\"logo\" border=\"0\"\u003e\u003c/a\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Wrapper around SQLAlchemy AsyncSession with built-in query execution profiling and connection context management.\n\u003c/p\u003e\n\n---\n\n### Installation\n\n```\npip install gadsqlalchemy\n```\n\n### Usage\n\n```python\n# logger: sqlalchemy.profiler\n\nfrom gadsqlalchemy import Sqlalchemy, Base, CRUD\n\nalchemy = Sqlalchemy(\"postgresql+asyncpg://postgres:postgres@localhost:5432/db\")\n\n\nclass Table(Base):\n    ...\n\n\nclass Crud(CRUD):\n    table = Table\n\n\nclass Service:\n\n    @classmethod\n    async def get(cls):\n        async with alchemy.connect() as session:\n            ...\n\n    @classmethod\n    async def create(cls,):\n        async with alchemy.connect(transaction=True) as session:\n           ...\n\n# testing\nimport faker\n\nfrom gadsqlalchemy.testing import Table\n\nfake = faker.Faker()\n\nclass Dummy(Table):\n    class Meta:\n        model = Table\n\n    name = fake.name()\n\npytest_plugins = [\n    \"gadsqlalchemy.testing.fixtures\",\n]\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdemure%2Fgadsqlalchemy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexdemure%2Fgadsqlalchemy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdemure%2Fgadsqlalchemy/lists"}