Skip to content

Instantly share code, notes, and snippets.


Danila Vershinin dvershinin

View GitHub Profile
tanbro /
Last active Feb 21, 2020
A small tool Re-Pack a Python Wheel to a PYC-Only One
# -*- coding: utf-8 -*-
Re-Pack `Wheel` to a PYC-Only One
from __future__ import print_function, unicode_literals
import argparse
import compileall
fawix /
Created Apr 13, 2017
Python - Verbose Flag
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--verbose', action='count', default=0)
for c in ['', '-v', '-v -v', '-vv', '-vv -v', '-v -v --verbose -vvvv']:
print parser.parse_args(c.split())