Saving EDSL objects locally and publishing them to Coop (Expected Parrot's servers).
How to persist EDSL objects locally and share them via Coop (Expected Parrot's servers).
The object itself is defined in another Python file e.g.,
study_survey.py or study_agent_list.py
"public", "private", or "unlisted"For 3:
from study_survey import survey as obj
obj.push(
visibility="unlisted",
description="<paragraph description based on user's descriptive name>",
alias="<valid-url-slug-from-descriptive-name>"
)
After pushing, print the results so the user can see them (URL, alias, visibility).
us-senators-2024If the push fails (e.g., alias already taken), update the alias or description and retry.
| Task | Method |
|---|---|
| Save locally | obj.save('filename') |
| Push to Coop | obj.push(visibility=..., description=..., alias=...) |
| Visibility options | "public", "private", "unlisted" |