id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
1,600
_cpmodpy.py
midgetspy_Sick-Beard/cherrypy/_cpmodpy.py
"""Native adapter for serving CherryPy via mod_python Basic usage: ########################################## # Application in a module called myapp.py ########################################## import cherrypy class Root: @cherrypy.expose def index(self): return 'Hi there, Ho there, He...
11,133
Python
.py
269
28.527881
87
0.541746
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,601
_cpchecker.py
midgetspy_Sick-Beard/cherrypy/_cpchecker.py
import os import warnings import cherrypy class Checker(object): """A checker for CherryPy sites and their mounted applications. on: set this to False to turn off the checker completely. When this object is called at engine startup, it executes each of its own methods whose name...
14,612
Python
.py
275
33.370909
85
0.473684
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,602
_cpthreadinglocal.py
midgetspy_Sick-Beard/cherrypy/_cpthreadinglocal.py
# This is a backport of Python-2.4's threading.local() implementation """Thread-local objects (Note that this module provides a Python version of thread threading.local class. Depending on the version of Python you're using, there may be a faster one available. You should always import the local class fro...
6,855
Python
.py
184
29.586957
74
0.584057
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,603
_cprequest.py
midgetspy_Sick-Beard/cherrypy/_cprequest.py
from Cookie import SimpleCookie, CookieError import os import sys import time import types import warnings import cherrypy from cherrypy import _cpreqbody, _cpconfig from cherrypy._cperror import format_exc, bare_error from cherrypy.lib import httputil, file_generator class Hook(object): """A cal...
39,031
Python
.py
775
38.687742
82
0.614566
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,604
_cplogging.py
midgetspy_Sick-Beard/cherrypy/_cplogging.py
"""CherryPy logging.""" import datetime import logging # Silence the no-handlers "warning" (stderr write!) in stdlib logging logging.Logger.manager.emittedNoHandlerWarning = 1 logfmt = logging.Formatter("%(message)s") import os import sys import cherrypy from cherrypy import _cperror class LogManager(...
9,493
Python
.py
213
31.511737
87
0.535202
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,605
_cpwsgi_server.py
midgetspy_Sick-Beard/cherrypy/_cpwsgi_server.py
"""WSGI server interface (see PEP 333). This adds some CP-specific bits to the framework-agnostic wsgiserver package. """ import sys import cherrypy from cherrypy import wsgiserver class CPHTTPRequest(wsgiserver.HTTPRequest): pass class CPHTTPConnection(wsgiserver.HTTPConnection): pass c...
2,686
Python
.py
50
41.26
88
0.660465
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,606
_cpnative_server.py
midgetspy_Sick-Beard/cherrypy/_cpnative_server.py
"""Native adapter for serving CherryPy via its builtin server.""" import logging try: from cStringIO import StringIO except ImportError: from StringIO import StringIO import cherrypy from cherrypy._cperror import format_exc, bare_error from cherrypy.lib import httputil from cherrypy import wsgiserver class ...
6,042
Python
.py
124
31.379032
95
0.543425
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,607
_cpwsgi.py
midgetspy_Sick-Beard/cherrypy/_cpwsgi.py
"""WSGI interface (see PEP 333).""" import sys as _sys import cherrypy as _cherrypy try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from cherrypy import _cperror from cherrypy.lib import httputil def downgrade_wsgi_ux_to_1x(environ): """Return a new en...
13,366
Python
.py
273
35.666667
84
0.583379
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,608
_cperror.py
midgetspy_Sick-Beard/cherrypy/_cperror.py
"""Error classes for CherryPy.""" from cgi import escape as _escape from sys import exc_info as _exc_info from traceback import format_exception as _format_exception from urlparse import urljoin as _urljoin from cherrypy.lib import httputil as _httputil class CherryPyException(Exception): pass cla...
15,119
Python
.py
320
36.15
87
0.603065
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,609
__init__.py
midgetspy_Sick-Beard/cherrypy/__init__.py
"""CherryPy is a pythonic, object-oriented HTTP framework. CherryPy consists of not one, but four separate API layers. The APPLICATION LAYER is the simplest. CherryPy applications are written as a tree of classes and methods, where each branch in the tree corresponds to a branch in the URL path. Each method i...
20,462
Python
.py
451
35.742794
80
0.63433
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,610
_cpserver.py
midgetspy_Sick-Beard/cherrypy/_cpserver.py
"""Manage HTTP servers with CherryPy.""" import warnings import cherrypy from cherrypy.lib import attributes # We import * because we want to export check_port # et al as attributes of this module. from cherrypy.process.servers import * class Server(ServerAdapter): """An adapter for an HTTP server...
4,921
Python
.py
118
30.398305
83
0.578722
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,611
_cptree.py
midgetspy_Sick-Beard/cherrypy/_cptree.py
"""CherryPy Application and Tree objects.""" import os import cherrypy from cherrypy import _cpconfig, _cplogging, _cprequest, _cpwsgi, tools from cherrypy.lib import httputil class Application(object): """A CherryPy Application. Servers and gateways should not instantiate Request objects dir...
11,016
Python
.py
218
37.62844
84
0.597349
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,612
_cpreqbody.py
midgetspy_Sick-Beard/cherrypy/_cpreqbody.py
"""Request body processing for CherryPy. When an HTTP request includes an entity body, it is often desirable to provide that information to applications in a form other than the raw bytes. Different content types demand different approaches. Examples: * For a GIF file, we want the raw bytes in a stream. * An...
26,950
Python
.py
606
30.808581
89
0.552295
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,613
_cptools.py
midgetspy_Sick-Beard/cherrypy/_cptools.py
"""CherryPy tools. A "tool" is any helper, adapted to CP. Tools are usually designed to be used in a variety of ways (although some may only offer one if they choose): Library calls: All tools are callables that can be used wherever needed. The arguments are straightforward and should b...
19,648
Python
.py
392
39.130102
84
0.629534
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,614
_cpconfig.py
midgetspy_Sick-Beard/cherrypy/_cpconfig.py
"""Configuration system for CherryPy. Configuration in CherryPy is implemented via dictionaries. Keys are strings which name the mapped value, which may be of any type. Architecture ------------ CherryPy Requests are part of an Application, which runs in a global context, and configuration data may apply ...
10,328
Python
.py
225
36.968889
88
0.642864
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,615
_cpdispatch.py
midgetspy_Sick-Beard/cherrypy/_cpdispatch.py
"""CherryPy dispatchers. A 'dispatcher' is the object which looks up the 'page handler' callable and collects config for the current request based on the path_info, other request attributes, and the application architecture. The core calls the dispatcher as early as possible, passing it a 'path_info' argument. ...
22,348
Python
.py
465
35.6
87
0.6026
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,616
reprconf.py
midgetspy_Sick-Beard/cherrypy/lib/reprconf.py
"""Generic configuration system using unrepr. Configuration data may be supplied as a Python dictionary, as a filename, or as an open file object. When you supply a filename or file, Python's builtin ConfigParser is used (with some extensions). Namespaces ---------- Configuration keys are separated into namespaces b...
11,033
Python
.py
280
29.017857
79
0.574505
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,617
sessions.py
midgetspy_Sick-Beard/cherrypy/lib/sessions.py
"""Session implementation for CherryPy. We use cherrypy.request to store some convenient variables as well as data about the session for the current request. Instead of polluting cherrypy.request we use a Session object bound to cherrypy.session to store these variables. """ import datetime import os try: ...
26,677
Python
.py
607
32.647446
87
0.591877
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,618
profiler.py
midgetspy_Sick-Beard/cherrypy/lib/profiler.py
"""Profiler tools for CherryPy. CherryPy users ============== You can profile any of your pages as follows: from cherrypy.lib import profiler class Root: p = profile.Profiler("/path/to/profile/dir") def index(self): self.p.run(self._index) index...
6,654
Python
.py
163
30.453988
87
0.589119
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,619
httpauth.py
midgetspy_Sick-Beard/cherrypy/lib/httpauth.py
""" httpauth modules defines functions to implement HTTP Digest Authentication (RFC 2617). This has full compliance with 'Digest' and 'Basic' authentication methods. In 'Digest' it supports both MD5 and MD5-sess algorithms. Usage: First use 'doAuth' to request the client authentication for a certain r...
13,282
Python
.py
280
40.275
87
0.638202
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,620
httputil.py
midgetspy_Sick-Beard/cherrypy/lib/httputil.py
"""HTTP library functions.""" # This module contains functions for building an HTTP application # framework: any one, not just one whose name starts with "Ch". ;) If you # reference any modules from some popular framework inside *this* module, # FuManChu will personally hang you up by your thumbs and submit you ...
15,926
Python
.py
361
33.32687
80
0.586273
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,621
auth_digest.py
midgetspy_Sick-Beard/cherrypy/lib/auth_digest.py
# This file is part of CherryPy <http://www.cherrypy.org/> # -*- coding: utf-8 -*- # vim:ts=4:sw=4:expandtab:fileencoding=utf-8 __doc__ = """An implementation of the server-side of HTTP Digest Access Authentication, which is described in RFC 2617. Example usage, using the built-in get_ha1_dict_plain function w...
14,117
Python
.py
292
38.369863
106
0.619205
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,622
encoding.py
midgetspy_Sick-Beard/cherrypy/lib/encoding.py
try: from cStringIO import StringIO except ImportError: from StringIO import StringIO try: set except NameError: from sets import Set as set import struct import time import types import cherrypy from cherrypy.lib import file_generator from cherrypy.lib import set_vary_header def dec...
14,444
Python
.py
314
31.296178
88
0.545151
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,623
jsontools.py
midgetspy_Sick-Beard/cherrypy/lib/jsontools.py
import sys import cherrypy if sys.version_info >= (2, 6): # Python 2.6: simplejson is part of the standard library import json else: try: import simplejson as json except ImportError: json = None if json is None: def json_decode(s): raise ValueError('No JSON library is avai...
1,574
Python
.py
43
29.860465
66
0.675926
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,624
auth.py
midgetspy_Sick-Beard/cherrypy/lib/auth.py
import cherrypy from cherrypy.lib import httpauth def check_auth(users, encrypt=None, realm=None): """If an authorization header contains credentials, return True, else False.""" request = cherrypy.serving.request if 'authorization' in request.headers: # make sure the provided credentials ...
3,288
Python
.py
62
40.435484
87
0.64586
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,625
__init__.py
midgetspy_Sick-Beard/cherrypy/lib/__init__.py
"""CherryPy Library""" # Deprecated in CherryPy 3.2 -- remove in CherryPy 3.3 from cherrypy.lib.reprconf import _Builder, unrepr, modules, attributes class file_generator(object): """Yield the given input (a file object) in chunks (default 64k). (Core)""" def __init__(self, input, chunkSize=65536...
1,434
Python
.py
37
30.540541
80
0.617797
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,626
static.py
midgetspy_Sick-Beard/cherrypy/lib/static.py
import logging import mimetypes mimetypes.init() mimetypes.types_map['.dwg'] = 'image/x-dwg' mimetypes.types_map['.ico'] = 'image/x-icon' mimetypes.types_map['.bz2'] = 'application/x-bzip2' mimetypes.types_map['.gz'] = 'application/x-gzip' import os import re import stat import time from urllib import unqu...
14,524
Python
.py
296
37.685811
91
0.60946
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,627
cptools.py
midgetspy_Sick-Beard/cherrypy/lib/cptools.py
"""Functions for builtin CherryPy tools.""" import logging try: # Python 2.5+ from hashlib import md5 except ImportError: from md5 import new as md5 import re try: set except NameError: from sets import Set as set import cherrypy from cherrypy.lib import httputil as _httputil ...
22,834
Python
.py
487
35.577002
98
0.593928
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,628
caching.py
midgetspy_Sick-Beard/cherrypy/lib/caching.py
import datetime import threading import time import cherrypy from cherrypy.lib import cptools, httputil class Cache(object): def get(self): raise NotImplemented def put(self, obj, size): raise NotImplemented def delete(self): raise NotImplemented ...
15,405
Python
.py
335
32.925373
84
0.578699
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,629
covercp.py
midgetspy_Sick-Beard/cherrypy/lib/covercp.py
"""Code-coverage tools for CherryPy. To use this module, or the coverage tools in the test suite, you need to download 'coverage.py', either Gareth Rees' original implementation: http://www.garethrees.org/2001/12/04/python-coverage/ or Ned Batchelder's enhanced version: http://www.nedbatchelder.com/code/modul...
11,672
Python
.py
316
26.21519
96
0.539195
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,630
auth_basic.py
midgetspy_Sick-Beard/cherrypy/lib/auth_basic.py
# This file is part of CherryPy <http://www.cherrypy.org/> # -*- coding: utf-8 -*- # vim:ts=4:sw=4:expandtab:fileencoding=utf-8 __doc__ = """Module auth_basic.py provides a CherryPy 3.x tool which implements the server-side of HTTP Basic Access Authentication, as described in RFC 2617. Example usage, using the...
3,639
Python
.py
69
44.188406
90
0.680295
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,631
xmlrpc.py
midgetspy_Sick-Beard/cherrypy/lib/xmlrpc.py
import sys import cherrypy def process_body(): """Return (params, method) from request body.""" try: import xmlrpclib return xmlrpclib.loads(cherrypy.request.body.read()) except Exception: return ('ERROR PARAMS',), 'ERRORMETHOD' def patched_path(path): """Retu...
1,445
Python
.py
38
30.394737
66
0.625993
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,632
http.py
midgetspy_Sick-Beard/cherrypy/lib/http.py
import warnings warnings.warn('cherrypy.lib.http has been deprecated and will be removed ' 'in CherryPy 3.3 use cherrypy.lib.httputil instead.', DeprecationWarning) from cherrypy.lib.httputil import *
238
Python
.py
5
39.2
75
0.707424
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,633
win32.py
midgetspy_Sick-Beard/cherrypy/process/win32.py
"""Windows service. Requires pywin32.""" import os import win32api import win32con import win32event import win32service import win32serviceutil from cherrypy.process import wspbus, plugins class ConsoleCtrlHandler(plugins.SimplePlugin): """A WSPBus plugin for handling Win32 console events (like Ct...
6,047
Python
.py
136
32.632353
82
0.601996
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,634
plugins.py
midgetspy_Sick-Beard/cherrypy/process/plugins.py
"""Site services for use with a Web Site Process Bus.""" import os import re try: set except NameError: from sets import Set as set import signal as _signal import sys import time import thread import threading # _module__file__base is used by Autoreload to make # absolute any filenames retriev...
21,151
Python
.py
470
32.048936
93
0.565992
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,635
servers.py
midgetspy_Sick-Beard/cherrypy/process/servers.py
"""Adapt an HTTP server.""" import time class ServerAdapter(object): """Adapter for an HTTP server. If you need to start more than one HTTP server (to serve on multiple ports, or protocols, etc.), you can manually register each one and then start them all with bus.start: ...
10,560
Python
.py
242
32.289256
86
0.582706
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,636
__init__.py
midgetspy_Sick-Beard/cherrypy/process/__init__.py
"""Site container for an HTTP server. A Web Site Process Bus object is used to connect applications, servers, and frameworks with site-wide services such as daemonization, process reload, signal handling, drop privileges, PID file management, logging for all of these, and many more. The 'plugins' module define...
550
Python
.py
11
47.454545
73
0.803002
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,637
wspbus.py
midgetspy_Sick-Beard/cherrypy/process/wspbus.py
"""An implementation of the Web Site Process Bus. This module is completely standalone, depending only on the stdlib. Web Site Process Bus -------------------- A Bus object is used to contain and manage site-wide behavior: daemonization, HTTP server start/stop, process reload, signal handling, drop privileg...
14,846
Python
.py
325
34.655385
79
0.609131
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,638
ssl_pyopenssl.py
midgetspy_Sick-Beard/cherrypy/wsgiserver/ssl_pyopenssl.py
"""A library for integrating pyOpenSSL with CherryPy. The OpenSSL module must be importable for SSL functionality. You can obtain it from http://pyopenssl.sourceforge.net/ To use this module, set CherryPyWSGIServer.ssl_adapter to an instance of SSLAdapter. There are two ways to use SSL: Method One: ssl_adapter.c...
9,379
Python
.py
197
35.568528
86
0.588136
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,639
ssl_builtin.py
midgetspy_Sick-Beard/cherrypy/wsgiserver/ssl_builtin.py
"""A library for integrating pyOpenSSL with CherryPy. The ssl module must be importable for SSL functionality. To use this module, set CherryPyWSGIServer.ssl_adapter to an instance of BuiltinSSLAdapter. ssl_adapter.certificate: the filename of the server SSL certificate. ssl_adapter.private_key: the filename...
2,542
Python
.py
56
35.875
78
0.631879
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,640
__init__.py
midgetspy_Sick-Beard/cherrypy/wsgiserver/__init__.py
"""A high-speed, production ready, thread pooled, generic HTTP server. Simplest example on how to use this module directly (without using CherryPy's application machinery): from cherrypy import wsgiserver def my_crazy_app(environ, start_response): status = '200 OK' response_heade...
80,807
Python
.py
1,771
30.530774
93
0.525916
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,641
tv_tests.py
midgetspy_Sick-Beard/tests/tv_tests.py
# coding=UTF-8 # Author: Dennis Lutter <[email protected]> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ...
3,474
Python
.py
92
31.663043
82
0.615591
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,642
config_tests.py
midgetspy_Sick-Beard/tests/config_tests.py
import unittest import sys import os.path sys.path.append(os.path.abspath('..')) from sickbeard import config class QualityTests(unittest.TestCase): def test_clean_url(self): self.assertEqual(config.clean_url("https://subdomain.domain.tld/endpoint"), "https://subdomain.domain.tld/endpoint")...
889
Python
.py
15
53
125
0.706497
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,643
db_tests.py
midgetspy_Sick-Beard/tests/db_tests.py
# coding=UTF-8 # Author: Dennis Lutter <[email protected]> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ...
1,415
Python
.py
33
39.969697
95
0.675636
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,644
snatch_tests.py
midgetspy_Sick-Beard/tests/snatch_tests.py
# coding=UTF-8 # Author: Dennis Lutter <[email protected]> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ...
4,114
Python
.py
88
40.340909
238
0.634274
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,645
scene_helpers_tests.py
midgetspy_Sick-Beard/tests/scene_helpers_tests.py
import unittest import test_lib as test import sys, os.path sys.path.append(os.path.abspath('..')) from sickbeard import show_name_helpers, scene_exceptions, common, name_cache import sickbeard from sickbeard import db from sickbeard.databases import cache_db from sickbeard.tv import TVShow as Show c...
7,197
Python
.py
109
55.733945
174
0.667284
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,646
test_lib.py
midgetspy_Sick-Beard/tests/test_lib.py
# coding=UTF-8 # Author: Dennis Lutter <[email protected]> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ...
6,916
Python
.py
173
35.728324
237
0.691583
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,647
all_tests.py
midgetspy_Sick-Beard/tests/all_tests.py
#!/usr/bin/env python # coding=UTF-8 # Author: Dennis Lutter <[email protected]> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Softwa...
1,452
Python
.py
33
41.121212
106
0.713376
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,648
name_parser_tests.py
midgetspy_Sick-Beard/tests/name_parser_tests.py
import datetime import unittest import sys, os.path sys.path.append(os.path.abspath('..')) sys.path.append(os.path.abspath('../lib')) from sickbeard.name_parser import parser import sickbeard sickbeard.SYS_ENCODING = 'UTF-8' DEBUG = VERBOSE = False simple_test_cases = { 'standard': { ...
17,744
Python
.py
277
49.018051
170
0.570489
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,649
pp_tests.py
midgetspy_Sick-Beard/tests/pp_tests.py
# coding=UTF-8 # Author: Dennis Lutter <[email protected]> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ...
2,436
Python
.py
57
38.508772
82
0.657215
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,650
common_tests.py
midgetspy_Sick-Beard/tests/common_tests.py
import unittest import sys import os.path sys.path.append(os.path.abspath('..')) from sickbeard import common class QualityTests(unittest.TestCase): # TODO: repack / proper ? air-by-date ? season rip? multi-ep? def test_SDTV(self): self.assertEqual(common.Quality.SDTV, common.Quality...
8,908
Python
.py
89
90.966292
134
0.748321
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,651
_cpwsgi_server.py
midgetspy_Sick-Beard/cherrypy/_cpwsgi_server.py
"""WSGI server interface (see PEP 333). This adds some CP-specific bits to the framework-agnostic wsgiserver package. """ import sys import cherrypy from cherrypy import wsgiserver class CPHTTPRequest(wsgiserver.HTTPRequest): pass class CPHTTPConnection(wsgiserver.HTTPConnection): pass c...
2,686
Python
.wsgi
50
41.26
88
0.660465
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,652
_cpwsgi.py
midgetspy_Sick-Beard/cherrypy/_cpwsgi.py
"""WSGI interface (see PEP 333).""" import sys as _sys import cherrypy as _cherrypy try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from cherrypy import _cperror from cherrypy.lib import httputil def downgrade_wsgi_ux_to_1x(environ): """Return a new en...
13,366
Python
.wsgi
273
35.666667
84
0.583379
midgetspy/Sick-Beard
2,890
1,507
113
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,653
setup.py
gabrielfalcao_lettuce/setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the ...
1,685
Python
.py
46
33.152174
71
0.701776
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,654
bin.py
gabrielfalcao_lettuce/lettuce/bin.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the ...
5,004
Python
.py
119
29.294118
88
0.54852
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,655
terminal.py
gabrielfalcao_lettuce/lettuce/terminal.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
2,339
Python
.py
66
29.818182
72
0.656637
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,656
fs.py
gabrielfalcao_lettuce/lettuce/fs.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
8,441
Python
.py
223
28.412556
90
0.589605
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,657
strings.py
gabrielfalcao_lettuce/lettuce/strings.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
7,805
Python
.py
216
28.953704
85
0.598539
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,658
languages.py
gabrielfalcao_lettuce/lettuce/languages.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falcão <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundatio...
7,581
Python
.py
198
28.065657
89
0.581935
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,659
__init__.py
gabrielfalcao_lettuce/lettuce/__init__.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
6,642
Python
.py
176
29
77
0.63478
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,660
core.py
gabrielfalcao_lettuce/lettuce/core.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
47,056
Python
.py
1,085
32.23318
213
0.585694
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,661
exceptions.py
gabrielfalcao_lettuce/lettuce/exceptions.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
2,376
Python
.py
54
38.888889
76
0.69961
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,662
terrain.py
gabrielfalcao_lettuce/lettuce/terrain.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
2,250
Python
.py
57
34.473684
75
0.641907
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,663
registry.py
gabrielfalcao_lettuce/lettuce/registry.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
5,051
Python
.py
145
25.813793
106
0.547297
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,664
decorators.py
gabrielfalcao_lettuce/lettuce/decorators.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
4,357
Python
.py
94
39.734043
109
0.623383
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,665
apps.py
gabrielfalcao_lettuce/lettuce/django/apps.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
3,195
Python
.py
74
37.635135
106
0.696227
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,666
__init__.py
gabrielfalcao_lettuce/lettuce/django/__init__.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
1,429
Python
.py
33
39.818182
71
0.721098
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,667
server.py
gabrielfalcao_lettuce/lettuce/django/server.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
11,074
Python
.py
284
29.676056
95
0.622006
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,668
backends.py
gabrielfalcao_lettuce/lettuce/django/mail/backends.py
""" Email backend that sends mails to a multiprocessing queue """ from lettuce.django import mail from django.core.mail.backends.base import BaseEmailBackend class QueueEmailBackend(BaseEmailBackend): def send_messages(self, messages): for message in messages: mail.queue.put(message) ...
341
Python
.py
10
29.6
59
0.759146
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,669
djangoapp.py
gabrielfalcao_lettuce/lettuce/django/tests/functional/djangoapp.py
""" A minimal Django app, just one file. See: http://olifante.blogs.com/covil/2010/04/minimal-django.html """ import os from django.conf.urls.defaults import patterns from django.core.mail import send_mail from django.http import HttpResponse filepath, extension = os.path.splitext(__file__) ROOT_URLCONF = os.path.b...
627
Python
.py
18
31.833333
73
0.727575
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,670
steps.py
gabrielfalcao_lettuce/lettuce/django/tests/functional/steps.py
from lettuce import world, step from lettuce.django import mail from lettuce.django import django_url from nose.tools import assert_equals @step(u'I visit "([^"]*)"') def visit(step, url): world.browser.visit(django_url(url)) @step(u'I see "([^"]*)"') def see(step, text): assert world.browser.is_text_prese...
566
Python
.py
15
34.933333
63
0.698529
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,671
terrain.py
gabrielfalcao_lettuce/lettuce/django/tests/functional/terrain.py
from splinter.browser import Browser from lettuce import before, after, world @before.harvest def setup(server): world.browser = Browser() @after.harvest def cleanup(server): world.browser.quit()
208
Python
.py
8
23.5
40
0.790816
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,672
test_email.py
gabrielfalcao_lettuce/lettuce/django/tests/functional/test_email.py
import os import sys import commands from tests.asserts import assert_not_equals from lettuce.fs import FileSystem current_directory = FileSystem.dirname(__file__) OLD_PYTHONPATH = os.getenv('PYTHONPATH', ':'.join(sys.path)) def teardown(): os.environ['PYTHONPATH'] = OLD_PYTHONPATH def test_email(): 'let...
629
Python
.py
16
35.75
70
0.751656
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,673
__init__.py
gabrielfalcao_lettuce/lettuce/django/management/__init__.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
784
Python
.py
16
48
71
0.765625
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,674
harvest.py
gabrielfalcao_lettuce/lettuce/django/management/commands/harvest.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
10,466
Python
.py
217
36.847926
108
0.601879
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,675
__init__.py
gabrielfalcao_lettuce/lettuce/django/management/commands/__init__.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
784
Python
.py
16
48
71
0.765625
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,676
models.py
gabrielfalcao_lettuce/lettuce/django/steps/models.py
""" Step definitions for working with Django models. """ from datetime import datetime import re from django.core.management import call_command from django.core.management.color import no_style from django.db import connection try: from django.db.models.loading import get_models except ImportError: from djan...
10,131
Python
.py
293
26.34471
79
0.574684
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,677
mail.py
gabrielfalcao_lettuce/lettuce/django/steps/mail.py
""" Step definitions for working with Django email. """ from smtplib import SMTPException from django.core import mail from lettuce import step STEP_PREFIX = r'(?:Given|And|Then|When) ' CHECK_PREFIX = r'(?:And|Then) ' EMAIL_PARTS = ('subject', 'body', 'from_email', 'to', 'bcc', 'cc') GOOD_MAIL = mail.EmailMessage.s...
1,903
Python
.py
60
27.1
77
0.643288
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,678
smtp_mail_queue.py
gabrielfalcao_lettuce/lettuce/plugins/smtp_mail_queue.py
import asyncore import threading from email.header import decode_header from email import message_from_string from smtpd import SMTPServer from lettuce import after, before def _parse_header(val): result = '' elements = decode_header(val) for el, enc in elements: result += el.decode(enc) if en...
3,409
Python
.py
87
29.942529
106
0.621777
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,679
jsonreport_output.py
gabrielfalcao_lettuce/lettuce/plugins/jsonreport_output.py
from datetime import datetime import json from lettuce import world from lettuce.terrain import after, before def enable(filename=None): filename = filename or "lettucetests.json" @before.all def before_all(): """ Set `world._started` to `datetime.now()` to track total duration. ...
7,304
Python
.py
199
28.542714
98
0.568824
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,680
non_verbose.py
gabrielfalcao_lettuce/lettuce/plugins/non_verbose.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
2,251
Python
.py
61
32.967213
71
0.702069
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,681
autopdb.py
gabrielfalcao_lettuce/lettuce/plugins/autopdb.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys from lettuce.terrain import after def enable(runner): @after.each_step def failfast_or_pdb(step): has_traceback = step.why if not has_traceback: return sys.stdout.write(step.why.traceback + '\n') try: ...
865
Python
.py
27
21.925926
64
0.554087
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,682
shell_output.py
gabrielfalcao_lettuce/lettuce/plugins/shell_output.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
5,545
Python
.py
140
33.364286
96
0.657302
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,683
subunit_output.py
gabrielfalcao_lettuce/lettuce/plugins/subunit_output.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falcão <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundatio...
5,048
Python
.py
132
27.477273
82
0.587836
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,684
__init__.py
gabrielfalcao_lettuce/lettuce/plugins/__init__.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
784
Python
.py
16
48
71
0.765625
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,685
xunit_output.py
gabrielfalcao_lettuce/lettuce/plugins/xunit_output.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
4,401
Python
.py
97
38.247423
108
0.667759
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,686
dots.py
gabrielfalcao_lettuce/lettuce/plugins/dots.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
1,745
Python
.py
42
37.428571
71
0.727005
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,687
colored_shell_output.py
gabrielfalcao_lettuce/lettuce/plugins/colored_shell_output.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
9,740
Python
.py
247
32.502024
110
0.615532
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,688
scenario_names.py
gabrielfalcao_lettuce/lettuce/plugins/scenario_names.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
1,873
Python
.py
45
37.244444
71
0.719231
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,689
reporter.py
gabrielfalcao_lettuce/lettuce/plugins/reporter.py
import sys class Reporter(object): def __init__(self): self.failed_scenarios = [] self.scenarios_and_its_fails = {} def wrt(self, what): if isinstance(what, unicode): what = what.encode('utf-8') sys.stdout.write(what) def store_failed_step(self, step): ...
2,156
Python
.py
55
28.236364
70
0.550981
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,690
conf.py
gabrielfalcao_lettuce/docs/conf.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falcão <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundatio...
2,054
Python
.py
58
33.931034
71
0.738911
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,691
adjusts.py
gabrielfalcao_lettuce/docs/_ext/adjusts.py
from sphinx.writers import html as sphinx_htmlwriter class LettuceHTMLTranslator(sphinx_htmlwriter.SmartyPantsHTMLTranslator): """ Lettuce-customized HTML transformations of documentation. Based on djangodocs.DjangoHTMLTranslator """ def visit_section(self, node): node['ids'] = map(lambda ...
432
Python
.py
9
42.777778
77
0.752969
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,692
util.py
gabrielfalcao_lettuce/tests/util.py
""" Utils for testing """ import commands def run_scenario(application='', feature='', scenario='', **opts): """ Runs a Django scenario and returns it's output vars """ if application: application = ' {0}/features/'.format(application) if feature: feature = '{0}.feature'.format(fe...
965
Python
.py
25
23.24
77
0.446945
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,693
asserts.py
gabrielfalcao_lettuce/tests/asserts.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
3,772
Python
.py
88
37.784091
93
0.708425
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,694
test_language_ptbr.py
gabrielfalcao_lettuce/tests/unit/test_language_ptbr.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falcão <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundatio...
5,564
Python
.py
146
32.342466
85
0.657121
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,695
test_step_parsing.py
gabrielfalcao_lettuce/tests/unit/test_step_parsing.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
9,574
Python
.py
237
35.312236
111
0.687264
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,696
test_scenario_parsing.py
gabrielfalcao_lettuce/tests/unit/test_scenario_parsing.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
20,897
Python
.py
475
37.176842
121
0.631944
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,697
test_main.py
gabrielfalcao_lettuce/tests/unit/test_main.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
2,257
Python
.py
54
37.907407
72
0.737083
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,698
test_language_fr.py
gabrielfalcao_lettuce/tests/unit/test_language_fr.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falcão <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundatio...
8,600
Python
.py
224
31.919643
91
0.602319
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
1,699
test_terrain.py
gabrielfalcao_lettuce/tests/unit/test_terrain.py
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2012> Gabriel Falc√£o <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
13,048
Python
.py
347
31.325648
113
0.68411
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)