# Any way to create expectation suite from code on the fly?

**URL:** <https://discourse.greatexpectations.io/t/any-way-to-create-expectation-suite-from-code-on-the-fly/1789>\
**Category:** GX Core Support\
**Created:** [July 2, 2024, 1:49pm UTC](https://discourse.greatexpectations.io/t/any-way-to-create-expectation-suite-from-code-on-the-fly/1789 "2024-07-02T13:49:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://discourse.greatexpectations.io/u/Alex)\
**Post date:** [July 2, 2024, 1:49pm UTC](https://discourse.greatexpectations.io/t/any-way-to-create-expectation-suite-from-code-on-the-fly/1789/1 "2024-07-02T13:49:08Z")

</div>

Is there a way to create expectation suite from code on the fly?  
I know how to create checkpoint,  
and I know there is “interactive validator” approach like this:

validator.expect\_column\_values\_to\_not\_be\_null(column=“passenger\_count”)

but I do NOT need to RUN the expectation with validator immediately,  
I need to **reconstruct expectation suite with all expectations** I need and then run a Checkpoint ONLY ONCE
