PythonWise
If it won't be simple, it simply won't be. [
Hire me
,
source code
]
Tuesday, August 24, 2021
Using gpg for Secrets
›
I'm using direnv in my project, and sometimes want to set secrets such as AWS_ACCESS_KEY_ID and friends. I usually have a file like: ...
Tuesday, July 20, 2021
Go's "defer" in pytest (and Python)
›
I'm writing a lot of Go & Python these days, and both affect the way I write code. One feature I really like in Go is defer . Latel...
3 comments:
Thursday, July 09, 2020
Using module __dir__ and __getattr__ for configuration
›
PEP 562 added support for module level __dir__ and __getitem__ . __dir__ is called when the built-in dir function is called on the modu...
13 comments:
Thursday, April 09, 2020
Functions as State Machine (Go)
›
Let's say you'd like to check that a string is a valid floating point (e.g. "3.14", ".2", "-2.718" ......
Wednesday, April 01, 2020
A Twitter Quote Bot on GAE
›
I like quotes and have an extensive list stored in a text file. I was toying with the idea of making a twitter bot that will post a quote pe...
Thursday, March 05, 2020
Using __getattr__ for nicer configuration API
›
Typically, you'll read configuration from files (such as YAML) and get them as a dictionary. However in Python you'd like to write c...
4 comments:
Tuesday, February 04, 2020
Adding a timer to Go's "present" tool
›
Go has a nice present tool which let's you present code and run it. I wanted to use it in my lightning talk at GopherCon Israel . The ...
1 comment:
›
Home
View web version