Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
tangowithfoxtrot committed Jan 8, 2024
1 parent 03f95fc commit 23d7896
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions languages/python/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@

project = client.projects().create("ProjectName", organization_id)
project2 = client.projects().create("Project - Don't Delete Me!", organization_id)
updated_project = client.projects().update(project.data.id, "Cool New Project Name", organization_id)
updated_project = client.projects().update(
project.data.id, "Cool New Project Name", organization_id
)
get_that_project = client.projects().get(project.data.id)

input("Press Enter to delete the project...")
Expand All @@ -38,13 +40,27 @@
# -- Example Secret Commands --

secret = client.secrets().create(
"TEST_SECRET", "This is a test secret", organization_id, "Secret1234!", [project2.data.id])
"TEST_SECRET",
"This is a test secret",
organization_id,
"Secret1234!",
[project2.data.id],
)
secret2 = client.secrets().create(
"Secret - Don't Delete Me!", "This is a test secret that will stay", organization_id, "Secret1234!",
[project2.data.id])
"Secret - Don't Delete Me!",
"This is a test secret that will stay",
organization_id,
"Secret1234!",
[project2.data.id],
)
secret_updated = client.secrets().update(
secret.data.id, "TEST_SECRET_UPDATED", "This as an updated test secret", organization_id, "Secret1234!_updated",
[project2.data.id])
secret.data.id,
"TEST_SECRET_UPDATED",
"This as an updated test secret",
organization_id,
"Secret1234!_updated",
[project2.data.id],
)
secret_retrieved = client.secrets().get(secret.data.id)

input("Press Enter to delete the secret...")
Expand Down

0 comments on commit 23d7896

Please sign in to comment.