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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9,300 | classes.py | rembo10_headphones/headphones/classes.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 3,782 | Python | .py | 101 | 31.09901 | 87 | 0.639506 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,301 | searcher.py | rembo10_headphones/headphones/searcher.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 83,699 | Python | .py | 1,708 | 35.241218 | 195 | 0.563367 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,302 | softchroot.py | rembo10_headphones/headphones/softchroot.py | import os
from headphones.exceptions import SoftChrootError
class SoftChroot(object):
""" SoftChroot provides SOFT chrooting for UI
IMPORTANT: call methods of this class just in modules, which generates data for client UI. Try to avoid unnecessary usage.
"""
enabled = False
chroot = None
d... | 1,490 | Python | .py | 50 | 20.44 | 126 | 0.554302 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,303 | logger.py | rembo10_headphones/headphones/logger.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 7,230 | Python | .py | 180 | 32.861111 | 100 | 0.674003 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,304 | deluge.py | rembo10_headphones/headphones/deluge.py | # -*- coding: utf-8 -*-
# This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# He... | 27,190 | Python | .py | 523 | 38.441683 | 143 | 0.561774 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,305 | updater.py | rembo10_headphones/headphones/updater.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 1,218 | Python | .py | 24 | 47.666667 | 118 | 0.758418 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,306 | torrentfinished.py | rembo10_headphones/headphones/torrentfinished.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 1,875 | Python | .py | 39 | 42.205128 | 93 | 0.712486 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,307 | webserve.py | rembo10_headphones/headphones/webserve.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 85,048 | Python | .py | 1,622 | 40.056104 | 193 | 0.610277 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,308 | webstart.py | rembo10_headphones/headphones/webstart.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 4,333 | Python | .py | 108 | 31.574074 | 97 | 0.608551 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,309 | soulseek.py | rembo10_headphones/headphones/soulseek.py | from collections import defaultdict, namedtuple
import os
import time
import slskd_api
import headphones
from headphones import logger
from datetime import datetime, timedelta
Result = namedtuple('Result', ['title', 'size', 'user', 'provider', 'type', 'matches', 'bandwidth', 'hasFreeUploadSlot', 'queueLength', 'files'... | 10,887 | Python | .py | 205 | 42.946341 | 170 | 0.640584 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,310 | lyrics.py | rembo10_headphones/headphones/lyrics.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 2,658 | Python | .py | 72 | 29.986111 | 129 | 0.615804 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,311 | exceptions.py | rembo10_headphones/headphones/exceptions.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 1,025 | Python | .py | 27 | 35.259259 | 74 | 0.753024 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,312 | rutracker.py | rembo10_headphones/headphones/rutracker.py | #!/usr/bin/env python
import urllib.request, urllib.parse, urllib.error
import time
from urllib.parse import urlparse
import re
import requests as requests
# from requests.auth import HTTPDigestAuth
from bs4 import BeautifulSoup
import headphones
from headphones import logger
from headphones.types import Result
cl... | 10,233 | Python | .py | 231 | 32.073593 | 192 | 0.558478 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,313 | unittestcompat.py | rembo10_headphones/headphones/unittestcompat.py | import sys
if sys.version_info < (2, 7):
import unittest2 as unittest
from unittest2 import TestCase as TC
else:
import unittest
from unittest import TestCase as TC
skip = unittest.skip
_dummy = False
# less than 2.6 ...
if sys.version_info[0] == 2 and sys.version_info[1] <= 6:
_dummy = True
de... | 3,681 | Python | .py | 90 | 32.555556 | 104 | 0.59198 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,314 | helpers.py | rembo10_headphones/headphones/helpers.py | # -*- coding: utf-8 -*-
# This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Hea... | 33,155 | Python | .py | 842 | 31.362233 | 236 | 0.595453 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,315 | sab.py | rembo10_headphones/headphones/sab.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 4,289 | Python | .py | 93 | 38.956989 | 130 | 0.647172 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,316 | common.py | rembo10_headphones/headphones/common.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 4,980 | Python | .py | 122 | 33.729508 | 116 | 0.65266 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,317 | music_encoder.py | rembo10_headphones/headphones/music_encoder.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 14,371 | Python | .py | 329 | 32.300912 | 152 | 0.587592 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,318 | bandcamp.py | rembo10_headphones/headphones/bandcamp.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 5,989 | Python | .py | 139 | 34.079137 | 84 | 0.581831 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,319 | metacritic.py | rembo10_headphones/headphones/metacritic.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 3,644 | Python | .py | 71 | 44.338028 | 137 | 0.665354 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,320 | albumart.py | rembo10_headphones/headphones/albumart.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 6,590 | Python | .py | 171 | 28.187135 | 111 | 0.579656 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,321 | softchroot_test.py | rembo10_headphones/headphones/softchroot_test.py | import os
import mock
from headphones.unittestcompat import TestCase, TestArgs
from headphones.softchroot import SoftChroot
from headphones.exceptions import SoftChrootError
class SoftChrootTest(TestCase):
def test_create(self):
""" create headphones.SoftChroot """
cf = SoftChroot('/tmp/')
... | 3,387 | Python | .py | 100 | 25.82 | 84 | 0.546846 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,322 | metadata_test.py | rembo10_headphones/headphones/metadata_test.py | # encoding=utf8
# This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones ... | 5,883 | Python | .py | 151 | 29.966887 | 84 | 0.582997 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,323 | types.py | rembo10_headphones/headphones/types.py | from dataclasses import dataclass
@dataclass(frozen=True)
class Result:
title: str
size: int
url: str
provider: str
kind: str
matches: bool
| 165 | Python | .py | 9 | 14.555556 | 33 | 0.709677 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,324 | clean_pyc.sh | rembo10_headphones/contrib/clean_pyc.sh | #!/bin/bash
# Display information
echo "This script will remove *.pyc files. These files are generated by Python, but they can cause conflicts after an upgrade. It's safe to remove them, because they will be regenerated."
echo "Press enter to continue, or CTRL + C to quit."
read
# Remove the *.pyc
find "`dirname $0`/... | 364 | Python | .py | 7 | 50.857143 | 187 | 0.72191 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,325 | sni_test.py | rembo10_headphones/contrib/sni_test.py | #!/usr/bin/env python
import os
import sys
# Ensure that we use the Headphones provided libraries.
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../lib"))
import urllib.parse
def can_import(module):
"""
Return True if a given module can be imported or not.
"""
try:
__import__... | 4,155 | Python | .py | 117 | 28.08547 | 79 | 0.620449 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,326 | apache-fcgi.conf | rembo10_headphones/lib/cherrypy/scaffold/apache-fcgi.conf | # Apache2 server conf file for using CherryPy with mod_fcgid.
# This doesn't have to be "C:/", but it has to be a directory somewhere, and
# MUST match the directory used in the FastCgiExternalServer directive, below.
DocumentRoot "C:/"
ServerName 127.0.0.1
Listen 80
LoadModule fastcgi_module modules/mod_fastcgi.dll
... | 930 | Python | .cgi | 18 | 50.444444 | 98 | 0.805066 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,327 | apache-fcgi.conf | rembo10_headphones/lib/cherrypy/scaffold/apache-fcgi.conf | # Apache2 server conf file for using CherryPy with mod_fcgid.
# This doesn't have to be "C:/", but it has to be a directory somewhere, and
# MUST match the directory used in the FastCgiExternalServer directive, below.
DocumentRoot "C:/"
ServerName 127.0.0.1
Listen 80
LoadModule fastcgi_module modules/mod_fastcgi.dll
... | 930 | Python | .fcgi | 18 | 50.444444 | 98 | 0.805066 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,328 | _pytest_plugin.py | rembo10_headphones/lib/cheroot/test/_pytest_plugin.py | """Local pytest plugin.
Contains hooks, which are tightly bound to the Cheroot framework
itself, useless for end-users' app testing.
"""
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import pytest
pytest_version = tuple(map(int, pytest.__version__.split('.')))
def pytest_l... | 2,085 | Python | .pyt | 42 | 42.928571 | 79 | 0.700737 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,329 | metacritic.py | rembo10_headphones/headphones/metacritic.py | # This file is part of Headphones.
#
# Headphones 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 version 3 of the License, or
# (at your option) any later version.
#
# Headphones is distributed i... | 3,644 | Python | .tac | 71 | 44.338028 | 137 | 0.665354 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,330 | _cpwsgi_server.py | rembo10_headphones/lib/cherrypy/_cpwsgi_server.py | """WSGI server interface (see PEP 333).
This adds some CP-specific bits to the framework-agnostic cheroot
package.
"""
import sys
import cheroot.wsgi
import cheroot.server
import cherrypy
class CPWSGIHTTPRequest(cheroot.server.HTTPRequest):
"""Wrapper for cheroot.server.HTTPRequest.
This is a layer, which... | 4,190 | Python | .wsgi | 90 | 36.588889 | 78 | 0.652611 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,331 | _cpwsgi.py | rembo10_headphones/lib/cherrypy/_cpwsgi.py | """WSGI interface (see PEP 333 and 3333).
Note that WSGI environ keys and values are 'native strings'; that is,
whatever the type of "" is. For Python 2, that's a byte string; for
Python 3, it's a unicode string. But PEP 3333 says: "even if Python's
str type is actually Unicode "under the hood", the content of native
... | 16,438 | Python | .wsgi | 379 | 32.598945 | 79 | 0.584455 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,332 | test_wsgi.py | rembo10_headphones/lib/cheroot/test/test_wsgi.py | """Test wsgi."""
from concurrent.futures.thread import ThreadPoolExecutor
from traceback import print_tb
import pytest
import portend
import requests
from requests_toolbelt.sessions import BaseUrlSession as Session
from jaraco.context import ExceptionTrap
from cheroot import wsgi
from cheroot._compat import IS_MACOS... | 2,758 | Python | .wsgi | 63 | 38.079365 | 76 | 0.698318 | rembo10/headphones | 3,370 | 601 | 527 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,333 | printcore.py | kliment_Printrun/printcore.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pri... | 3,641 | Python | .py | 96 | 29.364583 | 81 | 0.580764 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,334 | setup.py | kliment_Printrun/setup.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pri... | 2,176 | Python | .py | 58 | 32.017241 | 75 | 0.665557 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,335 | gcodeplater.py | kliment_Printrun/gcodeplater.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pri... | 895 | Python | .py | 23 | 37.043478 | 70 | 0.75576 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,336 | pronterface.py | kliment_Printrun/pronterface.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pri... | 2,428 | Python | .py | 57 | 36.649123 | 189 | 0.654384 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,337 | calibrateextruder.py | kliment_Printrun/calibrateextruder.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Prin... | 5,132 | Python | .py | 153 | 28.078431 | 128 | 0.587429 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,338 | pronsole.py | kliment_Printrun/pronsole.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pri... | 2,295 | Python | .py | 53 | 37 | 189 | 0.649664 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,339 | plater.py | kliment_Printrun/plater.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pri... | 1,780 | Python | .py | 47 | 32.255319 | 84 | 0.643271 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,340 | mock-printer.py | kliment_Printrun/testtools/mock-printer.py | #!/usr/bin/env python3
# Test network communication without networked 3d printer
# Usage:
# bash1$ ./testtools/mock-printer.py
# bash2$ ./pronterface.py
# Enter localhost:8080 in Port, press Connect, Load file, Print
import socket
with socket.socket() as s:
s.bind(('127.0.0.1', 8080))
s.listen(1)
c, addr = ... | 906 | Python | .py | 29 | 23.068966 | 111 | 0.530217 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,341 | lengthy.py | kliment_Printrun/testtools/lengthy.py | #!/usr/bin/python3
#generate many g1 to test serial buffer overflow in run_gcode_script
#run like this:
#in pronsole> run_gcode_script ./testtools/lengthy.py
print('G28 X')
print('G1 X0')
for x in range(100):
print()
print(' ')
print('G1 X', x)
| 258 | Python | .py | 10 | 23.6 | 68 | 0.697581 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,342 | gcodeviewer.py | kliment_Printrun/testtools/gcodeviewer.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pri... | 2,014 | Python | .py | 56 | 33.607143 | 154 | 0.72704 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,343 | test_device.py | kliment_Printrun/tests/test_device.py | """Test suite for `printrun/device.py`"""
# How to run the tests (requires Python 3.11+):
# python3 -m unittest discover tests
# Standard libraries:
import socket
import unittest
from unittest import mock
# Third-party libraries:
import serial
# Custom libraries:
# pylint: disable-next=no-name-in-module
from print... | 14,464 | Python | .py | 317 | 37.466877 | 79 | 0.660026 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,344 | test_printcore.py | kliment_Printrun/tests/test_printcore.py | """Test suite for `printrun/printcore.py`.
It also serves as a test for printrun.eventhandler.PrinterEventHandler.
"""
# How to run the tests (requires Python 3.11+):
# python3 -m unittest discover tests
# Standard libraries:
import random
import socket
import time
import unittest
from unittest import mock
# 3rd ... | 30,032 | Python | .py | 637 | 37.453689 | 78 | 0.631914 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,345 | device.py | kliment_Printrun/printrun/device.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 14,218 | Python | .py | 354 | 29.276836 | 249 | 0.5505 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,346 | printcore.py | kliment_Printrun/printrun/printcore.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 27,023 | Python | .py | 644 | 29.958075 | 127 | 0.563983 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,347 | settings.py | kliment_Printrun/printrun/settings.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 19,566 | Python | .py | 412 | 38.390777 | 171 | 0.60494 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,348 | gcodeplater.py | kliment_Printrun/printrun/gcodeplater.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pri... | 11,165 | Python | .py | 240 | 34.6375 | 117 | 0.551734 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,349 | gcoder_line.pyx | kliment_Printrun/printrun/gcoder_line.pyx | #cython: language_level=3
#
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
#... | 9,791 | Python | .py | 239 | 32.317992 | 91 | 0.562867 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,350 | pronterface.py | kliment_Printrun/printrun/pronterface.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 121,132 | Python | .py | 2,361 | 39.148666 | 355 | 0.579597 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,351 | gcview.py | kliment_Printrun/printrun/gcview.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pri... | 21,874 | Python | .py | 487 | 35.131417 | 205 | 0.61048 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,352 | gviz.py | kliment_Printrun/printrun/gviz.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 23,682 | Python | .py | 511 | 35.837573 | 198 | 0.580919 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,353 | gcoder.py | kliment_Printrun/printrun/gcoder.py | #!/usr/bin/env python3
#
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pr... | 30,564 | Python | .py | 686 | 30.846939 | 158 | 0.519056 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,354 | excluder.py | kliment_Printrun/printrun/excluder.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 5,405 | Python | .py | 123 | 34.073171 | 103 | 0.583096 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,355 | utils.py | kliment_Printrun/printrun/utils.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 12,521 | Python | .py | 296 | 35.581081 | 106 | 0.658432 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,356 | eventhandler.py | kliment_Printrun/printrun/eventhandler.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 3,125 | Python | .py | 101 | 22.29703 | 70 | 0.601257 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,357 | rpc.py | kliment_Printrun/printrun/rpc.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 4,192 | Python | .py | 101 | 32.247525 | 95 | 0.634535 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,358 | gcoder_heapy_support.patch | kliment_Printrun/printrun/gcoder_heapy_support.patch | --- printrun/gcoder_line.c 2013-06-15 16:08:53.260081109 +0200
+++ printrun/gcoder_line.c 2013-06-15 16:08:57.083439793 +0200
@@ -3945,2 +3945,4 @@ static int __Pyx_InitGlobals(void) {
+#include "gcoder_line_extra.h"
+
#if PY_MAJOR_VERSION < 3
@@ -4032,2 +4034,7 @@ PyMODINIT_FUNC PyInit_gcoder_line(void)
/*--- Ex... | 660 | Python | .py | 13 | 49.153846 | 97 | 0.656299 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,359 | zscaper.py | kliment_Printrun/printrun/zscaper.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 4,774 | Python | .py | 75 | 58.12 | 239 | 0.552833 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,360 | projectlayer.py | kliment_Printrun/printrun/projectlayer.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 56,092 | Python | .py | 1,022 | 42.353229 | 145 | 0.589843 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,361 | objectplater.py | kliment_Printrun/printrun/objectplater.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 17,004 | Python | .py | 338 | 38.609467 | 136 | 0.575114 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,362 | packer.py | kliment_Printrun/printrun/packer.py | # Imported from python-rectangle-packer commit 32fce1aaba
# https://github.com/maxretter/python-rectangle-packer
#
# Python Rectangle Packer - Packs rectangles around a central point
# Copyright (C) 2013 Max Retter
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU ... | 7,060 | Python | .py | 175 | 31.165714 | 97 | 0.598536 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,363 | injectgcode.py | kliment_Printrun/printrun/injectgcode.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 1,922 | Python | .py | 38 | 47.710526 | 103 | 0.721364 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,364 | stlplater.py | kliment_Printrun/printrun/stlplater.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pri... | 19,236 | Python | .py | 458 | 29.700873 | 137 | 0.534294 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,365 | stlview.py | kliment_Printrun/printrun/stlview.py | #!/usr/bin/env python3
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Pri... | 18,146 | Python | .py | 424 | 30.688679 | 123 | 0.538414 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,366 | pronsole.py | kliment_Printrun/printrun/pronsole.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 73,659 | Python | .py | 1,611 | 34.136561 | 374 | 0.536665 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,367 | stltool.py | kliment_Printrun/printrun/stltool.py | # coding: utf-8
# This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun i... | 13,809 | Python | .py | 357 | 27.87395 | 93 | 0.500932 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,368 | osx.py | kliment_Printrun/printrun/power/osx.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 3,096 | Python | .py | 71 | 38.788732 | 91 | 0.738885 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,369 | __init__.py | kliment_Printrun/printrun/power/__init__.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 5,183 | Python | .py | 130 | 30.307692 | 83 | 0.613704 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,370 | trackball.py | kliment_Printrun/printrun/gl/trackball.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 2,724 | Python | .py | 72 | 32.916667 | 74 | 0.524677 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,371 | panel.py | kliment_Printrun/printrun/gl/panel.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 17,232 | Python | .py | 403 | 33.826303 | 92 | 0.594013 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,372 | actors.py | kliment_Printrun/printrun/gl/libtatlin/actors.py | # -*- coding: utf-8 -*-
# Copyright (C) 2013 Guillaume Seguin
# Copyright (C) 2011 Denis Kobozev
#
# 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 Foundation; either version 2 of the License, or
# (at your ... | 48,911 | Python | .py | 964 | 34.974066 | 129 | 0.522109 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,373 | controls.py | kliment_Printrun/printrun/gui/controls.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 20,869 | Python | .py | 384 | 45.393229 | 181 | 0.632045 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,374 | bufferedcanvas.py | kliment_Printrun/printrun/gui/bufferedcanvas.py | """
BufferedCanvas -- flicker-free canvas widget
Copyright (C) 2005, 2006 Daniel Keep, 2011 Duane Johnson
To use this widget, just override or replace the draw method.
This will be called whenever the widget size changes, or when
the update method is explicitly called.
Please submit any improvements/bugfixes/ideas to... | 3,276 | Python | .py | 87 | 31.37931 | 72 | 0.666035 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,375 | toolbar.py | kliment_Printrun/printrun/gui/toolbar.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 4,272 | Python | .py | 85 | 43.388235 | 135 | 0.682787 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,376 | graph.py | kliment_Printrun/printrun/gui/graph.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 21,456 | Python | .py | 453 | 36.06181 | 111 | 0.594004 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,377 | utils.py | kliment_Printrun/printrun/gui/utils.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 1,466 | Python | .py | 33 | 40.818182 | 102 | 0.731281 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,378 | __init__.py | kliment_Printrun/printrun/gui/__init__.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 13,721 | Python | .py | 282 | 38.521277 | 101 | 0.652226 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,379 | log.py | kliment_Printrun/printrun/gui/log.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 2,237 | Python | .py | 44 | 44.477273 | 146 | 0.687529 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,380 | zbuttons.py | kliment_Printrun/printrun/gui/zbuttons.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 6,048 | Python | .py | 151 | 31.609272 | 108 | 0.6 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,381 | widgets.py | kliment_Printrun/printrun/gui/widgets.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 31,749 | Python | .py | 668 | 37.112275 | 145 | 0.599697 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,382 | viz.py | kliment_Printrun/printrun/gui/viz.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 5,083 | Python | .py | 109 | 33.53211 | 119 | 0.576008 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,383 | xybuttons.py | kliment_Printrun/printrun/gui/xybuttons.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 19,964 | Python | .py | 472 | 31.629237 | 144 | 0.562523 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,384 | spoolmanager.py | kliment_Printrun/printrun/spoolmanager/spoolmanager.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 8,798 | Python | .py | 208 | 33.346154 | 78 | 0.610122 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,385 | spoolmanager_gui.py | kliment_Printrun/printrun/spoolmanager/spoolmanager_gui.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 32,507 | Python | .py | 611 | 42.129296 | 121 | 0.613596 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,386 | sample.py | kliment_Printrun/printrun/plugins/sample.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 1,989 | Python | .py | 49 | 33.836735 | 70 | 0.664324 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,387 | __init__.py | kliment_Printrun/printrun/plugins/__init__.py | # This file is part of the Printrun suite.
#
# Printrun 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 version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | 784 | Python | .py | 18 | 42.444444 | 70 | 0.782723 | kliment/Printrun | 2,360 | 997 | 202 | GPL-3.0 | 9/5/2024, 5:10:38 PM (Europe/Amsterdam) |
9,388 | setup.py | s3tools_s3cmd/setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import os
try:
import xml.etree.ElementTree
print("Using xml.etree.ElementTree for XML processing")
except ImportError as e:
sys.stderr.write(str(e) + "\n")
try:
import elementtree.ElementTree
... | 4,198 | Python | .py | 111 | 32.207207 | 95 | 0.639558 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |
9,389 | run-tests.py | s3tools_s3cmd/run-tests.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
## --------------------------------------------------------------------
## Amazon S3cmd - testsuite
##
## Authors : Michal Ludvig <michal@logix.cz> (https://www.logix.cz/michal)
## Florent Viard <florent@sodria.com> (https://www.sodria.com)
## Copyright : TGR... | 39,835 | Python | .py | 723 | 48.957123 | 331 | 0.612455 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |
9,390 | Config.py | s3tools_s3cmd/S3/Config.py | # -*- coding: utf-8 -*-
## --------------------------------------------------------------------
## Amazon S3 manager
##
## Authors : Michal Ludvig <michal@logix.cz> (https://www.logix.cz/michal)
## Florent Viard <florent@sodria.com> (https://www.sodria.com)
## Copyright : TGRMN Software, Sodria SAS and c... | 29,938 | Python | .py | 641 | 33.75975 | 168 | 0.550101 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |
9,391 | ExitCodes.py | s3tools_s3cmd/S3/ExitCodes.py | # -*- coding: utf-8 -*-
# patterned on /usr/include/sysexits.h
EX_OK = 0
EX_GENERAL = 1
EX_PARTIAL = 2 # some parts of the command succeeded, while others failed
EX_SERVERMOVED = 10 # 301: Moved permanently & 307: Moved temp
EX_SERVERERROR = 11 # 400, 405, 411, 41... | 2,254 | Python | .py | 49 | 40.204082 | 94 | 0.590537 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |
9,392 | FileDict.py | s3tools_s3cmd/S3/FileDict.py | # -*- coding: utf-8 -*-
## --------------------------------------------------------------------
## Amazon S3 manager
##
## Authors : Michal Ludvig <michal@logix.cz> (https://www.logix.cz/michal)
## Florent Viard <florent@sodria.com> (https://www.sodria.com)
## Copyright : TGRMN Software, Sodria SAS and c... | 2,744 | Python | .py | 69 | 32.072464 | 95 | 0.569231 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |
9,393 | Exceptions.py | s3tools_s3cmd/S3/Exceptions.py | # -*- coding: utf-8 -*-
## --------------------------------------------------------------------
## Amazon S3 manager - Exceptions library
##
## Authors : Michal Ludvig <michal@logix.cz> (https://www.logix.cz/michal)
## Florent Viard <florent@sodria.com> (https://www.sodria.com)
## Copyright : TGRMN Softw... | 4,852 | Python | .py | 134 | 28.529851 | 89 | 0.595904 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |
9,394 | S3Uri.py | s3tools_s3cmd/S3/S3Uri.py | # -*- coding: utf-8 -*-
## --------------------------------------------------------------------
## Amazon S3 manager
##
## Authors : Michal Ludvig <michal@logix.cz> (https://www.logix.cz/michal)
## Florent Viard <florent@sodria.com> (https://www.sodria.com)
## Copyright : TGRMN Software, Sodria SAS and c... | 7,874 | Python | .py | 209 | 29.574163 | 113 | 0.542793 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |
9,395 | FileLists.py | s3tools_s3cmd/S3/FileLists.py | # -*- coding: utf-8 -*-
## --------------------------------------------------------------------
## Create and compare lists of files/objects
##
## Authors : Michal Ludvig <michal@logix.cz> (https://www.logix.cz/michal)
## Florent Viard <florent@sodria.com> (https://www.sodria.com)
## Copyright : TGRMN So... | 28,822 | Python | .py | 634 | 32.908517 | 135 | 0.539255 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |
9,396 | S3.py | s3tools_s3cmd/S3/S3.py | # -*- coding: utf-8 -*-
## --------------------------------------------------------------------
## Amazon S3 manager
##
## Authors : Michal Ludvig <michal@logix.cz> (https://www.logix.cz/michal)
## Florent Viard <florent@sodria.com> (https://www.sodria.com)
## Copyright : TGRMN Software, Sodria SAS and c... | 104,820 | Python | .py | 2,033 | 37.701918 | 183 | 0.563025 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |
9,397 | ACL.py | s3tools_s3cmd/S3/ACL.py | # -*- coding: utf-8 -*-
## --------------------------------------------------------------------
## Amazon S3 - Access Control List representation
##
## Authors : Michal Ludvig <michal@logix.cz> (https://www.logix.cz/michal)
## Florent Viard <florent@sodria.com> (https://www.sodria.com)
## Copyright : TGR... | 8,601 | Python | .py | 218 | 30.738532 | 153 | 0.589661 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |
9,398 | CloudFront.py | s3tools_s3cmd/S3/CloudFront.py | # -*- coding: utf-8 -*-
## --------------------------------------------------------------------
## Amazon CloudFront support
##
## Authors : Michal Ludvig <michal@logix.cz> (https://www.logix.cz/michal)
## Florent Viard <florent@sodria.com> (https://www.sodria.com)
## Copyright : TGRMN Software, Sodria S... | 37,587 | Python | .py | 795 | 36.396226 | 134 | 0.575226 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |
9,399 | Custom_httplib3x.py | s3tools_s3cmd/S3/Custom_httplib3x.py | from __future__ import absolute_import, print_function
import os
import sys
import http.client as httplib
from http.client import (_CS_REQ_SENT, _CS_REQ_STARTED, CONTINUE, UnknownProtocol,
CannotSendHeader, NO_CONTENT, NOT_MODIFIED, EXPECTATION_FAILED,
HTTPMessage, HTTPExcept... | 11,505 | Python | .py | 268 | 34.589552 | 87 | 0.643783 | s3tools/s3cmd | 4,533 | 903 | 301 | GPL-2.0 | 9/5/2024, 5:10:46 PM (Europe/Amsterdam) |