repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
yehengchen/Object-Detection-and-Tracking
https://github.com/yehengchen/Object-Detection-and-Tracking
null
null
null
null
1,963
null
null
mit
null
null
null
null
null
null
null
OneStage/yolo/deep_sort_yolov4/tools/video2frame.py
null
null
null
null
null
null
Python
2026-05-04T01:44:43.840230
import cv2 image_folder = './mask_face' video_name = './cut_test.m4v' vc = cv2.VideoCapture(video_name) c = 1 if vc.isOpened(): rval,frame=vc.read() else: rval=False while rval: rval,frame=vc.read() cv2.imwrite('./mask_face/IMG_'+str(c)+'.jpg',frame) c=c+1 cv2.waitKey(1) vc.release()
yehengchen/Object-Detection-and-Tracking
https://github.com/yehengchen/Object-Detection-and-Tracking
null
null
null
null
1,963
null
null
mit
null
null
null
null
null
null
null
OneStage/yolo/deep_sort_yolov4/yolo4/model.py
null
null
null
null
null
null
Python
2026-05-04T01:44:43.954125
"""YOLO_v4 Model Defined in Keras.""" from functools import wraps import numpy as np import tensorflow as tf from keras import backend as K from keras.engine.base_layer import Layer from keras.layers import Conv2D, Add, ZeroPadding2D, UpSampling2D, Concatenate, MaxPooling2D from keras.layers.advanced_activations impo...
yehengchen/Object-Detection-and-Tracking
https://github.com/yehengchen/Object-Detection-and-Tracking
null
null
null
null
1,963
null
null
mit
null
null
null
null
null
null
null
OneStage/yolo/deep_sort_yolov4/yolo.py
null
null
null
null
null
null
Python
2026-05-04T01:44:43.963404
import colorsys import numpy as np from keras import backend as K from keras.models import load_model from yolo4.model import yolo_eval, Mish from yolo4.utils import letterbox_image import os from keras.utils import multi_gpu_model class YOLO(object): def __init__(self): self.model_path = './model_data/y...
yehengchen/Object-Detection-and-Tracking
https://github.com/yehengchen/Object-Detection-and-Tracking
null
null
null
null
1,963
null
null
mit
null
null
null
null
null
null
null
OneStage/yolo/deep_sort_yolov4/yolo4/utils.py
null
null
null
null
null
null
Python
2026-05-04T01:44:43.981119
"""Miscellaneous utility functions.""" from functools import reduce from PIL import Image import numpy as np from matplotlib.colors import rgb_to_hsv, hsv_to_rgb def compose(*funcs): """Compose arbitrarily many functions, evaluated left to right. Reference: https://mathieularose.com/function-composition-in-...
yehengchen/Object-Detection-and-Tracking
https://github.com/yehengchen/Object-Detection-and-Tracking
null
null
null
null
1,963
null
null
mit
null
null
null
null
null
null
null
OneStage/yolo/main.py
null
null
null
null
null
null
Python
2026-05-04T01:44:44.020723
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import sys #sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages') import os import datetime from timeit import time import warnings import cv2 import numpy as np import argparse from PIL import Ima...
yehengchen/Object-Detection-and-Tracking
https://github.com/yehengchen/Object-Detection-and-Tracking
null
null
null
null
1,963
null
null
mit
null
null
null
null
null
null
null
OneStage/yolo/tools/generate_detections.py
null
null
null
null
null
null
Python
2026-05-04T01:44:44.076145
import os import errno import argparse import numpy as np import cv2 import tensorflow as tf def _run_in_batches(f, data_dict, out, batch_size): data_len = len(out) num_batches = int(data_len / batch_size) s, e = 0, 0 for i in range(num_batches): s, e = i * batch_size, (i + 1) * batch_size ...
yehengchen/Object-Detection-and-Tracking
https://github.com/yehengchen/Object-Detection-and-Tracking
null
null
null
null
1,963
null
null
mit
null
null
null
null
null
null
null
OneStage/yolo/tools/freeze_model.py
null
null
null
null
null
null
Python
2026-05-04T01:44:44.094352
import argparse import tensorflow as tf import tensorflow.contrib.slim as slim def _batch_norm_fn(x, scope=None): if scope is None: scope = tf.get_variable_scope().name + "/bn" return slim.batch_norm(x, scope=scope) def create_link( incoming, network_builder, scope, nonlinearity=tf.nn.elu, ...
yehengchen/Object-Detection-and-Tracking
https://github.com/yehengchen/Object-Detection-and-Tracking
null
null
null
null
1,963
null
null
mit
null
null
null
null
null
null
null
OneStage/yolo/tools/video2frame.py
null
null
null
null
null
null
Python
2026-05-04T01:44:44.119088
import cv2 image_folder = './mask_face' video_name = './cut_test.m4v' vc = cv2.VideoCapture(video_name) c = 1 if vc.isOpened(): rval,frame=vc.read() else: rval=False while rval: rval,frame=vc.read() cv2.imwrite('./mask_face/IMG_'+str(c)+'.jpg',frame) c=c+1 cv2.waitKey(1) vc.release()
yehengchen/Object-Detection-and-Tracking
https://github.com/yehengchen/Object-Detection-and-Tracking
null
null
null
null
1,963
null
null
mit
null
null
null
null
null
null
null
OneStage/yolo/tools/frame2video.py
null
null
null
null
null
null
Python
2026-05-04T01:44:44.174087
import cv2 import os import moviepy.editor as mp video = "00046" #input_imgs im_dir = '/home/cai/Desktop/yolo_dataset/t1_video/t1_video_'+video+'/' #im_dir = #output_video video_dir = '/home/cai/Desktop/yolo_dataset/t1_video/test_video/det_t1_video_'+video+'_test_q.avi' #fps fps = 50 #num_of_imgs num = 310 #img_size i...
yehengchen/Object-Detection-and-Tracking
https://github.com/yehengchen/Object-Detection-and-Tracking
null
null
null
null
1,963
null
null
mit
null
null
null
null
null
null
null
OneStage/yolo/w_name2txt.py
null
null
null
null
null
null
Python
2026-05-04T01:44:44.311556
import os names = os.listdir('/home/cai/Desktop/object_detection/datasets/coco/result/images/') #图片路径 i=0 train_val = open('/home/cai/Desktop/yolo_dataset/data/train.txt','w') #txt文件路径 for name in names: index = name.rfind('.') name = name[:index] train_val.write(name+'\n') i=i+1 print(i)
Belval/pdf2image
https://github.com/Belval/pdf2image
null
null
null
null
1,964
null
null
mit
null
null
null
null
null
null
null
pdf2image/parsers.py
null
null
null
null
null
null
Python
2026-05-04T01:44:46.396672
""" pdf2image custom buffer parsers """ from io import BytesIO from typing import List from PIL import Image def parse_buffer_to_ppm(data: bytes) -> List[Image.Image]: """Parse PPM file bytes to Pillow Image :param data: pdftoppm/pdftocairo output bytes :type data: bytes :return: List of PPM im...
Belval/pdf2image
https://github.com/Belval/pdf2image
null
null
null
null
1,964
null
null
mit
null
null
null
null
null
null
null
docs/conf.py
null
null
null
null
null
null
Python
2026-05-04T01:44:46.397370
# # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or ...
Belval/pdf2image
https://github.com/Belval/pdf2image
null
null
null
null
1,964
null
null
mit
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T01:44:46.423771
# Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name...
Belval/pdf2image
https://github.com/Belval/pdf2image
null
null
null
null
1,964
null
null
mit
null
null
null
null
null
null
null
pdf2image/exceptions.py
null
null
null
null
null
null
Python
2026-05-04T01:44:46.439172
""" Define exceptions specific to pdf2image """ class PopplerNotInstalledError(Exception): """Raised when poppler is not installed""" pass class PDFInfoNotInstalledError(PopplerNotInstalledError): """Raised when pdfinfo is not installed""" pass class PDFPageCountError(Exception): """Rais...
Belval/pdf2image
https://github.com/Belval/pdf2image
null
null
null
null
1,964
null
null
mit
null
null
null
null
null
null
null
pdf2image/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:44:46.440011
""" __init__ of the pdf2image module """ from .pdf2image import convert_from_bytes as convert_from_bytes from .pdf2image import convert_from_path as convert_from_path from .pdf2image import pdfinfo_from_bytes as pdfinfo_from_bytes from .pdf2image import pdfinfo_from_path as pdfinfo_from_path
Belval/pdf2image
https://github.com/Belval/pdf2image
null
null
null
null
1,964
null
null
mit
null
null
null
null
null
null
null
pdf2image/generators.py
null
null
null
null
null
null
Python
2026-05-04T01:44:46.454475
""" pdf2image filename generators """ import uuid import threading class ThreadSafeGenerator(object): """Wrapper around generator that protects concurrent access""" def __init__(self, gen): self.gen = gen self.lock = threading.Lock() def __iter__(self): return self def ...
Belval/pdf2image
https://github.com/Belval/pdf2image
null
null
null
null
1,964
null
null
mit
null
null
null
null
null
null
null
pdf2image/pdf2image.py
null
null
null
null
null
null
Python
2026-05-04T01:44:46.455221
""" pdf2image is a light wrapper for the poppler-utils tools that can convert your PDFs into Pillow images. """ import os import platform import tempfile import types import shutil import subprocess from subprocess import Popen, PIPE, TimeoutExpired from typing import Any, Union, Tuple, List, Dict, Callable fr...
Belval/pdf2image
https://github.com/Belval/pdf2image
null
null
null
null
1,964
null
null
mit
null
null
null
null
null
null
null
tests.py
null
null
null
null
null
null
Python
2026-05-04T01:44:46.472692
import os import sys import errno import pathlib import tempfile import unittest import time import shutil import subprocess from inspect import signature from subprocess import Popen, PIPE from tempfile import TemporaryDirectory from multiprocessing.dummy import Pool sys.path.insert(0, os.path.abspath(os.path.join(os...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
plot_fer2013_confusion_matrix.py
null
null
null
null
null
null
Python
2026-05-04T01:44:53.914133
""" plot confusion_matrix of PublicTest and PrivateTest """ import itertools import numpy as np import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F import os import argparse from fer import FER2013 from torch.autograd import Variable import torchvision import transform...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
models/vgg.py
null
null
null
null
null
null
Python
2026-05-04T01:44:53.916569
'''VGG11/13/16/19 in Pytorch.''' import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable cfg = { 'VGG11': [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG13': [64, 64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VG...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
mainpro_FER.py
null
null
null
null
null
null
Python
2026-05-04T01:44:53.918179
'''Train Fer2013 with PyTorch.''' # 10 crop for data enhancement from __future__ import print_function import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import transforms as transforms import numpy as np im...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
fer.py
null
null
null
null
null
null
Python
2026-05-04T01:44:53.919375
''' Fer2013 Dataset class''' from __future__ import print_function from PIL import Image import numpy as np import h5py import torch.utils.data as data class FER2013(data.Dataset): """`FER2013 Dataset. Args: train (bool, optional): If True, creates dataset from training set, otherwise ...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
models/resnet.py
null
null
null
null
null
null
Python
2026-05-04T01:44:53.920569
'''ResNet in PyTorch. For Pre-activation ResNet, see 'preact_resnet.py'. Reference: [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun Deep Residual Learning for Image Recognition. arXiv:1512.03385 ''' import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable cla...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
mainpro_CK+.py
null
null
null
null
null
null
Python
2026-05-04T01:44:53.922489
'''Train CK+ with PyTorch.''' # 10 crop for data enhancement from __future__ import print_function import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import transforms as transforms import numpy as np import...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
plot_CK+_confusion_matrix.py
null
null
null
null
null
null
Python
2026-05-04T01:44:53.924684
""" plot confusion_matrix of fold Test set of CK+ """ import transforms as transforms import argparse import itertools import os import matplotlib.pyplot as plt import numpy as np from sklearn.metrics import confusion_matrix from CK import CK from models import * parser = argparse.ArgumentParser(description='PyTor...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
k_fold_train.py
null
null
null
null
null
null
Python
2026-05-04T01:44:53.925339
import os for i in xrange(10): cmd = 'python mainpro_CK+.py --model VGG19 --bs 32 --lr 0.01 --fold %d' %(i+1) os.system(cmd) print("Train VGG19 ok!")
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
CK.py
null
null
null
null
null
null
Python
2026-05-04T01:44:53.944477
from __future__ import print_function from PIL import Image import numpy as np import h5py import torch.utils.data as data class CK(data.Dataset): """`CK+ Dataset. Args: train (bool, optional): If True, creates dataset from training set, otherwise creates from test set. ...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
preprocess_fer2013.py
null
null
null
null
null
null
Python
2026-05-04T01:44:54.757370
# create data and label for FER2013 # labels: 0=Angry, 1=Disgust, 2=Fear, 3=Happy, 4=Sad, 5=Surprise, 6=Neutral import csv import os import numpy as np import h5py file = 'data/fer2013.csv' # Creat the list to store the data and label information Training_x = [] Training_y = [] PublicTest_x = [] PublicTe...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
transforms/transforms.py
null
null
null
null
null
null
Python
2026-05-04T01:44:54.758369
from __future__ import division import torch import math import random from PIL import Image, ImageOps, ImageEnhance try: import accimage except ImportError: accimage = None import numpy as np import numbers import types import collections import warnings from . import functional as F __all__ = ["Compose", "T...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
visualize.py
null
null
null
null
null
null
Python
2026-05-04T01:44:54.957159
""" visualize results for test image """ import numpy as np import matplotlib.pyplot as plt from PIL import Image import torch import torch.nn as nn import torch.nn.functional as F import os from torch.autograd import Variable import transforms as transforms from skimage import io from skimage.transform import resize...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
transforms/functional.py
null
null
null
null
null
null
Python
2026-05-04T01:44:54.958236
from __future__ import division import torch import math import random from PIL import Image, ImageOps, ImageEnhance try: import accimage except ImportError: accimage = None import numpy as np import numbers import types import collections import warnings def _is_pil_image(img): if accimage is not None: ...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
utils.py
null
null
null
null
null
null
Python
2026-05-04T01:44:55.143122
'''Some helper functions for PyTorch, including: - progress_bar: progress bar mimic xlua.progress. - set_lr : set the learning rate - clip_gradient : clip gradient ''' import os import sys import time import math import torch import torch.nn as nn import torch.nn.init as init from torch.autogr...
WuJie1010/Facial-Expression-Recognition.Pytorch
https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
preprocess_CK+.py
null
null
null
null
null
null
Python
2026-05-04T01:44:55.143750
# create data and label for CK+ # 0=anger 1=disgust, 2=fear, 3=happy, 4=sadness, 5=surprise, 6=contempt # contain 135,177,75,207,84,249,54 images import csv import os import numpy as np import h5py import skimage.io ck_path = 'CK+48' anger_path = os.path.join(ck_path, 'anger') disgust_path = os.path.jo...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/all.py
null
null
null
null
null
null
Python
2026-05-04T01:44:57.487334
# -*- coding: utf-8 -*- # Showcase of most available widgets, also demonstrating how # to integrate other QT widgets directly in the layout. # # Written by Bill Wetzel and Alfio Puglisi. from guietta import Gui, B, E, L, HS, VS, HSeparator, VSeparator from guietta import Yes, No, Ok, Cancel, Quit, _, ___, III from gu...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:44:57.509861
# -*- coding: utf-8 -*- from .guietta import * from .guietta import _, ___ from .guietta import _alsoAcceptAnotherGui # Used by submodules from .__version__ import __version__
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/button_renamed.py
null
null
null
null
null
null
Python
2026-05-04T01:44:57.510943
# -*- coding: utf-8 -*- import os.path from guietta import B, L, _, Gui, Quit gui = Gui( [ 'Enter expression:', '__expr__' , B('right.png', 'newname') ], [ L('left.png') , 'result' , _ ], [ _ , _ , Quit ], images_dir = os.path.dirname(__file__) ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
docs/conf.py
null
null
null
null
null
null
Python
2026-05-04T01:44:57.512263
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/calculator.py
null
null
null
null
null
null
Python
2026-05-04T01:44:57.515991
from guietta import _, Gui, Quit import guietta gui = Gui( [ "Enter numbers:", "__a__", "+", "__b__", ["Calculate"] ], [ "Result: -->", "result", _, _, _ ], [ _, _, _, _, Quit ] ) with gui.Calculate: if not gui.is_running: gui.result = ""...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/checkbox.py
null
null
null
null
null
null
Python
2026-05-04T01:44:57.516934
# -*- coding: utf-8 -*- from guietta import B, C, E, _, Gui, Quit def do_eval(gui, *args): gui.result = eval(gui.expr) def checkbox(gui, state): print('Checkbox state is', state) gui = Gui( [ 'Enter expression:', E('expr') , B('Eval!') ], [ 'Result:' , 'result' , _ ], ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/base.py
null
null
null
null
null
null
Python
2026-05-04T01:44:57.518162
# -*- coding: utf-8 -*- from guietta import B, _, Gui, Quit gui = Gui( [ 'Enter expression:', '__expr__' , B('Eval!') ], [ 'Result:' , 'result' , _ ], [ _ , _ , Quit ] ) gui.run()
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/buttons.py
null
null
null
null
null
null
Python
2026-05-04T01:44:57.544727
# -*- coding: utf-8 -*- import os.path from guietta import B, L, _, Gui gui = Gui( [ ['left'] ], # Simple button [ (['left'], 'bb') ], # Simple button, renamed [ B('left') ], # Previous two with explicit B [ (B('left'), 'bb') ], [ ['le...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/duplicate.py
null
null
null
null
null
null
Python
2026-05-04T01:44:58.130581
# -*- coding: utf-8 -*- from guietta import B, _, Gui, Quit gui = Gui( [ 'Enter expression:', '__expr__' , B('Eval!') ], [ 'result' , 'result' , _ ], [ _ , _ , Quit ] ) while True: name, event = gui.get() if name == 'Eval': try: ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/compact.py
null
null
null
null
null
null
Python
2026-05-04T01:44:58.148084
# -*- coding: utf-8 -*- from guietta import _, Gui, Quit # Compact definitions: # Labels are just strings (now standard) # A button is a string between square parenthesis (a 1-element sequence) # an edit box is a string with double underscores gui = Gui( [ 'Enter expression:', '__expr__' , ['Eval!'] ], [...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/continuations.py
null
null
null
null
null
null
Python
2026-05-04T01:44:58.149319
# -*- coding: utf-8 -*- import sys from guietta import Gui, ___, III if len(sys.argv) < 2: gui = Gui( [ 'Big label', ___ , 'xxx'], [ III , III , 'xxx'], [ 'xxx' ,'xxx' , 'xxx'], ) elif sys.argv[1] == 'row': # This one will cause an exception because of ___ a...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/events_custom_get.py
null
null
null
null
null
null
Python
2026-05-04T01:44:58.179543
# -*- coding: utf-8 -*- from guietta import E, _, Gui, Quit gui = Gui( [ 'Enter expression:', E('expr') , _ ], [ 'Result:' , 'result' , _ ], [ _ , _ , Quit ] ) gui.events( [ _ , ('textEdited', None) , _ ], [ _ ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/derive_unbound.py
null
null
null
null
null
null
Python
2026-05-04T01:44:58.181205
# -*- coding: utf-8 -*- from guietta import B, E, _, Gui, Quit def do_eval(gui, *args): gui.result = eval(gui.expr) class Test(Gui): def __init__(self): super().__init__( [ 'Enter expression:', E('expr') , B('Eval!') ], [ 'Result:' , 'result' , _ ], ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/events_custom.py
null
null
null
null
null
null
Python
2026-05-04T01:44:58.182245
# -*- coding: utf-8 -*- from guietta import E, _, Gui, Quit def do_eval(gui, text): gui.result = eval(text) gui = Gui( [ 'Enter expression:', E('expr') , _ ], [ 'Result:' , 'result' , _ ], [ _ , _ , Quit ] ) gui.events( [ _ ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/derive.py
null
null
null
null
null
null
Python
2026-05-04T01:44:58.183316
# -*- coding: utf-8 -*- from guietta import B, E, _, Gui, Quit class Test(Gui): def __init__(self): super().__init__( [ 'Enter expression:', E('expr') , B('Eval!') ], [ 'Result:' , 'result' , _ ], [ _ , _ , Quit ] ) ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/font.py
null
null
null
null
null
null
Python
2026-05-04T01:44:58.195643
# -*- coding: utf-8 -*- from guietta import _, ___, Gui, Quit, Exceptions gui = Gui( [ 'Enter numbers:', '__num1__' , '+' , '__num2__', ['Calculate'] ], [ 'Result: -->' , 'result' , ___ , ___ , _ ], [ _ , _ , _ , _ , Quit ], exception...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/events.py
null
null
null
null
null
null
Python
2026-05-04T01:44:58.197092
# -*- coding: utf-8 -*- from guietta import B, E, _, Gui, Quit # Use *args to accept multiple signals # with different arguments. def do_eval(gui, *args): gui.result = eval(gui.expr) gui = Gui( [ 'Enter expression:', E('expr') , B('Eval!') ], [ 'Result:' , 'result' , _ ], [ ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/filedialog.py
null
null
null
null
null
null
Python
2026-05-04T01:44:58.198352
# -*- coding: utf-8 -*- from guietta import QFileDialog filename = QFileDialog.getOpenFileName(None, "Open File", "/home", "Images (*.png *.xpm *.jpg *.jpeg)") print(filename)
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/images.py
null
null
null
null
null
null
Python
2026-05-04T01:44:59.214749
# -*- coding: utf-8 -*- import os.path from guietta import B, L, _, Gui gui = Gui( [ _ , L('up.png') , _ ], [ B('left.png') , _ , B('right.png') ], [ _ , L('down.png') , _ , ], images_dir = os.path.dirname(__file__)) while True: name,...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/get_timeout.py
null
null
null
null
null
null
Python
2026-05-04T01:44:59.216176
# -*- coding: utf-8 -*- from guietta import B, _, Gui, Quit, Empty counter = 0 gui = Gui( [ 'Enter expression:', '__expr__' , B('Eval!') ], [ 'Result:' , 'result' , _ ], [ 'counter' , _ , Quit ] ) while True: try: name, event = gui.get(timeout...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/get.py
null
null
null
null
null
null
Python
2026-05-04T01:44:59.217230
# -*- coding: utf-8 -*- from guietta import B, _, Gui, Quit gui = Gui( [ 'Enter expression:', '__expr__' , B('Eval!') ], [ 'Result:' , 'result' , _ ], [ _ , _ , Quit ] ) while True: name, event = gui.get() if name == 'Eval': try: ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/groupbox.py
null
null
null
null
null
null
Python
2026-05-04T01:44:59.219609
from guietta import Gui, _, HSeparator, C, G, R, ___, III, QMessageBox main = Gui(['<center>Dynamic layout demonstration</center'], [HSeparator], [ 'label1' , 'label2', ['Click here'] ], [G('Inner GUI') , ___ , _ ], [ III , III , 'lab...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/get_nonblock.py
null
null
null
null
null
null
Python
2026-05-04T01:44:59.220507
# -*- coding: utf-8 -*- # Non-blocking gui.get() # causes thousands of exceptions per second using 100% CPU, # while the GUI still works. from guietta import B, _, Gui, Quit, Empty counter = 0 gui = Gui( [ 'Enter expression:', '__expr__' , B('Eval!') ], [ 'Result:' , 'result' , _ ]...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/images_compact.py
null
null
null
null
null
null
Python
2026-05-04T01:44:59.221682
# -*- coding: utf-8 -*- import os.path from guietta import Gui, _ # Labels and button automatically load images if the filename is valid, # otherwise it will appear as text. # # Widget names are set to the image name without extension. gui = Gui( [ _ , 'up.png' , _ ], [ ['left.pn...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/imshow.py
null
null
null
null
null
null
Python
2026-05-04T01:44:59.275283
# -*- coding: utf-8 -*- import numpy as np from guietta import Gui, ___, III, _, MA, VS def replot(gui, value): img = np.random.randn(100,100) gui.plot = img print('replot') def click(gui, x, y): print('Mouse click:', x, y) gui = Gui( [ MA('plot'), ___, ___, VS('slider') ], [ III ,...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/password.py
null
null
null
null
null
null
Python
2026-05-04T01:45:00.107203
# -*- coding: utf-8 -*- from guietta import Gui, QMessageBox, PW gui = Gui( [ 'Enter password:', PW('password') , ['Check'] ] ) # Accept both the Enter key and a click on "Check" with gui.Check, gui.password: if gui.is_running: if gui.password == '123456': QMessageBox.information(None, "C...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/plot_projection.py
null
null
null
null
null
null
Python
2026-05-04T01:45:00.108821
# -*- coding: utf-8 -*- import numpy as np from guietta import Gui, ___, III, _, M, Ax, VS def replot(gui, value): with Ax(gui.plot) as ax: ax.set_title('y=tan(x)') t = np.linspace(0, 1+value/10, 500) ax.plot(t, np.tan(t), ".-") def click(gui, x, y): print('Mouse click:', x, y) myp...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/plot_animated.py
null
null
null
null
null
null
Python
2026-05-04T01:45:00.109947
# -*- coding: utf-8 -*- import numpy as np from guietta import Gui, ___, III, _, MA, VS def replot(gui, value): t = np.linspace(0, 1+value/10, 500) gui.plot = np.tan(t) def click(gui, x, y): print('Mouse click:', x, y) gui = Gui( [ MA('plot'), ___, ___, VS('slider') ], [ III , III, III...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/plot.py
null
null
null
null
null
null
Python
2026-05-04T01:45:00.110958
# -*- coding: utf-8 -*- import numpy as np from guietta import Gui, ___, III, _, M, Ax, VS def replot(gui, value): with Ax(gui.plot) as ax: ax.set_title('y=tan(x)') t = np.linspace(0, 1+value/10, 500) ax.plot(t, np.tan(t), ".-") def click(gui, x, y): print('Mouse click:', x, y) gui...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/plot_pyqtgraph.py
null
null
null
null
null
null
Python
2026-05-04T01:45:00.111982
# -*- coding: utf-8 -*- import numpy as np from guietta import Gui, PG, PGI, III, VS, Exceptions gui = Gui( [ PG('plot'), VS('slider') ], [ III , '^^^ Move the slider' ], [ PGI('image') , '<< image'], exceptions = Exceptions.OFF ) with gui.slider: t = np.linspace(0, 1+gui.slider/10, 40...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/listbox.py
null
null
null
null
null
null
Python
2026-05-04T01:45:00.113416
# -*- coding: utf-8 -*- from guietta import Gui, LB, _, III def listbox(gui, text): print(text) def test(gui, *args): print(gui.listbox) gui = Gui( [ LB('listbox') ], [ III ], [ III ], [ ['Test'] ]) gui.events( [ listbox ], [ _ ], [ ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/progress_bar.py
null
null
null
null
null
null
Python
2026-05-04T01:45:00.114535
# -*- coding: utf-8 -*- from guietta import Gui, P, Empty gui = Gui( [ 'Percent completed:', P('progress') ] ) gui.widgets['progress'].setFormat('%p% of files') for counter in range(100): try: name, event = gui.get(timeout=0.1) except Empty: pass gui.progress = counter
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/line_edit.py
null
null
null
null
null
null
Python
2026-05-04T01:45:00.168702
''' Example with different line edit initializations ''' from guietta import Gui, E, _, Quit, QMessageBox gui = Gui( [ '__foo__' , _ ], [ '__bar__:10' , _ ], [ E('tux') , _ ], [ (E('a'), 'b'), _ ], [ ('__c__', 'd'),_ ], [ ['Show'] , Quit ]) with gui.Show: if gui.is_running: msg = 'Widget ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/messagebox.py
null
null
null
null
null
null
Python
2026-05-04T01:45:01.692311
# -*- coding: utf-8 -*- from guietta import QMessageBox QMessageBox.warning(None, 'test1', 'test2')
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/properties.py
null
null
null
null
null
null
Python
2026-05-04T01:45:01.877595
# -*- coding: utf-8 -*- from guietta import Gui gui1 = Gui(['a', 'b', ['C'] ]) gui2 = Gui(['a', 'd', ['E'] ]) gui1.a = 'foo' gui2.a = 'bar' gui1.show() gui2.show() gui1._app.exec_()
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/rename.py
null
null
null
null
null
null
Python
2026-05-04T01:45:01.878298
# -*- coding: utf-8 -*- from guietta import B, E, _, Gui, Quit # Use *args to accept multiple signals # with different arguments. def do_eval(gui, *args): print(gui.foo) gui.bar = eval(gui.foo) gui = Gui( [ 'Enter expression:', E('expr') , B('Eval!') ], [ 'Result:' , 'result' , _ ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/radio.py
null
null
null
null
null
null
Python
2026-05-04T01:45:01.898617
# -*- coding: utf-8 -*- # Create three radio button groups and connect them # in three different ways. from guietta import Gui, _, R1, R2, R3 gui = Gui( [ R1('rad1',1), R2('rad3') , R3('rad5') ], [ R1('rad2') , R2('rad4') , R3('rad6') ], ) def msg(gui, *args): print('second button group') def ev...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/signal_property.py
null
null
null
null
null
null
Python
2026-05-04T01:45:01.899886
# -*- coding: utf-8 -*- # Demonstrates how to use Gui properties # to connect a handler to a widget's default signal from guietta import _, ___, Gui, Quit, Exceptions gui = Gui( [ 'Enter numbers:', '__num1__' , '+' , '__num2__', ['Calculate'] ], [ 'Result: -->' , 'result' , ___ , ___ , ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/progress_bar_title.py
null
null
null
null
null
null
Python
2026-05-04T01:45:01.900921
# -*- coding: utf-8 -*- from guietta import Gui, P, Empty gui = Gui( [ 'Percent completed:', P('progress') ], title = 'ProgressBar test' ) for counter in range(100): try: name, event = gui.get(timeout=0.1) except Empty: pass gui.progress = counter
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/slider.py
null
null
null
null
null
null
Python
2026-05-04T01:45:01.927231
# -*- coding: utf-8 -*- from guietta import B, E, _, Gui, Quit, QSlider, Qt def do_eval(gui, *args): gui.result = eval(gui.expr) def do_slider(gui, state): gui.result = '%d' % state s = QSlider(Qt.Horizontal) gui = Gui( [ 'Enter expression:', E('expr') , B('Eval!') ], [ 'Result:' , 'r...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/sub_layout.py
null
null
null
null
null
null
Python
2026-05-04T01:45:02.310693
from guietta import Gui, _, HSeparator, C, R, ___, III, QMessageBox main = Gui(['<center>Dynamic layout demonstration</center'], [HSeparator], ['label1', 'label2', ['Click here'] ], ['label3', ___ , _ ], [ III , III , 'label4' ], ['...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/plot_property.py
null
null
null
null
null
null
Python
2026-05-04T01:45:02.468080
# -*- coding: utf-8 -*- import numpy as np from guietta import Gui, ___, III, _, M, VS def replot(gui, value): t = np.linspace(0, 1+value/10, 500) gui.plot = np.tan(t) def click(gui, x, y): print('Mouse click:', x, y) gui = Gui( [ M('plot'), ___, ___, VS('slider') ], [ III , III, III, ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/sum_auto.py
null
null
null
null
null
null
Python
2026-05-04T01:45:02.485519
# -*- coding: utf-8 -*- from guietta import _, ___, Gui, Quit, Exceptions gui = Gui( [ 'help' , '__num1__' , '+' , '__num2__', _ ], [ 'Result: -->' , 'result' , ___ , ___ , _ ], [ _ , _ , _ , _ , Quit ], exceptions = Exceptions.PO...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/sum.py
null
null
null
null
null
null
Python
2026-05-04T01:45:02.486337
# -*- coding: utf-8 -*- from guietta import _, ___, Gui, Quit gui = Gui( [ 'Enter numbers:', '__num1__' , '+' , '__num2__', ['Calculate'] ], [ 'Result: -->' , 'result' , ___ , ___ , _ ], [ _ , _ , _ , _ , Quit ] ) while True: name, ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/sum_combobox.py
null
null
null
null
null
null
Python
2026-05-04T01:45:02.523077
# -*- coding: utf-8 -*- from guietta import _, ___, Gui, Quit, Exceptions, CB def calculate(gui): name, op = gui.get_selections('op') result = getattr(float(gui.num1), op).__call__(float(gui.num2)) gui.result = result def change(gui): opdict = {'^' : '__pow__', '==': '__eq__', ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/sum_button_with.py
null
null
null
null
null
null
Python
2026-05-04T01:45:02.523934
# -*- coding: utf-8 -*- from guietta import _, ___, Gui, Quit, Exceptions gui = Gui( [ 'Enter numbers:', '__num1__' , '+' , '__num2__', (['Calculate it'], 'foo') ], [ 'Result: -->' , 'result' , ___ , ___ , _ ], [ _ , _ , _ , _ , Quit ],...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/slider_get.py
null
null
null
null
null
null
Python
2026-05-04T01:45:05.735702
# -*- coding: utf-8 -*- from guietta import B, E, HS, _, Gui, Quit gui = Gui( [ 'Enter expression:', E('expr') , B('Eval!') ], [ 'Result:' , 'result' , _ ], [ HS('myslider') , _ , Quit ] ) while True: name, event = gui.get() if name == 'Eval': ...
alfiopuglisi/guietta
https://github.com/alfiopuglisi/guietta
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
guietta/examples/stretch.py
null
null
null
null
null
null
Python
2026-05-04T01:45:05.919366
# -*- coding: utf-8 -*- import os.path from guietta import B, L, _, Gui, Stretch gui = Gui( [ _ , Stretch(2), _ ], [ _ , 'a' , _ ], [ 'b' , _ , 'd' ], [ _ , 'c' , _ , Stretch(10)], ) gui.window().resize(500,500) while True: name, event = gui.get() print(name, event) if ...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/admin.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.138210
from django.contrib import admin from history.models import ( Price, PredictionTest, Trade, TradeRecommendation, Balance, PerformanceComp, Deposit, ClassifierTest, SocialNetworkMention ) class BalanceAdmin(admin.ModelAdmin): ordering = ['-id'] search_fields = ['symbol'] list_display = ['pk', 'crea...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/alert_fail_cases.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.147309
import datetime from django.conf import settings from django.core.management.base import BaseCommand from history.models import PredictionTest, TradeRecommendation, get_time class Command(BaseCommand): help = 'sends email if a fail condition is met' def alert_email(self, fail_message): import smtpli...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/predict_many_sk.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.168260
from django.core.management.base import BaseCommand from history.models import ClassifierTest from django.conf import settings from history.tools import print_and_log from multiprocessing import Pool def do_classifier_test(name, ticker, data_set_inputs, granularity, min_back, timedelta_back): try: ct = Cl...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/predict_many_v2.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.171846
from django.core.management.base import BaseCommand from history.predict import predict_v2 from django.conf import settings from history.tools import print_and_log from multiprocessing import Pool def do_prediction_test(ticker, hidden_layers, min_back, epochs, granularity, datasetinputs, learni...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/compare_perf.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.182939
from django.core.management.base import BaseCommand from django.conf import settings from history.tools import get_fee_amount from history.models import Price, TradeRecommendation, PerformanceComp import datetime class Command(BaseCommand): help = 'compares market perf vs nn_perf' def handle(self, *args, **...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
docker/create_admin.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.197004
#!/usr/bin/env python from django.contrib.auth.models import User import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pypolo.settings") username = os.environ.get("PYTRADER_USER", 'trader') password = os.environ.get("PYTRADER_PASSWORD", 'trader') if not User.objects.filter(username=username).exists(): User.o...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/pull_prices.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.851447
from django.core.management.base import BaseCommand from django.conf import settings class Command(BaseCommand): help = 'pulls prices and stores them in a DB' def handle(self, *args, **options): from history.poloniex import poloniex from history.models import Price import time ...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/pull_bitcointalk.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.853784
import requests import datetime from django.core.management.base import BaseCommand from django.conf import settings from history.models import SocialNetworkMention import xml.etree.ElementTree as ET from BeautifulSoup import BeautifulSoup def get_message_id(link): tmp = link.split('#msg') tmp.reverse() ...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/pull_twitter.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.855099
import twitter import datetime from django.core.management.base import BaseCommand from django.conf import settings from history.models import SocialNetworkMention class Command(BaseCommand): help = 'pulls twitter mentions and stores them in a DB' def handle(self, *args, **options): api = twitter...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/pull_reddit.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.855971
import datetime import praw from django.core.management.base import BaseCommand from django.conf import settings from history.models import SocialNetworkMention class Command(BaseCommand): help = 'pulls reddit mentions and stores them in a DB' def handle(self, *args, **options): r = praw.Reddit(u...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/pull_balance.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.857521
from django.core.management.base import BaseCommand from django.conf import settings from history.tools import get_exchange_rate_to_btc, get_exchange_rate_btc_to_usd, get_deposit_balance from history.models import Balance, Trade import datetime from django.db import transaction import warnings warnings.filterwarnings(...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/scheduled_trades.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.858728
from django.core.management.base import BaseCommand from django.conf import settings from history.models import Trade from history.tools import print_and_log import datetime import warnings warnings.filterwarnings("ignore", category=DeprecationWarning) warnings.filterwarnings("ignore", category=RuntimeWarning) class...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/pull_deposits.py
null
null
null
null
null
null
Python
2026-05-04T01:45:08.859976
from django.core.management.base import BaseCommand from django.conf import settings import datetime from history.tools import get_utc_unixtime from history.models import Deposit class Command(BaseCommand): help = 'pulls balances and stores them in a DB' def handle(self, *args, **options): from hist...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/migrations/0001_initial.py
null
null
null
null
null
null
Python
2026-05-04T01:45:09.039131
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import history.models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Balance', fields=[ ('id',...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/migrations/0002_auto_20160330_1854.py
null
null
null
null
null
null
Python
2026-05-04T01:45:09.068189
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import history.models class Migration(migrations.Migration): dependencies = [ ('history', '0001_initial'), ] operations = [ migrations.AlterField( model_name='balance', ...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/management/commands/trade.py
null
null
null
null
null
null
Python
2026-05-04T01:45:09.207753
from django.core.management.base import BaseCommand from history.models import Price, PredictionTest, Trade, TradeRecommendation, Balance, get_time, ClassifierTest from history.tools import get_utc_unixtime, print_and_log import datetime import time from history.poloniex import poloniex from django.conf import settings...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/migrations/0005_socialnetworkmention_network_created_on.py
null
null
null
null
null
null
Python
2026-05-04T01:45:09.453018
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import history.models class Migration(migrations.Migration): dependencies = [ ('history', '0004_socialnetworkmention'), ] operations = [ migrations.AddField( model_name='...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/migrations/0003_auto_20160330_1920.py
null
null
null
null
null
null
Python
2026-05-04T01:45:09.464842
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('history', '0002_auto_20160330_1854'), ] operations = [ migrations.AlterField( model_name='classifiertest', ...
owocki/pytrader
https://github.com/owocki/pytrader
null
null
null
null
1,961
null
null
mit
null
null
null
null
null
null
null
history/migrations/0007_socialnetworkmention_sentiment_polarity.py
null
null
null
null
null
null
Python
2026-05-04T01:45:09.466507
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('history', '0006_auto_20160416_1305'), ] operations = [ migrations.AddField( model_name='socialnetworkmention', ...