---
description: Returns the list of all pragmas of the contract.
---

# Contract.pragmas()

`pragmas() → List[Tuple[str, str]]`

## Example query

```python
from glider import *

def query():
  contracts = Contracts().exec(5)

  for contract in contracts:
    print(contract.pragmas())


  return contracts
```

## Example output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FGz9W3yHEc21mSBvZo6s4%2Fimage.png?alt=media&#x26;token=0398a06b-6e6c-49fb-8b07-5aec76264c05" alt=""><figcaption></figcaption></figure>
