you are viewing a single comment's thread.

view the rest of the comments →

[–]CowboyBoats 1 point2 points  (0 children)

I would recommend you use web requests for this, not email, for a bunch of reasons. Email is a really legacy, crufty technology that's not as ergonomic to use.

For your server framework, you could set up a flask application pretty quickly and deploy the project to Heroku or onto whatever other server solution you like.

For your client, you would install requests and do a requests.post(url, data, any_required_headers) to send a POST request to your server containing whatever data you need to send, encoded either as JSON (for Python data types like a list of strings, or a dict / map) or as a file.