Python Cheat Sheet

In collaboration with DevelopMentor to get the word out about our Python curriculum, I built a simple but fairly comprehensive Python cheat sheet. It’s pretty thorough at 16 pages in length and covers a diverse set of topics including Language, Types, Ecosystem, Databases, File I/O (JSON, XML, Text, etc), and more.

python-cheetshet-download-imagePython Cheat Sheet.pdf

If you find this useful please mention it on Twitter or forward it to a friend.

Want deeper Python training? Check out my over two hours of Python videos on my YouTube channel and consider my DevelopMentor Python courses for classroom training.

MongoDB Logo

Announcing the 2015 MongoDB Masters

NEW YORK, NY and PALO ALTO, CA – March 10, 2015 – MongoDB today announced the 2015 members of the MongoDB Masters, an annual program run by MongoDB to recognize and empower leaders in the MongoDB community. Comprised of core contributors and community evangelists, the MongoDB Masters are dedicated to sharing their passion and technical expertise with the MongoDB community around the world and play a vital role in the adoption, education and advancement of MongoDB.

** I’m honored to be one of only 35 MongoDB Masters for 2015! **

Read the whole announcement on MongoDB’s blog
http://www.mongodb.com/blog/post/announcing-2015-mongodb-masters

Announcing MongoDB for Python Developers Course

I’m very exited to announce the latest course I’ve written for DevelopMentor:

MongoDB for Python Developers

If you’re looking for MongoDB training for you or your team, please consider DevelopMentor. We also have my MongoDB for .NET developers course if you live in the .NET camp.

Here’s some more background on this course.
Continue reading

Better Python Integration in Windows: Shebangs and Version Selectors

I’ve written several times on efforts to make Python better on Windows. I also have an outstanding request to the Windows 10 team to get Python built directly into Windows 10 (please upvote it!). In this post, I’ll show you some very simple techniques to put Python on Windows relatively on par with Python on OS X and Linux.

On OS X and Linux, we can use a special kind of comment at the top of our script called a shebang.

#!/usr/bin/env python3
# normal python code here...

Continue reading

Shipping Python with Windows 10

Python is awesome but Python on Windows always feels like the red-headed step child. With Window 10’s UserVoice campaign, you can help me change that! Let’s start here:

Please vote for this request on UserVoice:

Ship Python 3 and Python 2 with Windows 10
https://windows.uservoice.com/forums/265757-windows-feature-suggestions/suggestions/6693586-ship-python-3-and-python-2-with-windows-10

Ubuntu and OS X include the Python runtimes by default. Please Include the 64-bit version of Python 3 and Python 2 with Windows.

I believe many developers choose OS X and Linux over Windows because these OSes are more open source and CLI friendly. You have done a lot of fix the CLI experience in Windows 10. Please make Python development better on Windows by including it out of the box.

Need more inspiration? Watch this video about the future of Python (hint: it involves Windows)

Ever wonder how big the .NET and Python communities are?

Do you ever wonder how big .NET and Python communities are? I’m working on an article about Python and .NET and this comparison definately came to mind. So I did some research on meetup.com.

I chose seven locations:

  1. Chicago, IL
  2. Los Angeles, CA
  3. New York, NY
  4. Seattle, WA
  5. Portland, OR
  6. San Francisco, CA
  7. Silicon Valley, CA

And did a search for meetups on .NET and on Python. Here is a graph of the results:

Relative size of python and ,net communities via user groups.[click image to enlarge] Continue reading

Much of my blog’s sample apps are now on GitHub and Azure

Here is a quick announcement if you have been downloading or using any of the libraries and sample applications from my blog. The most popular ones are now all on GitHub. This means you’re welcome to come and download or fork them! You can even contribute back if you see something useful that is missing.

My new GitHub projects:

Github: text-encoding-aspnet-mvc-by-example
Sample app: http://text-encoding-aspnet-mvc-by-example.azurewebsites.net/

GitHub: web-apps-hotkeys
Sample app: http://web-apps-hotkeys.azurewebsites.net/

GitHub: improve-mvc-perf-with-async-views
Sample app: http://improve-mvc-perf-with-async-views.azurewebsites.net/async

If you know of something I’ve published and you’d like it on GitHub, just send me a note!

Finally, the keen reader will notice I’ve moved my sample apps to Windows Azure Websites. I’ve been a vocal critic of Azure at times, but Azure Websites are quite nice. You get up to 10 domains for free. They are worth checking out.

Cheers,
@mkennedy