user5844: I have written some plutus contracts, but they use parameterisation and the params are gained through a REST API.
I am using python3 to interface with the API, but would like to be able to script an automatic process that converts the data into the params structure, and then submit the plutus code/contract with the params to the blockchain.
I can do the conversion between the REST data and the params, but how do I package the code and submit it to the chain via python 3.

user2402: Checkout PyCardano. It is able to serialize python objects to datum and redeemers. Maybe this test example can help: https://github.com/cffls/pycardano/blob/main/integration-test/test/test_all.py#L217 It implements all off-chain code of forty-two example in Plutus-pioneer-program.
Update:
I polished the test into a concrete example with more details here: https://github.com/cffls/pycardano/tree/main/examples/plutus/forty_two

5844: <p>I have written some plutus contracts, but they use parameterisation and the params are gained through a REST API.</p>
<p>I am using python3 to interface with the API, but would like to be able to script an automatic process that converts the data into the params structure, and then submit the plutus code/contract with the params to the blockchain.</p>
<p>I can do the conversion between the REST data and the params, but how do I package the code and submit it to the chain via python 3.</p>
 2402: <p>Checkout PyCardano. It is able to serialize python objects to datum and redeemers. Maybe this test example can help: <a href="https://github.com/cffls/pycardano/blob/main/integration-test/test/test_all.py#L217" rel="nofollow noreferrer">https://github.com/cffls/pycardano/blob/main/integration-test/test/test_all.py#L217</a> It implements all off-chain code of <a href="https://github.com/input-output-hk/plutus-pioneer-program/blob/main/code/week02/src/Week02/Typed.hs" rel="nofollow noreferrer">forty-two</a> example in Plutus-pioneer-program.</p>
<p><strong>Update:</strong></p>
<p>I polished the test into a concrete example with more details here: <a href="https://github.com/cffls/pycardano/tree/main/examples/plutus/forty_two" rel="nofollow noreferrer">https://github.com/cffls/pycardano/tree/main/examples/plutus/forty_two</a></p>
