Brought to you by Michael and Brian - take a Talk Python course or get Brian's pytest book

#27: The PyCon 2017 recap and functional Python

Published Thu, May 25, 2017, recorded Tue, May 23, 2017
  • All videos available: https://www.youtube.com/channel/UCrJhliKNQ8g0qoE_zvL8eVg
  • Lessons learned:
    • pick up swag on day one. vendors run out.
    • take business cards with you and keep them on you
      • Not your actual business cards unless you are representing your company.
      • Cards that have your social media, github account, blog, or podcast or whatever on them.
    • 3x3 stickers are too big. 2x2 plenty big enough
    • lightening talks are awesome, because they are a lot of ranges of speaking experience
    • will definitely do that again
    • try to go to the talks that are important to you, but don’t over stress about it, since they are taped. However, it would be lame if all the rooms were empty, so don’t everybody ditch.
    • lastly: everyone knows Michael.

Michael #2: How to Create Your First Python 3.6 AWS Lambda Function

  • Tutorial from Full Stack Python
  • Walks you through creating an account
  • Select your Python version (3.6, yes!)
  • def lambda_handler(event, context): … # write this function, done!
  • Set and read environment variables (could be connection strings and API keys)

Brian #3: How to Publish Your Package on PYPI

  • jetbrains article
    • structure of the package
      • oops. doesn't include src, see https://pythonbytes.fm/22
    • decent discussion of a the contents of the setup.py file (but interestingly absent is an example setup.py file)
    • good discussion of .pypirc file and links to the test and production PyPi
    • example of using twine to push to PyPI
    • overall: good discussion, but you'll still need a decent example.

Michael #4: Coconut: Simple, elegant, Pythonic functional programming

  • Coconut is a functional programming language that compiles to Python.
  • Since all valid Python is valid Coconut, using Coconut will only extend and enhance what you're already capable of in Python.
  • pip install coconut
    1. Some of Coconut’s major features include built-in, syntactic support for:
      1. Pattern-matching,
      2. Algebraic data-types,
      3. Tail call optimization,
      4. Partial application,
      5. Better lambdas,
      6. Parallelization primitives, and
      7. A whole lot more, all of which can be found in Coconut’s detailed documentation.
  • Talk Python episode coming in a week

Brian #5: Choose a licence

  • MIT : simple and permissive
  • Apache 2.0 : something extra about patents.
  • GPL v3 : this is the contagious one that requires derivitive work to also be GPL v3
  • Nice list with overviews of what they all mean with color coded bullet points: https://choosealicense.com/licenses/

Michael #6: Python for Scientists and Engineers

In other news:


Want to go deeper? Check our projects