---
title: "Writing Python Scripts in DreamFactory | DreamFactory"
description: "How to write Python inside DreamFactory to add custom logic to a generated API — validation, transformation, or calls to another service — without standing…"
url: "https://www.dreamfactory.com/videos/python-scripts"
---

[Home](https://www.dreamfactory.com/) › [Videos](https://www.dreamfactory.com/videos) › Writing Python Scripts in DreamFactory

# Writing Python Scripts in DreamFactory

Tutorial·10 August 2016·6 min 35 sec

How to write Python inside DreamFactory to add custom logic to a generated API — validation, transformation, or calls to another service — without standing up a separate application tier.

**Recorded in 2016.** The concepts still apply, but the interface shown predates the current DreamFactory release. Some steps may differ in the current release.

## What you’ll learn

* Where Python scripts attach to an API lifecycle
* Adding validation and transformation logic in Python
* Avoiding a separate application tier for custom logic

[Book a Demo](https://www.dreamfactory.com/demo)[More on our YouTube channel](https://www.youtube.com/@DreamfactoryAPI)

## More videos

* [Writing PHP Scripts in DreamFactory](https://www.dreamfactory.com/videos/php-scripts)
* [Instant APIs for Oracle Databases](https://www.dreamfactory.com/videos/oracle-database-apis)
* [Using Virtual Foreign Keys Across SQL and NoSQL](https://www.dreamfactory.com/videos/virtual-foreign-keys-sql-nosql)
* [Admin Console: the Packages Tab](https://www.dreamfactory.com/videos/admin-console-packages-tab)

[Browse all videos ›](https://www.dreamfactory.com/videos)

Video: https://www.youtube.com/watch?v=UcqeiRtZ07s
