When developing a source with the Python CDK, what...
# help-connector-development
t
When developing a source with the Python CDK, what is the best way to prefix a stream and thereby group it in the user Interface?
k
A message from kapa.ai
New message text here
s
use the
name
property of the
Stream
class
t
Thanks for the suggestion. I am using a generator function to create streams for each view that exists in the application. I would like to prefix them all with a „View.“. Should I really hardcore that into the return of the name function and not use prefix or namespace concept?
s
If every consumer of the connector should have it then I would use the stream name or the namespace property
Inside the connector code itself
Otherwise I’d let the user configure it from the Ui
u
Copy code
class BaseStream(…):
    @property
    def name(self):
        return "view_" + self.view_name

class Stream()
    view_name = "my_view_name"
I think you achieve using something like this, but definitely something easier achievable using the UI