# Ansible Python API  - send file as parameter

**URL:** <https://forum.ansible.com/t/ansible-python-api-send-file-as-parameter/28437>\
**Category:** Ansible Project\
**Created:** [August 28, 2018, 5:13am UTC](https://forum.ansible.com/t/ansible-python-api-send-file-as-parameter/28437 "2018-08-28T05:13:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balaji1](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@Balaji1](https://forum.ansible.com/u/Balaji1)\
**Post date:** [August 28, 2018, 5:13am UTC](https://forum.ansible.com/t/ansible-python-api-send-file-as-parameter/28437/1 "2018-08-28T05:13:52Z")

</div>

Hello All,

Can anyone please help to create an equivalent of a command

ansible-playbook -i environments playbooks/site.yml -u user\_name -e “@build.json”

I am very curious to know how to write this " -e “@build.json” " in python.

Background - I am trying to run above command from a python script.

Thanks,  
Balaji Chavdi
