Skip to content

Conversation

@strangeways
Copy link
Contributor

This PR adds a script that gets a list of partners from Airtable, generates an export key for each, creates a Onetime Secret link for each key, and then saves the links back to the Airtable base.

Updates to the README are also included.

…n export key for each, creates a Onetime Secret link for each key, and then saves the links back to the Airtable base.
@strangeways strangeways requested a review from codygordon August 19, 2025 20:37
OTS_DEFAULT_URI = "https://us.onetimesecret.com/api/v2/"


class OneTimeSecret(object):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like something we might want to add to parsons, right?

from pywell.entry_points import run_from_cli

# MUST be above all parsons imports to avoid full parsons dependencies
os.environ["PARSONS_SKIP_IMPORT_ALL"] = "1"
Copy link
Contributor

@codygordon codygordon Aug 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this flag won't do anything, was removed from parsons a while ago. all you need to do is set the env var PARSONS_LIMITED_DEPENDENCIES=1 before installing requirements

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've updated the script and README to use the correct method.

Copy link
Contributor

@codygordon codygordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty cool, just a couple small comments! we should add the OTS class to parsons when you have capacity, I can review the PR there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants