Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize transports under itoolkit.transport #18

Merged
merged 2 commits into from
Dec 21, 2018
Merged

Conversation

kadler
Copy link
Member

@kadler kadler commented Dec 21, 2018

Move all transports a single package, mapped as such:
itoolkit.lib.iLibCall -> itoolkit.transport.DirectTransport
itoolkit.rest.iRestCall -> itoolkit.transport.HttpTransport
itoolkit.db2.iDB2Call -> itoolkit.transport.DatabaseTransport

The old modules are now deprecated, but kept for compatibility.
They simply forward to the new module from the mapping above. The
old names will be removed if there is a 2.0.0 release.

All references to the old module names have been updated, except
those in the deprecated modules themselves.

Move all transports a single package, mapped as such:
 itoolkit.lib.iLibCall -> itoolkit.transport.DirectTransport
 itoolkit.rest.iRestCall -> itoolkit.transport.HttpTransport
 itoolkit.db2.iDB2Call -> itoolkit.transport.DatabaseTransport

The old modules are now deprecated, but kept for compatibility.
They simply forward to the new module from the mapping above. The
old names will be removed if there is a 2.0.0 release.

All references to the old module names have been updated, except
those in the deprecated modules themselves.
@kadler
Copy link
Member Author

kadler commented Dec 21, 2018

This PR fixes #1 by re-organizing the imports under a common sub-package.

It also fixes #15 - you can use the itoolkit.transport.DatabaseTransport with any PEP-249 compliant database connection, eg.

import pyodbc
from itoolkit.transport import DatabaseTransport

conn = pyodbc.connect("DSN=mydsn")
transport = DatabaseTransport(conn)

@kadler kadler merged commit c94cbbf into master Dec 21, 2018
This was referenced Dec 21, 2018
@kadler kadler deleted the transport_reorg branch December 21, 2018 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant