title: How can I limit memory usage for a Python script via command line?
body: <p>How can I limit memory usage for a Python script via command line?</p>
  
  <p>For context, I'm implementing a code judge so I need to run every script students submit, I was able to do the same for Java with the following command: </p>
  
  <pre><code>java -Xmx&lt;memoryLimit&gt; Main 
  </code></pre>
  
  <p>So far no luck with Python, any ideas?</p>
  
  <p>PS: I'm using Python 3.8</p>
  
  <p>Thank you.</p>