Automate Google BigQuery data import with Google Cloud Functions

 3r33333. 3r3-31. We are constantly working with Google BigQuery - importing data about users, their orders and advertising costs from various sources in order to be able to combine them with each other. What does this give us? For example, if you have an online store and a customer places an order by phone, and then logs into the site, then using Google BigQuery, you can link all of his actions backdating. You can track the client’s entire journey through the marketing funnel - from the first hit on the site to buying at the brick and mortar store, and evaluate advertising campaigns taking into ...
+ 0 -

Python installer for Android builds from TeamCity do it yourself

Python installer for Android builds from TeamCity do it yourself 3r33232.  
Audience
3r33232.  
QA-engineers, mobile application testers, automation.
3r33232.  
The problem is
3r33232.  
During testing of applications for Android (not only, but then we will only discuss this platform), we have to install many assemblies of the tested product /products. This process takes time and effort, which is more efficient to spend on finding bugs.
3r33232.  
In this article, we will look at the existing solution, write ours in Python and compare them.
Android Debug Bridge (adb) 3r33333.  
3r33333. 3r33232.  Audience3r33232.  QA-engineers, mobile application testers, automation.3r33232.  The problem is3r33232.  During testing of applications for Android (not only, but then we will only discuss this platform), we have to install many assemblies of the tested product /products. This process takes time and effort, which is more efficient to spend on finding bugs.3r33232.  In this article, we will look at the existing solution, write ours in Python and compare them. Android Debug Bridge (adb) 3r33333.  3r33333...
+ 0 -

Build functions in the console. Part 2 (Graph)

+ 0 -

Memoization of the default kwarg in Python

 3r3147. 3r3-31. This is how you can memorize the Python function: 3r3133.  3r3147.
 3r3147. 3r33112. 3r3113. def memo_square (a, cache = {}):
if a not in cache:
cache[a]= a * a
return cache[a] 3r3122.
 3r3147. The reception is undeservedly little known, so under the cut we will analyze how it works and what it is for.
 3r3147. @ functools.lru_cache . The decorator from the functools module, which remembers the last function calls. Reliably and simply, but uses all the parameters of a function as keys, which means that it requires their hashing and cannot notice that two formally different values ...[/a][/a]
+ 0 -

Symbolic solution of linear differential equations and systems using the Laplace transform method using SymPy

 3r31228. 3r3-31.
Symbolic solution of linear differential equations and systems using the Laplace transform method using SymPy  3r31228. The implementation of algorithms in Python using symbolic calculations is very convenient when solving problems of mathematical modeling of objects defined by differential equations. To solve such equations, the Laplace transformations are widely used, which, to put it simply, allow us to reduce the problem to the solution of the simplest algebraic equations.
 3r31228.
 3r31228. In this publication, I propose to consider the functions of the direct and inverse Laplace transform from the SymPy library, which allow using the Laplace method to solve differential equations and systems ...
+ 0 -

What the programmer needs to remember when switching to Python

 3r33557. 3r3-31. 3r? 3543. Once upon a time, in my student years, I was bitten by a python, although the incubation period dragged on and it turned out that I became a programmer on a pearl. 3r33546. 3r33541.  3r33557. 3r? 3543. However, at some point, the pearl exhausted itself, and I decided to go in for python, at first I just did something and understood what was needed for this task, and then I realized that we need some systematic knowledge and read several books: 3r33546. 3r33541.  3r33557.
 3r33557. 3r318. Bill Lyubanovich “Simple Python. Modern programming style ”3r3193.  3r33557. 3r318...
+ 0 -

Python: metaprogramming in production. Part Two

+ 0 -

Kafka in Wargaming:

Kafka in Wargaming:blitz 3r3149. 3r3-31. Why Kafka? What are the general impressions? What is the composition of the clusters? Under the cut - a dozen short questions for Levon Avakian, who is responsible for reliability, application architecture, infrastructure and production in Wargaming. 3r3149. 3r3149.  3r3149. My reports 3r3138. at Moscow Python Conf ++ will be about the experience of using various Python libraries for Kafka in WoT. Our assets are Kafka-python, confluent-kafka-python, aiokafka. Each of these libraries has its pros and cons. 3r3149. 3r3149. - What would you say about the advantages and disadvantages ...
+ 0 -

Open webinar "How not to write in Python"

 3r33939. 3r3-31. Hello! As part of our course. “Python Developer” we conducted another open lesson on “How not to write in Python”. The lesson was taught by a teacher and course maker Stanislav Stupnikov with extensive experience in industrial and scientific development. Considered antipatterns programming, bad practice and other evil, which you need to know and which should be avoided in the process of writing code.
 3r33939.
 3r33939. See the video and summary for details. Warning: some code examples are not recommended to run on your computer!
 3r33939.
 3r33939. 3r314.
+ 0 -

Migrating a non-downgrade database schema for postgresql using the example of django

 3r31644. 3r3-31.
Introduction 3r31473. 3r? 31506.  3r31644. 3r? 31508. Hi, Habr!
3r? 31506.  3r31644. 3r? 31508. I want to share the experience of writing migrations for postgres and django. This is mainly about postgres, django is a good complement here, since it automatically migrates the data schema for model changes out of the box, that is, has a fairly complete list of work operations for changing the schema. Django can be replaced with any favorite framework /library - approaches are likely to be similar.
3r? 31506.  3r31644. 3r? 31508. I will not describe how I came to this, but now, reading ...
+ 0 -