Open in app
Home
Notifications
Lists
Stories

Write
Iuliia Volkova
Iuliia Volkova

Home

About

Pinned

How to test auto generated code in Python

Hi! In my free time I love to work with code generation, meta programming & etc. I have a bunch of libraries, one of them O!MyModels (https://github.com/xnuinside/omymodels), that generates different Python models from various inputs. What is special in code generation that needs some special ‘testing’ way? Normally the result…

Python

2 min read

How to test auto generated code
How to test auto generated code

Pinned

Code Generation: How to generate Pydantic & SQLAlchemy/GinoORM models from SQL DDL?

Intro This article demonstrates how to generate ORM & Pydantic models from DDL files with O!MyModels library. With one command or 1 line of code. Library: https://github.com/xnuinside/omymodels I hope it can be useful for you too (but in very rarely cases :))! All code samples (ddl & results) you can find…

Python

4 min read

Code Generation: How to generate Pydantic & SQLAlchemy/GinoORM models from SQL DDL?
Code Generation: How to generate Pydantic & SQLAlchemy/GinoORM models from SQL DDL?

Jul 25, 2020

Create a Telegram Bot to get info from PyPi Server: Part I

In article: BigQuery, pyTelegramBotAPI(telebot), Python 3.7, Poetry, Telegram(https://telegram.org/) Link to the source code at the end of the article. intro Hi, I love investigating new tools and taking a look at different libraries that are created everyday in the Python community. I thought that it would be cool to create some…

Python

8 min read

Create a Telegram Bot to get info from PyPi Server: Part I
Create a Telegram Bot to get info from PyPi Server: Part I

May 31, 2020

Integration testing for bunch of services with Pytest & Docker compose

Hi! Today I want to share a guide on how to set up integration tests for a bunch of services. Last month I worked on a similar task and for some members of the team the result looked like something new. …

Pytest

9 min read

Integration testing for bunch of services with Pytest & Docker compose
Integration testing for bunch of services with Pytest & Docker compose

Mar 19, 2020

SQLAlchemy, metaclasses and declarative_base: configure DB model’s classes

Intro Disclaimer: This article not about ‘better’ way how to define, but about how you can customize SQLAlchemy classes definition. And any classes… On one beautiful day, I played with a pet-project and created some kind of PoC for my idea. I started to define declarative base classes for SQLAlchemy (https://docs.sqlalchemy.org/)…

Sqlalchemy

5 min read

SQLAlchemy, metaclasses and declarative_base: configure DB model’s classes
SQLAlchemy, metaclasses and declarative_base: configure DB model’s classes

Dec 17, 2019

Install Python dependencies to docker-compose cluster without re-build images

UPD from 20 July 2020: this article is pretty old and when I write it there was not exist official Docker image so in article I used puckel/docker-airflow. But now, Apache Airflow already created and supported production-ready official docker image. You can read more about it here: https://github.com/apache/airflow/blob/master/IMAGES.rst#airflow-docker-images. I prepared…

Docker

6 min read

Install Python dependencies to docker-compose cluster without re-build images
Install Python dependencies to docker-compose cluster without re-build images

Published in Analytics Vidhya

·Dec 3, 2019

Airflow XCom pull and push under the hood: Multiple values, from different DAGs and etc

Some time ago I was asked by one of my colleges on not difficult question. But looks like, scope of this question not highlighted enough in official documentation. Question was: “How can I get Xcom that pushed by task of another DAG?” If you are here, I think, you know…

Python

4 min read

Airflow XCom pull and push under the hood: multiple value, from different dags and etc
Airflow XCom pull and push under the hood: multiple value, from different dags and etc

Oct 29, 2019

Apache Airflow: how to add task to DAG without changing dag file?

This article also can be called: “How to copy dynamically your DAG and add additional task to it?” I described all step-by-step so this article pretty big. If you want the end result — you can scroll down to the article and get the code sources. When you create Airflow…

Python

7 min read

Apache Airflow: how to add task to DAG without changing dag file?
Apache Airflow: how to add task to DAG without changing dag file?

Oct 8, 2019

Short guide: How to use PostgresOperator in Apache Airflow?

For some reasons, there is no any quick tutorials (or I am really bad in google) about PostresOperator and a lot of examples how to use for query PostgreSQLHook and PythonOperator. But this is not necessary in each case, because already exists a special operator for PostgreSQL! And it’s very…

Programming

4 min read

Short guide: How to use PostgresOperator in Apache Airflow?
Short guide: How to use PostgresOperator in Apache Airflow?

Aug 18, 2019

Apache Airflow with 3 Celery workers in docker-compose

UPD from 20 July 2020: this article is pretty old and when I write it there was not exist the official Docker image so in article I used puckel/docker-airflow. But now, Apache Airflow already created and supported production-ready official docker image. You can read more about it here: https://github.com/apache/airflow/blob/master/IMAGES.rst#airflow-docker-images. I…

Docker

6 min read

Apache Airflow with 3 Celery workers in docker-compose
Apache Airflow with 3 Celery workers in docker-compose
Iuliia Volkova

Iuliia Volkova

Python Dev \\ https://github.com/xnuinside \\ https://twitter.com/xnuinside. Currently open to remote https://www.linkedin.com/

Following
  • Anna Geller

    Anna Geller

  • Christopher Laine

    Christopher Laine

  • Chad Smith

    Chad Smith

  • Guido van Rossum

    Guido van Rossum

  • Sergey Parakhin

    Sergey Parakhin

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable