Tag Archives: Python

PyDev of the Week: Sunita Dwivedi

This week we welcome Sunita Dwivedi as our PyDev of the Week! Sunita works for the DISH Network. She is active with PyDEN, the Denver, CO Python users group as well as PyColorado.

Let’s take some time to learn more about Sunita!

Can you tell us a little about yourself (hobbies, education, etc):

I live by the phrase “A life not tried enough is not lived enough”. I don’t know who said it, may be I dreamt it. Just Kidding.

I love working in IT, Rock climbing is my favorite hobby and before COVID-19 I would host regular dinner parties and cook Indian food. I an active member in the tech community and Dev manager at Dish Networks Continue reading PyDev of the Week: Sunita Dwivedi

PyDev of the Week: William Cox

This week we welcome William Cox as our PyDev of the Week. William is a data scientist who has spoken at a few Python conferences. He maintains a blog where you can catch up on what’s new with him

Let’s spend a few moments getting to know William better!

Can you tell us a little about yourself (hobbies, education, etc):

I’ve always loved building things. I spent most of highschool building robots and running a blog about robots. I got a degree in electrical engineering thanks to this, and then went on to get a PhD in signal processing and digital communications. Outside of work I enjoy wood and metal working and being outdoors. Mostly though, I’m a full-time parent.
Continue reading PyDev of the Week: William Cox

CodingNomads Tech Talk Series!

Recently CodingNomads invited me on their Tech Talk series. CodingNomads does online code camps for Python and Java.

The Tech Talks are a series of videos that teach or talk about tech. In my case, I got to talk about my favorite programming language, Python!

The first talk I did was on wxPython. In this video, I show how to create a simple image viewer:

Amazingly, I was invited to do a second talk. This time, I decided it would be fun to do an intro to Jupyter Notebook.

CodingNomads is not a sponsor of Mouse vs Python. They are a neat group that kindly asked me to be a part of their series after I volunteered some of my time to mentor people for them over the summer.

PyDev of the Week: Jim Anderson

This week we welcome Jim Anderson (@jimande75053775) as our PyDev of the Week! Jim is a contributing writer for Real Python. You can see some of the things that Jim works on in his spare time over on Github.

Let’s take a few moments to get to know Jim better!

Can you tell us a little about yourself (hobbies, education, etc):

I love to snowboard in the winter and I’m an avid bike commuter, though I’ll admit that sounds more impressive than it is – I only live 3 miles from work! I’ve got two grade-school aged daughters and a lovely wife, all of whom ski and give me grief for snowboarding.

I’ve been lucky enough to get to program for a living since I was a kid, mainly on low-level and embedded software, with a couple of brief turns doing enterprise-level band-end code.

Jm Anderson Continue reading PyDev of the Week: Jim Anderson

Python 101: An Intro to Working with JSON

JavaScript Object Notation, more commonly known as JSON, is a lightweight data interchange format inspired by JavaScript object literal syntax. JSON is easy for humans to read and write. It is also easy for computers to parse and generate. JSON is used for storing and exchanging data in much the same way that XML is used.

Python has a built-in library called json that you can use for creating, editing and parsing JSON. You can read all about this library here:

It would probably be helpful to know what JSON looks like. Here is an example of JSON from https://json.org:

{"menu": {
  "id": "file",
  "value": "File",
  "popup": {
    "menuitem": [
      {"value": "New", "onclick": "CreateNewDoc()"},
      {"value": "Open", "onclick": "OpenDoc()"},
      {"value": "Close", "onclick": "CloseDoc()"}
    ]
  }
}}

From Python’s point of view, this JSON is a nested Python dictionary. You will find that JSON is always translated into some kind of native Python data type. In this article, you will learn about the following:

  • Encoding a JSON String
  • Decoding a JSON String
  • Saving JSON to Disk
  • Loading JSON from Disk
  • Validating JSON with json.tool

Continue reading Python 101: An Intro to Working with JSON