---
title: register (DataSourceRegistration)
description: "DataSourceRegistration.register method in PySpark: Registers a Python user-defined data source."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/datasourceregistration/register
---

# register (DataSourceRegistration)

Registers a Python user-defined data source.

## Syntax

```
register(dataSource: type)
```

## Parameters

| Parameter    | Type | Description                                                                      |
| ------------ | ---- | -------------------------------------------------------------------------------- |
| `dataSource` | type | The data source class to be registered. It should be a subclass of `DataSource`. |
