蠎加载 166

原文: Import Python Weekly Newsletter - Issue No 166 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Django 管理手册 django, admin This is a book about doing things with Django admin. It takes the form of about forty questions and common tasks with Django admin we answer. (是也乎: 叕一本有关 Django 的新书了… 旁的不说, Django 制造了很多作者 ) 又一种创建 REST API 的简易形式 – codeburst flask Learn how to create semantic REST API real quick using Python Flask (是也乎: 叕一个用FLask 来折腾 RESTful 接口的案例, 但是,有专门的 API 生成器了哪 181130 suggest by Alex Nordeen RESTful Web Services Tutorial with Example is is more in-depth and well -> This is how easy it is to create a REST API – codeburst thanx u Alex ;-) ) ...

2018-03-11 · 3 min · 1374 words · ZoomQuiet

蠎加载 165

原文: Import Python Weekly Newsletter - Issue No 165 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Guido van Rossum: 仁慈暴君回顾 Python 3 Guido, BDFL Various topics of retrospective on Python 3. What is working, what failed, what is still a work in progress as the language evolves? (是也乎: 好汉要活好… ) GoCD: 可视化和建模复杂的 CD 工作流程 Visualize GoCD supports continuous delivery out of the box with its built-in pipelines, advanced traceability and value stream visualization. With GoCD, you can easily model, orchestrate and visualize complex workflows from end to end. GoCD supports modern infrastructure and cloud deployments. Learn how to setup your first pipeline - https://goo.gl/7Y5u7c OR check out their enterprise plugins and support. - https://goo.gl/Xqk6kL 在线 CookieCutter 生成器 django Get a ZIP-archive with project by filling out the form. 如何为 Python Web Apps 编写 Dockerfiles – Hasura docker This post is filled with examples ranging from a simple Dockerfile to multistage production builds for Python apps. (是也乎: 一定有自动生成工具的,将来, 或是自己写个 ) Pandas 实例: 列s pandas Let’s review the many ways to do the most common operations over dataframe columns using pandas. (是也乎: 叕则 Pandas 自学案例… ) 用 Python 3 探索 REST和GraphQL GraphQL Here at Kalo, we’ve been exploring ways of upgrading some of our API’s and found that concrete examples for developers looking to create GraphQL servers Python were lacking, so we decided to build a small project as an experiment to compare the two paradigms and share the knowledge by writing about it. 用 Q表 强化学习 machine learning Reinforcement learning is an area of machine learning dealing with delayed reward. 用 Python 代码有 5 种轻松的数据可视化姿势 charting Data Visualization is a big part of a data scientist’s jobs. In the early stages of a project, you’ll often be doing an Exploratory Data Analysis (EDA) to gain some insights into your data. Creating visualizations really helps make things clearer and easier to understand, especially with larger, high dimensional datasets. Towards the end of your project, it’s important to be able to present your final results in a clear, concise, and compelling manner that your audience, whom are often non-technical clients, can understand. (是也乎: 叕一组 数据可视化模块对比… 其实吧, 不考虑输出使用 plt 足够了, 但是,… ) 在加拿大安大略省找到最中意的钓鱼地点 fishing Once, I was talking with my colleague about outdoor activities, and he told me that he is a fishing enthusiast. It didn’t bring up my attention at first since I am not a fishing guy. However, he propose a idea to use Google Map to search for all those fishing sites due to the hard time of playing around with the official fishing website. The idea is brilliant and it attract me as well. In the end, that’s how we start our first project at Weclouddata. Interactive Brokers in Python with backtrader algo trading Reddit’s r/algotrading seems to have a constant number of posts which revolve about the ideas: How can I trade with Python (using frameworks or not) and Interactive Brokers? Let’s try to see how to achieve it with backtrader. 你首个机械学习的推荐模型 machine learning Apple released a few weeks ago, Turicreate, an open source framework to create easily model for CoreML. In this tutorial, you don’t need Apple device. This recommender can be used only with python. And later used on Apple device after using converter tool. (是也乎: 叕只推荐系统的嗯哼 ) datastream.io elasticsearch An open-source framework for real-time anomaly detection using Python, Elasticsearch and Kibana. (是也乎: ELK 生态新组合工具… ) 一步步指导建立自己的’迷你IMDB’数据库 project How to use simple Python libraries and built-in capabilities to scrape the web for movie information and store them in a local SQLite database. 集成 Google Sheets 和 Jupyter Notebooks jupyter How to pass data between Google Sheets and Jupyter Notebooks. 有没有 Docker 都能折腾 Python 开发环境 docker, setup Part of being a developer includes setting up your computer so that you can develop the applications you want to write. (是也乎: Py 开发环境不折腾 Docker 现在是不够正义的了… ) 在 Python 中探索性数据分析 EDA Multiple libraries are available to perform basic EDA but I am going to use pandas and matplotlib for this post. Pandas for data manipulation and matplotlib, well, for plotting graphs. Jupyter Nootbooks to write code and other findings. Jupyter notebooks is kind of diary for data analysis and scientists, a web based platform where you can mix Python, html and Markdown to explain your data insights. (是也乎: 数据探索…无法想法不在 Jupyter 中嗯哼 ) PyCon.DE Part 1: Turbodbc - Turbocharged database access for data scientists - Blue Yonder Technology Blog database access This talk introduces the open source Python database module turbodbc. It uses standard ODBC drivers to connect with virtually any database and is a viable (and often faster) alternative to “native” Python drivers. 好物 ~ 包/模块/库/片段… ...

