Homepage
Sign inGet started

Alexander Hultnér

Product Development in the connected world

Convert a Python Enum to JSON

Convert a Python Enum to JSON

A trivial way to make a Python Enum which is based on string tokens JSON-serializable is to inherit both str and Enum. Look at the example…
Go to the profile of Alexander Hultnér
Alexander Hultnér
Mar 11
Go to the profile of Alexander Hultnér
Alexander Hultnér
Oct 22, 2017

Reflect a PostgreSQL view in Python’s SQLAlchemy

I ran into this problem a while ago, where I had a simple view created by joining two tables with a 1:1 relationship in PostgreSQL but SQLAlchemy didn’t like my view.

Background

Read more…
Go to the profile of Alexander Hultnér
Alexander Hultnér
Jun 14, 2017

Toolchest for Python shell scripters

Banish growing bash scripts

Read more…
1 response
Go to the profile of Alexander Hultnér
Alexander Hultnér
Jun 11, 2017

Scaling engineering efforts in software

Organizational benefits of microservices

Read more…
About HultnérLatest StoriesArchiveAbout MediumTermsPrivacy