Skip to content

Instantly share code, notes, and snippets.

View tlandschoff-scale's full-sized avatar

Torsten Landschoff tlandschoff-scale

  • Scale GmbH
  • Dresden
View GitHub Profile
@tlandschoff-scale
tlandschoff-scale / Dockerfile
Created September 23, 2020 06:08
Reproducer for slow pip resolver
FROM python:3.7
WORKDIR /tmp
COPY requirements.txt ./
RUN apt-get update && apt-get install --yes time
RUN pip install -r requirements.txt
RUN pip install -U pip
RUN echo "This is the old resolver:" && time pip install -r requirements.txt
@tlandschoff-scale
tlandschoff-scale / synonym_with_setter.py
Created June 2, 2019 16:13
Example showing how SQLAlchemy blends a property into a synonym
# encoding: utf-8
"""
Configuration of a `synonym` property via the mapper function actually
detects an existing property on the mapped class and blends this into
the propertyProxy it creates.
This is actually helpful but as of SQLAlchemy 1.3.4 this seems to be an
undocumented feature.
"""