2018-03-04 · 4 min · 1841 words · ZoomQuiet

蠎加载 164

原文: Import Python Weekly Newsletter - Issue No 164 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Python 3 cheatsheet python3 What’s new in Python 3 via code snippets. (是也乎: 文字版本的作弊条儿… Py 3.7 有了内置的 breakpiont 支持, 可以不依赖 IDE 进行单点嗯哼了… 可是…好吧… ) 俺的 Python 开发环境, 2018 版 - Jacob Kaplan-Moss pyenv, pipsi For years I’ve noodled around with various setups for a Python development environment, and never really found something I loved – until now. (是也乎: Python 的开发环境至今没有很好的解决几个关键问题: 模块依赖, 多版本环境切换, 应用打包发布/备份/部署/升级/… 当前最靠谱的可能就是这个组合了: 用 Pyenv 管理版本环境, 在其中用 Pipenv 管理模块依赖, Pipsi 作控制界面… 可是, 依然没有触及发布后场景…当然,现在有 Docker 了… 问题是 Docker 在 windows 世界中实在是那什么…. ) 用 Python 收集您自己的 Fitbit 数据 fitbit I’m going to teach you how to collect your own Fitbit data using nothing but a little Python code. (是也乎: 现在智能硬件, 如果没有一个易用的云接口,简直了… ) standford 电影评论数据库的情感分类 machine learning In this tutorial we will be using the hand labelled Standford movie review database (0) to build a sentiment classifier. Our work will highlight how to use Jupyter Notebooks with Python, Scikit-learn, and Pandas (including Numpy) to build and crossvalidate a sentiment classifier. We will also throw in a bit of EDA with the help of Matplotlib and Seaborn. (是也乎: 公开数据集越来越多了… 但是, 分析套路越来越一致化 EDA 是唯一能结合直觉的阵地了… 不过用 seaborn 进行图表风格化就是个人口味选择了… ) 象 Python 一般调试 C debugging I use the Python interpreter interactively and pdb (as well as ipdb) a lot and they let me understand my programs’ state and test new things out quickly. (是也乎: pdb 体验的 gdb 模拟… ) Elasticsearch 和 Django 第 1 部分 elasticsearch Searching from a complex set of data has become a routine in almost all kind of applications. So I am creating a series on Elasticsearch integration with Django. I this part of series, I will be giving you a brief information about Elasticsearch and its installation on a Linux based system. PEP 563 提及 Python 4.0, 究尽什么事儿? - Reddit discussion 4.0 PEP 563 as well as this page declare that postponed evaluation of type annotations will become the default in Python 4.0. The authors don’t give any further explanation nor do they seem to think there is any further explanation required. I’ve never seen Python 4.0 mentioned seriously before and I find this a bit unsettling. Can somebody provide more details? (是也乎: 没有回头路了… Py3 到 Py4 就象 Py1 到 Py2 没有伤害…哈? ) Truthiness and Short-Circuit Evaluation in Python core-python 通过 Python 中的 HTTP 代理建立套接字连接 codesnippets Using Django signals for database logging django (是也乎: 看来 signals 技术用的人不多… ) 好物 ~ 包/模块/库/片段… ...

2018-02-25 · 4 min · 1516 words · ZoomQuiet

蠎加载 163

原文: Import Python Weekly Newsletter - Issue No 163 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 如何用 Jupyter Notebooks 以及 pandas 来分析数据? pandas, jupyter Last year we discovered an extensive dataset on the subject of traffic on German roads provided by the BASt. It holds detailed numbers of cars, trucks and other vehicle groups passing more than 1,500 automatic counting stations. The amazing thing about this dataset is that the records for each counting station are provided on an hourly basis and they reach back to the year 2003. As an attempt to get to know the structure and to find a good way for dealing with the massive size of the dataset, we set up some Jupyter (formerly IPython) Notebooks. (是也乎: 叕一篇 ipynb 的软文, 问题在, 依然没有解决从探索到作品的转化时机和技巧问题. ) 编写 Unit Tests 来测试 REST APIs testing I’m working on a project called BadgeYay. It is a badge generator with a simple web UI to add data and generate printable badges in PDF. BadgeYay’s back-end is now shifted to REST-APIs and to test functions used in REST-APIs, we need some testing technology that will test each and every function used in the API. For our purposes, we chose the popular unit tests Python test suite. In this blog post, I’ll be discussing how I have written unit tests to test BadgeYay’s REST-API. 极简 AWS Lambda + Python + Terraform 配置 aws, lambda I want to write and deploy the simplest function possible on AWS Lambda, written in Python, using Terraform. (是也乎: 是的, OSX 中实现的… ) 4 个途径来提升 DevOps Testing - Free eBook sponsor You already know the longer it takes to detect a problem, the more expensive it is to resolve. Your testing needs to happen earlier in the development pipeline while taking into account all aspects of privacy, security and monitoring. Read the 4-part eBook to learn how to detect problems earlier in your DevOps testing processes by:… 用 Python 创建 Discord Bot bot In this video we’ll cover how to create a bot for Discord. This bot will be able to join a server and show up in the user list. It will be able to interact in chat rooms and private messages and respond to custom commands. 用 Redis+Python 创建共享单车应用 project, web application Learn how to use Redis and Python to build location-aware applications. (是也乎: 很久没有听到 SOLOMO/LBS 的实例了… ) 介绍 Datalore - 叕一则用 Python 来进行机械学习的工具 data, jetbrains This Monday, February the 12th, we launched a public beta of Datalore - an intelligent web application for data analysis and visualization in Python, brought to you by JetBrains. This tool turns the data science workflow into a delightful experience with the help of smart coding assistance, incremental computations, and built-in tools for machine learning. 用 Python 和 Scikit-Learn 实现 K-Nearest 邻居算法 scikit-learn In this article, we will see how KNN can be implemented with Python’s Scikit-Learn library. But before that let’s first explore the theory behind KNN and see what are some of the pros and cons of the algorithm. The Flask Mega-Tutorial Part XI: Facelift flask This is the eleventh installment of the Flask Mega-Tutorial series, in which I’m going to tell you how to replace the basic HTML templates with a new set that is based on the Bootstrap user interface framework. Apache Airflow 作为分布式系统的外部调度程序 airflow So have you ever needed a reliable External scheduler for your distributed systems? Apache Airflow (by Airbnb) has a good stable scheduler. So how can we use Airflow for this purpose, here’s how we did. (是也乎: 可能是俺错觉, 凡是发布在 medium 中的技术文章都比较科普… 没有作者在自己 blog 上的文章来的有用… ) 什么是单元和覆盖测试以及如何在 Python 中实现和使用它们 unit testing 好物 ~ 包/模块/库/片段… ...

2018-02-19 · 4 min · 1516 words · ZoomQuiet