Skip to main content

SAP ASE (Sybase) for SQLAlchemy

Project description

sqlalchemy-sybase

https://img.shields.io/pypi/dm/sqlalchemy-sybase.svg

SAP ASE (Sybase) dialect for SQLAlchemy.

Objectives

This is a fork of SQLAlchemy’s internal “sybase” dialect which is soon to be deprecated and will be removed from a future release.

Pre-requisites

You will need an ODBC driver for SAP ASE installed on the machine from which you want to connect to the SAP ASE server. This dialect is tested with the SAP ASE ODBC driver (libsybdrvodb-sqllen8.so on Linux).

Also, if you are running on Linux and using unixODBC, check the version via odbcinst -j from a console prompt (or use the odbcinst module). The official repositories of several Linux distributions contain versions of unixODBC that are quite old and somewhat buggy.

Installing

SQLAlchemy and pyodbc are specified as requirements so pip will install them if they are not already in place. To install, just:

pip install sqlalchemy-sybase

Getting Started

Create an ODBC DSN (Data Source Name) that points to your SAP ASE database. Then, in your Python app, you can connect to the database via:

from sqlalchemy import create_engine
engine = create_engine("sybase+pyodbc://scott:tiger@your_dsn")

For other ways of connecting see the Getting Connected page in the Wiki.

The SQLAlchemy Project

sqlalchemy-sybase is affiliated with the SQLAlchemy Project and adheres to the same standards and conventions as the core project.

Development / Bug reporting / Pull requests

Please refer to the SQLAlchemy Community Guide for guidelines on coding and participating in this project.

Code of Conduct

Above all, SQLAlchemy places great emphasis on polite, thoughtful, and constructive communication between users and developers. Please see the current Code of Conduct at Code of Conduct.

License

sqlalchemy-sybase is distributed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlalchemy-sybase-1.0.4.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

sqlalchemy_sybase-1.0.4-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file sqlalchemy-sybase-1.0.4.tar.gz.

File metadata

  • Download URL: sqlalchemy-sybase-1.0.4.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for sqlalchemy-sybase-1.0.4.tar.gz
Algorithm Hash digest
SHA256 ef6d8dd4bcdab6e3630ffecadc14b640034f84f2a17d79666864a4bfeb689acc
MD5 0f251c268eb58f454dd6ab8df3e9b354
BLAKE2b-256 9136676e855fb7950f049693f81b7d4da5a3feda77e0e0f4fe514f68d8ae4d82

See more details on using hashes here.

File details

Details for the file sqlalchemy_sybase-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: sqlalchemy_sybase-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for sqlalchemy_sybase-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9b4a52dc5734b9834d618eb2dc4424dcf5a3f422b79036a28006912c97e5cfbb
MD5 7ec06d45a3e3f5bbc6f0b1fa9d8aead7
BLAKE2b-256 84b698a0e1bd33ff72a482f2f872cc7dbeb5e1ffe14b85420e0b8e021a47a327

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page