{"id":18824660,"url":"https://github.com/embarcadero/interbasepython","last_synced_at":"2026-02-11T14:31:31.571Z","repository":{"id":176506489,"uuid":"647775346","full_name":"Embarcadero/InterBasePython","owner":"Embarcadero","description":"An InterBase driver that implements Python Database API 2.0 support","archived":false,"fork":false,"pushed_at":"2025-04-11T23:19:16.000Z","size":1173,"stargazers_count":17,"open_issues_count":3,"forks_count":1,"subscribers_count":10,"default_branch":"main","last_synced_at":"2026-01-17T10:32:44.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Embarcadero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","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":"2023-05-31T13:49:11.000Z","updated_at":"2025-06-23T15:58:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfc4b5ca-bcf6-41f6-a530-7a8d93a9e862","html_url":"https://github.com/Embarcadero/InterBasePython","commit_stats":null,"previous_names":["embarcadero/interbasepython"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Embarcadero/InterBasePython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Embarcadero%2FInterBasePython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Embarcadero%2FInterBasePython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Embarcadero%2FInterBasePython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Embarcadero%2FInterBasePython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Embarcadero","download_url":"https://codeload.github.com/Embarcadero/InterBasePython/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Embarcadero%2FInterBasePython/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29335173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T14:07:45.431Z","status":"ssl_error","status_checked_at":"2026-02-11T14:07:45.080Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-08T00:57:06.596Z","updated_at":"2026-02-11T14:31:31.566Z","avatar_url":"https://github.com/Embarcadero.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InterBase Driver for Python\n\n\u003ca href=\"https://www.embarcadero.com/br/products/interbase\"\u003e\u003cimg alt=\"InterBase\" src=\"https://d2ohlsp9gwqc7h.cloudfront.net/images/logos/logo-page/ib-logo-1024.png\" align=\"right\" width=\"250\"\u003e\u003c/a\u003e\n\n\u003e A powerful, [PEP-249-compliant](https://peps.python.org/pep-0249/) Python driver for **InterBase**, supporting both 32-bit and 64-bit.\n\nThe **InterBase Driver for Python** is based on the [FDB driver](http://www.firebirdsql.org/en/devel-python-driver/) and provides access to the [InterBase](https://interbase.com/) RDBMS using a robust and flexible Python interface. This package supports the **Python Database API 2.0** standard (PEP-249) while offering extended access to the native InterBase API.\n\n📚 [InterBase Documentation](https://docwiki.embarcadero.com/InterBase/2020/en/Main_Page)  \n🔗 [GitHub Source Code](https://github.com/Embarcadero/InterBasePython)\n\n---\n\n## ✨ Features\n\n- PEP-249 compliance  \n- Full Unicode and character set support  \n- Native API access  \n- Multiple independent transactions per connection  \n- Distributed transaction support  \n- Automatic conversion of textual data  \n- Prepared statement support\n\n---\n\n## 📦 Installation\n\n\u003e Requires Python 3.x (32-bit or 64-bit version to match InterBase client).\n\nInstall via PyPI:\n```bash\npip install interbase\n```\n\nOr install from the GitHub repository:\n```bash\npip install git+https://github.com/Embarcadero/InterBasePython.git\n# or via SSH:\npip install git+ssh://git@github.com/Embarcadero/InterBasePython.git\n```\n\n---\n\n## 🧪 Setting Up a Test Database\n\n```bash\ncd test/files\nisql -i create-test-db.sql\n```\n\n---\n\n## 🔌 Sample Usage\n\n### Basic Connection\n```python\nimport interbase\n\ncon = interbase.connect(\n    host=IBTEST_HOST,                   # Hostname or IP address of the InterBase server\n    database=IBTEST_DB_PATH,            # Path to the database file on the server\n    user=IBTEST_USER,                   # Username for authentication\n    password=IBTEST_PASSWORD,           # Password for authentication\n    sql_dialect=IBTEST_SQL_DIALECT,     # SQL dialect to use (usually 1 or 3)\n    ssl=IBTEST_SERVER_PUBLIC_FILE is not None,         # Enable SSL if a public server key is provided\n    server_public_file=IBTEST_SERVER_PUBLIC_FILE       # Path to the server's public SSL key file (if SSL is enabled)\n)\n```\n\n### Executing a Query\n```python\ncur = con.cursor()\ncur.execute(\"SELECT * FROM employees\")\nfor row in cur:\n    print(row)\n```\n\n### Using Parameters\n```python\ncur.execute(\"INSERT INTO employees(name, age) VALUES (?, ?)\", (\"John Doe\", 34))\ncon.commit()\n```\n\n### Handling Transactions\n\n#### Manual Transaction Control\n```python\ntransaction = con.main_transaction\ntransaction.begin()\n\ncursor = transaction.cursor()\ncursor.execute(\"INSERT INTO t (c1) VALUES (1)\")\ntransaction.commit()\n```\n\n#### Using a Context Manager\n```python\nimport interbase\n\nwith interbase.TransactionContext(con) as tr:\n    cursor = tr.cursor()\n    cursor.execute(\"INSERT INTO t (c1) VALUES (1)\")\n# The transaction is automatically committed when the block ends.\n```\n\n---\n\n## 🧰 More Examples\nExplore the `test` folder in the [GitHub Repository](https://github.com/Embarcadero/InterBasePython) for full coverage of features, including:\n\n- Working with BLOBs  \n- Using metadata APIs  \n- Working with stored procedures  \n- SSL support  \n- Error handling  \n\n---\n\n## 🤝 Contributing\nPull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.\n\n---\n\n## 📜 License\nThis project is licensed under the Embarcadero license terms.\n\n---\n\n\u003e 🔗 Stay up to date with the latest changes and enhancements to InterBase by following the official [Embarcadero Blog](https://blogs.embarcadero.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembarcadero%2Finterbasepython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembarcadero%2Finterbasepython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembarcadero%2Finterbasepython/lists"}