Skip to content

Instantly share code, notes, and snippets.

View kevinkosterr's full-sized avatar

Kevin Koster kevinkosterr

View GitHub Profile
@kevinkosterr
kevinkosterr / migrate.py
Last active January 26, 2024 09:19
Peewee SQLite migration script for creating and dropping columns
import peewee
from playhouse.migrate import SqliteMigrator, migrate
from typing import List, Tuple, Dict
TABLE_INFO_COLUMNS: List[str] = [
"cid", "name", "type", "notnull", "dflt_value", "pk"
]
"""
@kevinkosterr
kevinkosterr / PyPi upload guide.md
Created February 25, 2020 20:32
Guide to uploading a package to PyPi

Uploading your package to a PyPi server

Creating a setup.py file

Create a setup.py file, PyCharm has a tool for this. Tools -> create setup.py a basic setup.py file looks like this:

from setuptools import setup

with open('README.md') as readme: