Hi, Are there docs or a recommended way to rename a HTTP python connector generated with the airbyte code generator script? Apart from find and replace
w
Walker Philips
02/23/2023, 4:35 PM
You should be able to just change the file/directory name and then change the imports within the python files to match whatever your new naming convention is. If you have already gotten to the "venv" step, you may need to delete the "venv" directory and reactive it and reinstall from requirements for local testing.
m
Macharia Muguku
02/24/2023, 7:14 AM
Hi Walker, thanks for the feedback. There are other/more references to the connector name in the files, all in different casing strategies(camel,snake,underscore etc). E.g the class names, the docker images etc.
w
Walker Philips
02/28/2023, 8:56 PM
There is only one function that I am aware of that I actually matters to handle whihc is the the name() property. If its not overloaded, it will use the File name or the class name. The name property tends to be used for Stream and State management. Otherwise, I dont think the name of the connector really matters all that much. I would change the bare minimum and see how it works. When it comes to importing the connector, you give it a docker image to use but you can name the connector something entirely different so the end user will never see it.