Registry / http-networking / pyrfc
library3.3.1pypypiunverified

pyrfc provides Python bindings for SAP NetWeaver RFC SDK, enabling remote function calls to SAP systems. Version 3.3.1 supports Python >=3.8. Active maintenance with periodic releases.

pip install pyrfc
INSTALL
IMPORT
SIG · PYRFC
P
pyrfc
http-networkingpythonv3.3.1
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Connection
from pyrfc import Connection
Main connection class since v2.0

Connect to SAP, call RFC_READ_TABLE, and print results.

from pyrfc import Connection conn = Connection( ashost='<host>', sysid='<sysid>', client='<client>', user=os.environ.get('SAP_USER', '<user>'), passwd=os.environ.get('SAP_PASS', '<password>'), lang='EN' ) result = conn.call('RFC_READ_TABLE', QUERY_TABLE='T001', ROWCOUNT=10) for row in result['DATA']: print(row['WA']) conn.close()
Debug
Known issues
breakingpyrfc 2.0 introduced Connection class replacing direct module functions. Old code using pyrfc.connect() will break.
fix
Use from pyrfc import Connection and instantiate Connection object.
affects: >=2.0
gotchaGC side-effect: assigning a Connection instance to a local variable and letting it go out of scope may cause segfault (the C extension destructor triggers GC of the native SDK).
fix
Explicitly call conn.close() or use a context manager if available (not yet built-in in 3.x). Keep a reference to the connection until done.
affects: all
gotchaPassword with special characters (especially single quotes) can cause syntax errors or connection failures.
fix
Use raw strings or escape quotes properly. Pass password via environment variable to avoid shell interpolation.
affects: all
deprecatedpyrfc 2.x deprecated ssl parameters (e.g., ssl_sni, ssl_sni_disable) in favor of a unified saprfc ini file approach.
fix
Use saprfc.ini configuration file for SSL settings. See pyrfc documentation for details.
affects: >=2.0
Upgrade
Version history
3.3.1latest on PyPI · released Jan 9, 2024
Audit
Dependencies
sapnwrfcrequiredSAP NetWeaver RFC SDK library (required at runtime)
python-socketiooptionalWebSocket support (optional)
Agent activity
12 hits · last 30 days
node
10
Resources
pyrfc — pip install pyrfc · libregistry