mirror of
https://github.com/prowler-cloud/prowler.git
synced 2025-12-19 05:17:47 +00:00
11 lines
237 B
Python
11 lines
237 B
Python
import toml
|
|
|
|
data = toml.load("pyproject.toml")
|
|
# Modify field
|
|
data["project"]["name"] = "prowler-cloud"
|
|
|
|
# To use the dump function, you need to open the file in 'write' mode
|
|
f = open("pyproject.toml", "w")
|
|
toml.dump(data, f)
|
|
f.close()
|