Python class - How to use in different python program

I have a class defined in one python program. I want to use the same class in another program too but without copying the class into that program. How can I use the class definition from one python program in another. Could you please let me know if there is a way.

Thanks.

Answers


Python tutorial, ยง6, "Modules"


Need Your Help

Executing code at page-level from Background.js and returning the value

javascript google-chrome google-chrome-extension

I've got a web page with its own scripts and variables that I need to execute and retrieve return values from my extension's Background.js.

unit of work in a java 'main' application

java hibernate orm

I am doing this in each and every DAL method: