Skip to main content

pure Python SQL Anywhere database interface

Project description

This package provides a python interface to the SQL Anywhere database server. This interface conforms to PEP 249.

Requirements

Before installing the sqlanydb interface please make sure the following components are installed on your system.

  • Python 2.4 or greater

  • Python ctypes module if missing

  • SQL Anywhere 10 or higher

Installing the sqlanydb module

Run the following command as an administrative user to install sqlanydb:

python setup.py install

Alternatively, you can use pip:

pip install sqlanydb

Testing the sqlanydb module

To test that the Python interface to SQL Anywhere is working correctly first start the demo database included with your SQL Anywhere installation and then create a file named test_sqlany.py with the following contents:

import sqlanydb
conn = sqlanydb.connect(uid='dba', pwd='sql', eng='demo', dbn='demo' )
curs = conn.cursor()
curs.execute("select 'Hello, world!'")
print "SQL Anywhere says: %s" % curs.fetchone()
curs.close()
conn.close()

Run the test script and ensure that you get the expected output:

> python test_sqlany.py
SQL Anywhere says: Hello, world!

License

This package is licensed under the terms of the Apache License, Version 2.0. See the LICENSE file for details.

Feedback and Questions

For feedback on this project, or for general questions about using SQL Anywhere please use the SQL Anywhere Forum at http://sqlanywhere-forum.sap.com/

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlanydb-1.0.6-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sqlanydb-1.0.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sqlanydb-1.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0707f10e8abcc23224a619aa43e5211b8f73eded0ab41da0c3c6d963deebf009
MD5 c8da935a91127598daa8ec848d5f3bde
BLAKE2b-256 4618786def35cb940c8a14cfb85ffb6202a367e47f4c3981eb007cd689227fa9

See more details on using hashes here.

Supported by

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