Skip to content

Instantly share code, notes, and snippets.

from paypalrestsdk.resource import List, Find, Create, Post, Update, Replace, Resource
from paypalrestsdk.api import default as default_api
import paypalrestsdk.util as util
from paypalrestsdk.exceptions import MissingParam
class Sale(Find, Post):
"""Sale class wrapping the REST v1/payments/sale endpoint
Usage::
@bird-in-hat
bird-in-hat / translator.py
Last active December 8, 2022 20:13
Ghost database translation from sqlite to mysql
import re
import fileinput
import datetime
'''Usage: python3 translator.py dump.sqlite > dump.mysql '''
def _translate_line(line: str):
if 'PRAGMA foreign_keys=OFF;' in line: