xxxxxxxxxx
# Assuming the class is in a file called `another_file.py`
# Import the class from another_file.py
from another_file import MyClass
# Create an instance of the imported class
my_object = MyClass()
# Use the imported class and its methods/attributes
my_object.some_method()
my_object.some_attribute = value
xxxxxxxxxx
from <file that has the class in> import <the class name you want to import>
# Or do this if you want to import everything inside one file
from <file that has the class in> import *
xxxxxxxxxx
#from your main script
from folder.file import Klasa
#OR
from folder import file
k = file.Klasa()
#OR
import folder.file as myModule
k = myModule.Klasa()