Skip to content

Project Structure

├── main.py # Main entry file
├── requirements.txt # Python dependencies
├── README.md # Project documentation
├── input_schema.json # UI Worker input configuration file
├── output_schema.json # UI Worker output configuration file
├── sdk.py # SDK file
├── sdk_pb2.py
├── sdk_pb2_grpc.py
├── main.js # Main entry file
├── package.json # Node.js dependencies
├── README.md # Project documentation
├── input_schema.json # UI Worker input configuration file
├── output_schema.json # UI Worker output configuration file
├── sdk.js # SDK file
├── sdk_pb.js
├── sdk_grpc_pb.js
├── main.go # Source entry file
├── go.mod # Go module file
├── go.sum # Go dependencies checksum
├── README.md # Project documentation
├── input_schema.json # UI Worker input configuration file
├── output_schema.json # UI Worker output configuration file
├── GoSdk/ # SDK directory
│ ├── sdk.go
│ ├── sdk.pb.go
│ └── sdk_grpc.pb.go
  • main.py / main.js: The runtime entry point for Python and Node.js Workers.
  • main.go: The source entry point for Go Workers. Go ZIP uploads must include the compiled Linux amd64 executable main at the ZIP root.
  • The filename must be main, with the extension depending on the chosen language.
LanguageFilePurpose
Node.jspackage.jsonNode.js dependencies
Pythonrequirements.txtPython dependencies
Gogo.modGo module definition

These files declare all dependencies required to run the project.

  • UI Worker input configuration file
  • Defines the input form displayed on the platform
  • See Input Schema for details
  • UI Worker output configuration file
  • Defines the output data table structure (column headers)
  • See Output Schema for details
  • Documentation of Worker functionality
  • Includes usage instructions and important notes
  • Get runtime parameters passed when the script starts
  • Access task configuration, authentication info, etc.
  • Define data table structure (headers)
  • Store collected result data
  • Support batch saving and resume from breakpoint
  • Standardized log interface
  • Support multiple log levels: INFO, WARN, ERROR
  • Logs are automatically collected and displayed by the platform