Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22462

Import Python: ImportPython Issue 72

$
0
0

Worthy Read


Apply to multiple top tech companies with 1 application on Indeed Prime.
Sponsor

core python
Python has a compact syntax for constructing a list with a loop and a condition, called a list comprehension: my_list = [ f(x) for x in sequence if cond(x) ] . You can also build dictionaries with dictionary comprehensions, and sets with set comprehensions:

benchmark
Today, I read an article about uvloop. I am aware of libuv and its behind nodejs. What caught me was “In fact, it is at least 2x faster than any other Python asynchronous framework.”. So I decided to give it a try with aiohttp. The test program was simple websocket code which receives a text message, doubles the content and echoes back. Here is the complete snippet with uvloop. I ran naive benchmark using thor and results favoured uvloop. uvloop was able to handle more connection on 8GB , non SSD Mac OSX . Asyncio was able to hold 154 connections and uvloop 243 connections with any socket errors .

aws
So I decided AWS Lambda had been on the field enough time to make an analysis by my own. Lambda comes with a few problems like only Python 2.7 (they will fix it in the future I guess), libraries, etc. Also I had read some blogs like Flynn's one. But skipping those problems I wanted to know... What about money ?

machine learning
Using Python, pandas, matplotlib, and leaflet, I downloaded my listening history from Last.fm’s API, analyzed and visualized the data, downloaded full artist details from the Musicbrainz API, then geocoded and mapped all the artists I’ve played. All of my code used to do this is available in this GitHub repo, and is easy to re-purpose for exploring your own Last.fm history. All you need is an API key.


Stop losing momentum with reply-to-all wars and buried email messages. Cut to the chase with @mentions and get the answer you need. Try HipChat for free today!
Sponsor

core python
Python decorators are so easy to use. Anyone who knows how to write a Python function can learn to use a decorator. But writing decorators is a whole different skill set. And it’s not trivial; you have to understand. closures, how to work with functions as first-class arguments, variable arguments, argument unpacking, even, some details of how Python loads its source code

In this article, we’re going to go over three aspects of machine learning pipeline design that tend to be tedious but nonetheless important. After that, we’re going to step through a demo for a tool that intelligently automates the process of machine learning pipeline design, so we can spend our time working on the more interesting aspects of data science.

core python
Recently, I've been playing around with Python and found that I really enjoy the language. Now I am wondering how I should go about switching over to a Python job. I am tired of doing front-end web development, and am thinking that I would enjoy concentrating more on the back-end. However, the back-end Python jobs seem to require me being a data scientist. Also, it seems like most Python jobs are in QA automation or DevOps.

core python
Quick read justifying Python.

video
Jonathan Whitmore demonstrates how to install pivot tables and showcases the features of this extension by examining a dataset of restaurant scores.Pivot tables are one of the many ways to extend the capabilities of the Jupyter Notebook. In this training segment, learn how to quickly and effectively analyze, scope, and visualize data using pivot tables in Jupyter Notebook.

emacs
pony-mode - Django mode for emacs

code snippet
This recipe shows basic usage of the ctypes module to call C code from Python code.

django
If you are building a new Django website from scratch, the first thing you implement is the User authentication. Here is a simple article showing you how to do it.

aws
A robust means of deploying web applications with Amazon Web Services is to use an Elastic Load Balancer (ELB) to balance requests between an “Auto Scaling Group” (ASG) of EC2 instances. As well as horizontally scaling, this set-up allows automated canary (aka blue-green) deployments, where new application versions are deployed as a new ASG which replaces the existing EC2 instances with new; a so-called “immutable infrastructure” approach.

cms
My decision to delve into Wagtail only came after I attempted to use Django-CMS and Mezzanine. Their strengths seemed to lie in having a comprehensive ecosystem in place with pluggable e-commerce systems and more.

aws
The following is a soup to nuts walkthrough of how to set up and deploy a Django application, powered by Python 3, and PostgreSQL to Amazon Web Services (AWS) all while remaining sane.Elastic Beanstalk is a Platform As A Service (PaaS) that streamlines the setup, deployment, and maintenance of your app on Amazon AWS. It’s a managed service, coupling the server (EC2), database (RDS), and your static files (S3). You can quickly deploy and manage your application, which automatically scales as your site grows.

podcast
One of the biggest new trends in technology is the Internet of Things and one of the driving forces is the wealth of new sensors and platforms that are being continually introduced. In this episode we spoke with the founder and head engineer of one such platform named Onion. The Omega board is a new hardware platform that runs OpenWRT and lets you configure it using a number of languages, not least of which is Python.



Upcoming Conference / User Group Meet







Projects

pip-update-requirements - 150 Stars, 1 Fork
Update the packages in a requirements.txt file.

my_first_calculator.py - 59 Stars, 7 Fork
my_first_calculator.py

AI_Composer - 26 Stars, 4 Fork
AI Composer for Machine Learning for Hackers #2

hackhttp - 23 Stars, 16 Fork
Hackhttp is an HTTP library, written in Python.

autobazaar - 9 Stars, 1 Fork
A tool to install the OpenBazaar Server in the cloud (Digital Ocean for starters). This tool lets you bypass the installation tedium and allows you to run a permanently online store on Digital Ocean's cheapest droplet at $5 a month. The installation process should take somewhere between 8 and 11 minutes.

md5-encryption - 7 Stars, 2 Fork
Cryptographically bulletproof encryption algorithm based on the cutting edge MD5 hashing algorithm

stylistic-word-clouds - 6 Stars, 1 Fork
Python scripts for creating stylistic word clouds

gym-doom - 6 Stars, 1 Fork
Doom environment for Gym

jupyter-widget-example - 5 Stars, 1 Fork
Example custom Jupyter widget

markdown-newsletter - 4 Stars, 0 Fork
Send newsletters in Markdown

SQLAlchemy_RestfulAPI - 4 Stars, 0 Fork
Integration SQLAlchemy ORM with Restframework API


Viewing all articles
Browse latest Browse all 22462

Trending Articles