{"id":18798000,"url":"https://github.com/polypheny/polypheny-connector-python","last_synced_at":"2025-06-30T06:05:30.632Z","repository":{"id":41185739,"uuid":"423216332","full_name":"polypheny/Polypheny-Connector-Python","owner":"polypheny","description":"Polypheny Connector for Python ","archived":false,"fork":false,"pushed_at":"2025-02-01T10:28:28.000Z","size":3338,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-18T07:05:43.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/polypheny.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":"2021-10-31T17:33:53.000Z","updated_at":"2025-02-01T10:24:18.000Z","dependencies_parsed_at":"2023-12-22T16:39:43.523Z","dependency_job_id":"1ecccb29-0233-45b9-bed8-ef7122730a97","html_url":"https://github.com/polypheny/Polypheny-Connector-Python","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/polypheny/Polypheny-Connector-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polypheny%2FPolypheny-Connector-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polypheny%2FPolypheny-Connector-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polypheny%2FPolypheny-Connector-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polypheny%2FPolypheny-Connector-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polypheny","download_url":"https://codeload.github.com/polypheny/Polypheny-Connector-Python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polypheny%2FPolypheny-Connector-Python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262720642,"owners_count":23353448,"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":[],"created_at":"2024-11-07T22:10:30.143Z","updated_at":"2025-06-30T06:05:30.582Z","avatar_url":"https://github.com/polypheny.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://polypheny.org/\"\u003e\n        \u003cpicture\u003e\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/polypheny/Admin/master/Logo/logo-white-text_cropped.png\"\u003e\n            \u003cimg width='50%' alt=\"Light: 'Resume application project app icon' Dark: 'Resume application project app icon'\" src=\"https://raw.githubusercontent.com/polypheny/Admin/master/Logo/logo-transparent_cropped.png\"\u003e\n        \u003c/picture\u003e\n    \u003c/a\u003e    \n\u003c/p\u003e \n\n\n# Polypheny Connector for Python\n\nThis enables Python programs to access Polypheny databases, using an API that is compliant with the [Python Database API Specification v2.0 (PEP 249)](https://www.python.org/dev/peps/pep-0249/).\n\n\n## Installation\n\nThe recommended way to install the Python Connector for Polypheny is via pip:\n```bash\npip install polypheny\n```\n\nAlternatively, if you prefer to install the package manually you can also download the latest [release](https://github.com/polypheny/Polypheny-Connector-Python/releases/), extract the archive and install it manually:\n```bash\ncd /path/to/polyphney-connector-python-x.y.z/\npython setup.py install\n```\n\n\n## Getting Started\n\nA few examples of the most common functionalities provided by the adapter:\n\n\n```python3\nimport polypheny\n\n# Connect to locally running Polypheny via UNIX sockets (on Linux, BSD and macOS)\ncon = polypheny.connect()\n\n# Unencrypted over the network (all systems)\ncon = polypheny.connect(\n  ('127.0.0.1', 20590),\n  username='pa',\n  password='',\n  transport='plain',\n)\n\n# Get a cursor\ncursor = con.cursor()\n\n# Create a new table\ncursor.execute(\"CREATE TABLE dummy (id INT NOT NULL, text VARCHAR(2), num INT, PRIMARY KEY(id))\")\n\n# Insert values into table\ncursor.execute(\"INSERT INTO dummy VALUES (407 , 'de', 93)\")\ncon.commit()\n\n# Execute a query\ncursor.execute(\"SELECT * from dummy\")\n\nprint(\"\\nRelational results from SQL\")\nfor row in cursor:\n    print(\"\\t\", row)\n\n# Accessing data using MQL\ncursor.executeany('mongo', 'db.dummy.find()', namespace='public')\n\nprint(\"\\nDocument results from MQL (as Python dicts)\")\nfor doc in cursor:\n    print(\"\\t\", doc)\n\ncursor.execute(\"DROP TABLE dummy\")\n\n# Close the connection\ncon.close()\n```\n\nAn in-depth and more detailed documentation can be found [here](https://docs.polypheny.com/en/latest/drivers/python/overview).\n\n## Tests\nRun the tests with coverage report:\n```\ncoverage run --source polypheny -m pytest \u0026\u0026 coverage report -m\n```\n\n\n## Roadmap\nSee the [open issues](https://github.com/polypheny/Polypheny-DB/labels/A-python) for a list of proposed features (and known issues).\n\n\n## Contributing\nWe highly welcome your contributions to the _Polypheny Connector for Python_. If you would like to contribute, please fork the repository and submit your changes as a pull request. Please consult our [Admin Repository](https://github.com/polypheny/Admin) and our [Website](https://polypheny.org) for guidelines and additional information.\n\nPlease note that we have a [code of conduct](https://github.com/polypheny/Admin/blob/master/CODE_OF_CONDUCT.md). Please follow it in all your interactions with the project. \n\n\n## License\nThe Apache 2.0 License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolypheny%2Fpolypheny-connector-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolypheny%2Fpolypheny-connector-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolypheny%2Fpolypheny-connector-python/lists"}