golangexample.com golangexample.com

A tiny execution wrapper for programs that run safely and shutdown gracefully

Executtor A tiny execution wrapper for programs that run safely and shutdown gracefully (if possible) Install Executtor go get github.com/drgomesp/executtor Basic Example package main import ( "context" "log" x "github.com/drgomesp/execcutor" ) func main() { // Run returns an error which you can capture and handle _ = x.Run(func(ctx context.Context, args ...string) error { // and the program...

pythonawesome.com pythonawesome.com

A functional, easy to use Python wrapper of Notion Api

Potion A functional, easy to use Python wrapper of Notion Api. Install pip install notion-potion Usage Quick Start Authentication from potion import Request, NotionHeader token = '' nh = NotionHeader(authorization=token) req = Request(nh.headers) Create an integration follow this official tutorial to get token. A ‘retrieve’ example. (Full code can be found here) from potion.api import...