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 January 8, 2025 08:00
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 March 17, 2025 00:07
Install PostgreSQL on Manjaro and set it up for Django