Python Icon

Python

Python is a dynamically typed programming language.
102 Stories
All Topics

Sumana Harihareswara pyfound.blogspot.com

The new PyPI is finally in beta

The Python Package Index (started 15 years ago) has reached beta stage for version 2.0. We predict the full switch will happen in April 2018, so here's a heads-up about why we're switching, what's changed, and what to expect. The team is running Twitter and IRC-based livechat hours for the next few weeks so you can easily report problems you run into. As for what's new in v2: modern design and search, Markdown READMEs, and a way more scalable, sustainable backend.

read more...

Python Icon changelog.com

CloudTunes: your web-based music player for the cloud

Great idea and execution from Jakub Roztočil: CloudTunes provides a unified interface for music stored in the cloud (YouTube, Dropbox, etc.) and integrates with Last.fm, Facebook, and Musicbrainz for metadata, discovery, and social experience. It is similar to services like Spotify, except instead of local tracks and the fixed Spotify catalog, CloudTunes uses your files stored in Dropbox and music videos on YouTube.

read more...

Python Icon changelog.com

Collect your thoughts and notes without leaving the command line

jrnl is a great little text-based journaling tool with a command line interface. Why plain text files? I love this tidbit from the readme: you can put them into a Dropbox folder for instant syncing and you can be assured that your journal will still be readable in 2050, when all your fancy iPad journal applications will long be forgotten. At first blush, the interface looks really well thought out. I don't journal much, but jrnl just might get me started.

read more...

Python Icon changelog.com

Clean your HTML with Bleach

When developing for the web a time will come when you'll need to sanitize HTML. If you need to do this in Python then you should check out Bleach. Bleach is an HTML sanitizing library that escapes or strips markup and attributes based on a white list. Bleach can also linkify text safely, applying filters that Django's urlize filter cannot, and optionally setting rel attributes, even on links already in the text. Even if all you want to do is apply rel='nofollow' to the links in user generated content, Bleach has you covered. So, check it out the next time you need to clean some HTML.

read more...

Python Icon changelog.com

Bunch lets you use a Python dict like it's an Object

Sometimes, in Python, I wish I could access dicts as if they are objects. Bunch makes it easy to do that. A Bunch is a Python dictionary that provides attribute-style access (a la JavaScript objects). Bunch acts like an object and a dict. >>> b = Bunch() >>> b.hello = 'world' >>> b.hello 'world' >>> b['hello'] += "!" >>> b.hello 'world!' And it even plays nice with serialization. >>> b = Bunch(foo=Bunch(lol=True), hello=42, ponies='are pretty!') >>> import json >>> json.dumps(b) '{"ponies": "are pretty!", "foo": {"lol": true}, "hello": 42}' This approach isn't for everything, but if you want a dict that acts like an object checkout Bunch.

read more...
0:00 / 0:00