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:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.