Skip to main content

It is a library that connects to IBM Power Systems (IBM i), with pyodbc and SSH connection.

Project description

Systems i Access client for python

It is a client library for access to IBM System i with ODBC and SSH.

Features [x] Support for Python 3.

Installation of dependencies

Before installing pyodbc you must install the packages from Debian/Ubuntu systems.

1.1 INSTALLING ON DEBIAN-BASED LINUX DISTRIBUTIONS.

  sudo apt update
  sudo apt install libpq-dev python-dev python3-dev
  sudo apt install python3.5-dev python3.6-dev
  sudo apt install unixodbc-dev
  sudo apt install build-essential

To connect to IBM iSeries systems we will need to download a .deb file, this library can be downloaded from the IBM page https://www.ibm.com/support/pages/ibm-i-access-client-solutions. So let's create an account, log in, and download the IBM i Access for Linux package.

Example installation instructions:

  sudo apt install ./ibm-iaccess-1.1.0.15-1.0.ppc64el.deb

Installation

Install pyiaccess.

pip install pyiaccess

Usage

Create a .env file in the root of your project

ISERIE_DSN = LIBRARY
ISERIE_HOST = HOST
ISERIE_USER = USER
ISERIE_PASSWORD = PASSWORD

SFTP_PORT = 22
SFTP_REMOTE_PATH = "/home/repo/"

Configuration of environment variables of the project or application

import os
from pyiaccess.manage import set_env

# Define .env file with absolute or complete path.
path_env = '/home/user/proyect/.env'

# Define .env file with relative path of the project or application.
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
path_env = os.path.join(BASE_DIR, ".env")

# Load the environment variables.
set_env(path_env)

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

PyiAccess-0.1.1b1.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file PyiAccess-0.1.1b1.tar.gz.

File metadata

  • Download URL: PyiAccess-0.1.1b1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for PyiAccess-0.1.1b1.tar.gz
Algorithm Hash digest
SHA256 6f798acb522002f7cb4d27bf4ec51ff114b77f0fa64565fd9b9d5617688213f0
MD5 aac65197e1dc2220d410dfb0413f2367
BLAKE2b-256 fb019c322fd275bab936d93021e7b7a284e8503411f224f7312761784acf738e

See more details on using hashes here.

Supported by

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