Skip to content

Instantly share code, notes, and snippets.

View Ashlett's full-sized avatar

Alicja Kozikowska Ashlett

View GitHub Profile
@mgaitan
mgaitan / autofactory.py
Last active December 9, 2023 16:16
Automatically define factory boy recipes for dataclasses by inspecting the type annotations
## See https://github.com/FactoryBoy/factory_boy/issues/836
import inspect
from typing import List, get_args, get_origin
import factory
import factory.fuzzy
from dataclasses import dataclass, Field, MISSING, is_dataclass
from enum import Enum
from datetime import date, datetime
from decimal import Decimal
@marcorichetta
marcorichetta / postgresql-manjaro.md
Last active June 2, 2024 19:31
Install PostgreSQL on Manjaro and set it up for Django