Publish Python code to Google Cloud Function
The example provided in git is a python tokenize example.
Clone the repository to your local machine.
git clone https://github.com/ThalesGroup/CipherTrust_Application_Protection.git
Once you have obtained the python code from github, you can then upload the source to GCP Cloud Function. Refer to the screen below.
Click Deploy to deploy the function.
For example,
To work with Python 3.12, the requirements.txt should contain the following:
Function dependencies:
package>=version
functions-framework
requests==2.26.0
urllib3==1.26.8
Note
Set the Memory to 256MB, P11USER, and P11URL to the appropriate values in the variables section.