:orphan:
# TSPythonSetType
Initialize a `TS` object implemented in Python. 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode TSPythonSetType(TS ts, const char pyname[])
```
Collective


## Input Parameters

- ***ts -*** the `TS` context
- ***pyname -*** full dotted Python name [package].module[.{class|function}]



## Options Database Key

- ***-ts_python_type <pyname> -*** python class





## See Also
 [](ch_ts), `TSCreate()`, `TSSetType()`, `TSPYTHON`, `PetscPythonInitialize()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/python/pythonts.c.html#TSPythonSetType">src/ts/impls/python/pythonts.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/impls/python/pythonts.c)


[Index of all TS routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
