Changelog

Python Icon

Python

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

Python Icon github.com

Detectron

Facebook AI Research's software system that implements state-of-the-art object detection algorithms, including Mask R-CNN Because Detectron is about object detection research, it underpins a bunch of other projects. Hey, where'd they get that picture of me riding a bike?!

read more...
logged by @jerodsanto 2018-01-25T17:29:00.011509Z permalink #python

Andrew Godwin Avatar The Changelog #229

Python, Django, and Channels with Andrew Godwin

Django core contributor Andrew Godwin joins the show to tell us all about Python and Django. If you've ever wondered why people love Python, what Django's virtues are as a web framework, or how Django Channels measure up to Phoenix's Channels and Rails' Action Cable, this is the show for you. Also: Andrew's take on funding and sustaining open source efforts.

read more...
Play
logged by @logbot 2016-11-25T16:30:00Z permalink #python

Eric Holscher Avatar Request For Commits #5

Documentation and the Value of Non-Code Contributions with Eric Holscher

On today’s show Nadia and Mikeal are joined by Eric Holscher to discuss non-code contributions, how they are regarded in open source culture, their value, and how to incentivize this type of work. They also talked about how Read the Docs grew a documentation community, contribution guides, and why this work matters.

read more...
Play
logged by @logbot 2016-08-25T20:00:00Z permalink #python #documentation

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...
logged by @logbot 2014-09-09T13:12:22Z permalink #python

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...
logged by @logbot 2014-06-25T13:05:03Z permalink #python

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...
logged by @logbot 2014-03-27T14:07:28Z permalink #python

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...
logged by @logbot 2014-03-10T12:58:37Z permalink #python

Python Icon changelog.com

Dominate HTML in Python

Have you ever wished that you had a sweet little API to generate HTML in Python? Dominate is probably what you are looking for. Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. Now, I'm a self admitted HTML purist, but look at how the dominate API works. from dominate.tags import ul, li list = ul() for item in range(4): list += li('Item #', item) If done correctly HTML generators can blend in with your code nicely. Checkout Dominate the next time you're looking for a nice native HTML generator API for python.

read more...
logged by @logbot 2014-02-26T19:25:36Z permalink #python

Python Icon changelog.com

Can you use Python 3?

Good question. It's a long road to Python 3, but it's a little easier to navigate now with the release of caniusepython3. This script takes in a set of dependencies and then figures out which of them are holding you up from porting to Python 3. It's a simple script which makes it just a little easier to use Python 3. The output of the script will tell you how many (implicit) dependencies you need to transition to Python 3 in order to allow you to make the same transition. It will also list what projects have no explicit dependency blocking their transition so you can ask them consider starting a port to Python 3.

read more...
logged by @logbot 2014-02-19T16:53:14Z permalink #python

Python Icon changelog.com

You always need another Python task queue

I kid, diversity is the key to a healthy ecosystem. Huey is a simple offline Python task queue that has relatively few dependencies. a lightweight alternative: written in python, no deps outside the standard lib except Redis (or you can roll your own backend), and support for Django. Sometimes a little goes a long way. Checkout Huey if you need a lightweight Python task queue. If you need more features I would recommend RQ, or Celery.

read more...
logged by @logbot 2014-02-10T14:18:34Z permalink #python

JavaScript Icon changelog.com

Generate 4 language bindings for your API in one Go

You just built an API, and want to make sure everyone can use it. Building libraries in every language isn't only going to be hard, its going to take a lot of time. Time you don't have. This is where Alpaca can help. You define your API according to the format, alpaca builds the API libraries along with their documentation. All you have to do is publishing them to their respective package managers. Right now it can generate API clients in PHP, Python, Ruby, and JavaScript. You can see examples of the generated client libraries here. I can't speak to the quality of all the generated language bindings, but I took a cursory look at the Python lib and it looks good. Looks like Alpaca could save us all a lot of time.

read more...
logged by @logbot 2014-02-07T13:20:30Z permalink #javascript #go #ruby #python #php
0:00 / 0:00