Skip to content

Instantly share code, notes, and snippets.

🗿
stone age

ahmet kotan ahmetkotan

🗿
stone age
Block or report user

Report or block ahmetkotan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ahmetkotan
ahmetkotan / temp_database.py
Last active Apr 29, 2018
Fileless temporary database without query language
View temp_database.py
import pickle
# github.com/ahmetkotan
# ahmetkotan.com.tr
class MemoryVariable(object):
def __init__(self, field_list=[], *args, **kwargs):
self.field_list = field_list
self.values = {}
self.prev = None
@ahmetkotan
ahmetkotan / README.md
Last active Apr 14, 2018
Python Argument Parser and Creater from Raw String/Text
View README.md

Raw String Argument Parser

Example

parser = RawParser('example.py -x Xparam1 -y Yparam1-0,Yparam1-1 -y "Yparam 2" -z Zparam1 --zet=Zparam2 --zet="Zparam 3"')
parser.add_arg('-x')
parser.add_arg('-y', splitter=",")
parser.add_arg('-z', 'zet')
parser.parse_args()
You can’t perform that action at this time.