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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21,800 | notification_contact_add.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/notification_contact_add.py | from yowsup.structs import ProtocolTreeNode
from .notification_contact import ContactNotificationProtocolEntity
class AddContactNotificationProtocolEntity(ContactNotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="contacts"
t="{{TIMESTA... | 1,271 | Python | .tac | 26 | 41.884615 | 106 | 0.706119 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,801 | notification_contact_remove.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/notification_contact_remove.py | from yowsup.structs import ProtocolTreeNode
from .notification_contact import ContactNotificationProtocolEntity
class RemoveContactNotificationProtocolEntity(ContactNotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="contacts"
t="{{TIME... | 1,295 | Python | .tac | 26 | 42.807692 | 109 | 0.71169 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,802 | test_notification_contact_update.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/test_notification_contact_update.py | from yowsup.layers.protocol_contacts.protocolentities import UpdateContactNotificationProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import time
import unittest
entity = UpdateContactNotificationProtocolEntity("1234", "jid@s.whatsapp.net",
i... | 612 | Python | .tac | 10 | 53.1 | 111 | 0.771667 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,803 | notification_contact.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/notification_contact.py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from yowsup.layers.protocol_notifications.protocolentities import NotificationProtocolEntity
class ContactNotificationProtocolEntity(NotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="cont... | 812 | Python | .tac | 15 | 47.8 | 115 | 0.731646 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,804 | test_notification_contact_remove.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/test_notification_contact_remove.py | from yowsup.layers.protocol_contacts.protocolentities import RemoveContactNotificationProtocolEntity
from yowsup.structs.protocolentity import ProtocolEntityTest
import time
import unittest
entity = RemoveContactNotificationProtocolEntity("1234", "jid@s.whatsapp.net",
i... | 613 | Python | .tac | 10 | 53.2 | 112 | 0.770383 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,805 | notification_contact_update.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/notification_contact_update.py | from yowsup.structs import ProtocolTreeNode
from .notification_contact import ContactNotificationProtocolEntity
class UpdateContactNotificationProtocolEntity(ContactNotificationProtocolEntity):
'''
<notification offline="0" id="{{NOTIFICATION_ID}}" notify="{{NOTIFY_NAME}}" type="contacts"
t="{{TIME... | 1,295 | Python | .tac | 26 | 42.807692 | 109 | 0.71169 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,806 | notificiation_contacts_sync.py | tgalal_yowsup/yowsup/layers/protocol_contacts/protocolentities/notificiation_contacts_sync.py | from yowsup.structs import ProtocolTreeNode
from .notification_contact import ContactNotificationProtocolEntity
class ContactsSyncNotificationProtocolEntity(ContactNotificationProtocolEntity):
'''
<notification from="4917667738517@s.whatsapp.net" t="1437251557" offline="0" type="contacts" id="4174521704">
... | 1,237 | Python | .tac | 25 | 42.76 | 113 | 0.72622 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,807 | stack.py | tgalal_yowsup/yowsup/demos/contacts/stack.py | from .layer import SyncLayer
from yowsup.stacks import YowStackBuilder
from yowsup.layers import YowLayerEvent
from yowsup.layers.auth import YowAuthenticationProtocolLayer
from yowsup.layers.network import YowNetworkLayer
class YowsupSyncStack(object):
def __init__(self, profile, contacts):
"""
... | 964 | Python | .tac | 25 | 31.2 | 86 | 0.684549 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,808 | stack.py | tgalal_yowsup/yowsup/demos/echoclient/stack.py | from yowsup.stacks import YowStackBuilder
from .layer import EchoLayer
from yowsup.layers import YowLayerEvent
from yowsup.layers.network import YowNetworkLayer
class YowsupEchoStack(object):
def __init__(self, profile):
stackBuilder = YowStackBuilder()
self._stack = stackBuilder\
.p... | 641 | Python | .tac | 17 | 30.705882 | 86 | 0.692557 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,809 | stack.py | tgalal_yowsup/yowsup/demos/sendclient/stack.py | from yowsup.stacks import YowStackBuilder
from .layer import SendLayer
from yowsup.layers import YowLayerEvent
from yowsup.layers.auth import YowAuthenticationProtocolLayer
from yowsup.layers.network import YowNetworkLayer
class YowsupSendStack(object):
def __init__(self, profile, messages):
"""
... | 975 | Python | .tac | 25 | 31.68 | 86 | 0.689619 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,810 | stack.py | tgalal_yowsup/yowsup/demos/cli/stack.py | from yowsup.stacks import YowStackBuilder
from .layer import YowsupCliLayer
from yowsup.layers import YowLayerEvent
from yowsup.layers.axolotl.props import PROP_IDENTITY_AUTOTRUST
import sys
class YowsupCliStack(object):
def __init__(self, profile):
stackBuilder = YowStackBuilder()
self._stack =... | 927 | Python | .tac | 24 | 30.833333 | 91 | 0.659598 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,811 | stack.py | tgalal_yowsup/yowsup/demos/mediasink/stack.py | from yowsup.stacks import YowStackBuilder
from .layer import MediaSinkLayer
from yowsup.layers import YowLayerEvent
from yowsup.layers.network import YowNetworkLayer
class MediaSinkStack(object):
def __init__(self, profile, storage_dir=None):
stackBuilder = YowStackBuilder()
self._stack = stackB... | 741 | Python | .tac | 18 | 34.111111 | 86 | 0.703343 | tgalal/yowsup | 7,053 | 2,225 | 472 | GPL-3.0 | 9/5/2024, 5:13:02 PM (Europe/Amsterdam) |
21,812 | setup.py | OctoPrint_OctoPrint/setup.py | # -*- coding: utf-8 -*-
### NOTE #################################################################################
# This file has to stay format compatible to Python 2, or pip under Python 2 will
# not be able to detect that OctoPrint requires Python 3 but instead fail with a
# syntax error.
#
# So, no f-strings, no ... | 13,633 | Python | .py | 326 | 32.509202 | 146 | 0.579369 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,813 | __init__.py | OctoPrint_OctoPrint/src/octoprint_setuptools/__init__.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
### NOTE #################################################################################
# This file has to stay format compatible to Python 2, or pip under Python 2 will
# not be able to detect that OctoPrint ... | 22,250 | Python | .py | 565 | 30.115044 | 121 | 0.598951 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,814 | __init__.py | OctoPrint_OctoPrint/src/octoprint_client/__init__.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import json
import time
import requests
import websocket
def build_base_url(
https=False, httpuser=None, httppass=None, ... | 13,686 | Python | .py | 340 | 29.402941 | 103 | 0.56978 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,815 | users.py | OctoPrint_OctoPrint/src/octoprint/users.py | __author__ = "Marc Hannappel <salandora@gmail.com>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License"
# Wrapper to the new access.users location
import warnings
from octoprint... | 1,344 | Python | .py | 34 | 32.382353 | 103 | 0.678709 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,816 | webcams.py | OctoPrint_OctoPrint/src/octoprint/webcams.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import octoprint.plugin
from octoprint.plugin import plugin_manager
from octoprint.schema.webcam import Webcam
... | 4,553 | Python | .py | 101 | 35.960396 | 141 | 0.665911 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,817 | _version.py | OctoPrint_OctoPrint/src/octoprint/_version.py | """
This file is responsible for calculating the version of OctoPrint.
It's based heavily on versioneer and miniver.
The version is calculated as follows:
If a file named `_static_version.py` exists in the package root, it is
imported and the version is read from there. This is the case for
source distributions crea... | 12,255 | Python | .py | 340 | 29.152941 | 121 | 0.598275 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,818 | environment.py | OctoPrint_OctoPrint/src/octoprint/environment.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License"
import copy
import logging
import os
import sys
import threading
import psutil
from octoprint.plugin import EnvironmentDetect... | 6,483 | Python | .py | 158 | 29.132911 | 103 | 0.572564 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,819 | timelapse.py | OctoPrint_OctoPrint/src/octoprint/timelapse.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
import collections
import datetime
import fnmatch
import glob
import logging
import os
import queue
import re
import shutil
import sys
import threading
import time
import sarge
import o... | 44,603 | Python | .py | 1,105 | 29.086878 | 131 | 0.573413 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,820 | daemon.py | OctoPrint_OctoPrint/src/octoprint/daemon.py | """
Generic linux daemon base class
Originally from http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/#c35
"""
import os
import signal
import sys
import time
class Daemon:
"""
A generic daemon class.
Usage: subclass the daemon class and override the run() method.
If you wa... | 4,891 | Python | .py | 150 | 22.6 | 95 | 0.537824 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,821 | __init__.py | OctoPrint_OctoPrint/src/octoprint/__init__.py | #!/usr/bin/env python
import logging as log
import os
import sys
from ._version import get_data as get_version_data
# ~~ version
version_data = get_version_data()
__version__ = version_data["version"]
__branch__ = version_data["branch"]
__display_version__ = __version__
__revision__ = version_data["revision"]
de... | 34,228 | Python | .py | 819 | 30.379731 | 139 | 0.584176 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,822 | events.py | OctoPrint_OctoPrint/src/octoprint/events.py | __author__ = "Gina Häußge <osd@foosel.net>, Lars Norpchen"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import collections
import datetime
import logging
import queue
impor... | 18,741 | Python | .py | 441 | 31.811791 | 141 | 0.599681 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,823 | filters.py | OctoPrint_OctoPrint/src/octoprint/logging/filters.py | import logging
import urllib.parse
class TornadoAccessFilter(logging.Filter):
def filter(self, record):
try:
status, request_line, rtt = record.args
if status == 409:
_, url, _ = request_line.split()
u = urllib.parse.urlparse(url)
if... | 682 | Python | .py | 17 | 28.294118 | 75 | 0.570348 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,824 | handlers.py | OctoPrint_OctoPrint/src/octoprint/logging/handlers.py | import concurrent.futures
import logging.handlers
import os
import re
import time
class AsyncLogHandlerMixin(logging.Handler):
def __init__(self, *args, **kwargs):
self._executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
super().__init__(*args, **kwargs)
def emit(self, record):
... | 5,394 | Python | .py | 150 | 27.3 | 88 | 0.61232 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,825 | __init__.py | OctoPrint_OctoPrint/src/octoprint/logging/__init__.py | from octoprint.logging import filters # noqa: F401
from octoprint.logging import handlers # noqa: F401
def log_to_handler(logger, handler, level, msg, exc_info=None, extra=None, *args):
"""
Logs to the provided handler only.
Arguments:
logger: logger to log to
handler: handler t... | 4,961 | Python | .py | 127 | 31.023622 | 90 | 0.576218 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,826 | __init__.py | OctoPrint_OctoPrint/src/octoprint/systemcommands/__init__.py | """
This module represents OctoPrint's system and server commands.
"""
__author__ = "Johan Verrept <johan@verrept.eu>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
import ... | 2,984 | Python | .py | 65 | 38.184615 | 103 | 0.683483 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,827 | __init__.py | OctoPrint_OctoPrint/src/octoprint/schema/__init__.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from pydantic import BaseModel as PydanticBaseModel
class BaseModel(PydanticBaseModel):
class Config:
use_enum_va... | 332 | Python | .py | 6 | 51.833333 | 103 | 0.767802 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,828 | access_control.py | OctoPrint_OctoPrint/src/octoprint/schema/config/access_control.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import List, Optional
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_att... | 4,333 | Python | .py | 39 | 106.333333 | 407 | 0.774035 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,829 | controls.py | OctoPrint_OctoPrint/src/octoprint/schema/config/controls.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from enum import Enum
from typing import List, Optional, Union
from octoprint.schema import BaseModel
from octoprint.vendor.wi... | 6,121 | Python | .py | 57 | 102.789474 | 727 | 0.746313 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,830 | feature.py | OctoPrint_OctoPrint/src/octoprint/schema/config/feature.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import List
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_attrs_docs
... | 2,049 | Python | .py | 32 | 59.40625 | 244 | 0.747126 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,831 | temperature.py | OctoPrint_OctoPrint/src/octoprint/schema/config/temperature.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import List
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_attrs_docs
... | 1,187 | Python | .py | 26 | 41.307692 | 103 | 0.728696 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,832 | devel.py | OctoPrint_OctoPrint/src/octoprint/schema/config/devel.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from enum import Enum
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_attrs_docs
cl... | 2,614 | Python | .py | 40 | 60.925 | 283 | 0.750881 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,833 | slicing.py | OctoPrint_OctoPrint/src/octoprint/schema/config/slicing.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import Dict, Optional
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_att... | 665 | Python | .py | 13 | 47.846154 | 103 | 0.752322 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,834 | plugins.py | OctoPrint_OctoPrint/src/octoprint/schema/config/plugins.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import Dict, List
from pydantic import Field
from octoprint.schema import BaseModel
from octoprint.vendor.with_at... | 1,069 | Python | .py | 14 | 73.142857 | 205 | 0.766221 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,835 | gcode_analysis.py | OctoPrint_OctoPrint/src/octoprint/schema/config/gcode_analysis.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from enum import Enum
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_attrs_docs
cl... | 1,128 | Python | .py | 23 | 44.956522 | 111 | 0.726691 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,836 | serial.py | OctoPrint_OctoPrint/src/octoprint/schema/config/serial.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from enum import Enum
from typing import List, Optional
from octoprint.schema import BaseModel
from octoprint.vendor.with_attr... | 10,859 | Python | .py | 177 | 56.084746 | 289 | 0.731868 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,837 | folder.py | OctoPrint_OctoPrint/src/octoprint/schema/config/folder.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import Optional
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_attrs_doc... | 2,453 | Python | .py | 33 | 69.69697 | 138 | 0.744176 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,838 | printer_profiles.py | OctoPrint_OctoPrint/src/octoprint/schema/config/printer_profiles.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import Optional
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_attrs_doc... | 468 | Python | .py | 9 | 49.666667 | 103 | 0.782418 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,839 | estimation.py | OctoPrint_OctoPrint/src/octoprint/schema/config/estimation.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_attrs_docs
@with_attrs_docs
class Pr... | 1,681 | Python | .py | 20 | 80.2 | 313 | 0.782688 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,840 | api.py | OctoPrint_OctoPrint/src/octoprint/schema/config/api.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import Dict, Optional
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_att... | 653 | Python | .py | 12 | 51.25 | 114 | 0.748031 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,841 | terminalfilters.py | OctoPrint_OctoPrint/src/octoprint/schema/config/terminalfilters.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_attrs_docs
@with_attrs_docs
class Te... | 1,406 | Python | .py | 29 | 43.275862 | 175 | 0.637491 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,842 | appearance.py | OctoPrint_OctoPrint/src/octoprint/schema/config/appearance.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from enum import Enum
from typing import List
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs imp... | 4,693 | Python | .py | 138 | 27.550725 | 235 | 0.633672 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,843 | webcam.py | OctoPrint_OctoPrint/src/octoprint/schema/config/webcam.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from enum import Enum
from typing import Optional
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs... | 3,556 | Python | .py | 56 | 58.875 | 554 | 0.73078 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,844 | __init__.py | OctoPrint_OctoPrint/src/octoprint/schema/config/__init__.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import List, Union
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_attrs_... | 2,299 | Python | .py | 49 | 44.102041 | 103 | 0.819599 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,845 | events.py | OctoPrint_OctoPrint/src/octoprint/schema/config/events.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from enum import Enum
from typing import List, Optional
from octoprint.schema import BaseModel
from octoprint.vendor.with_attr... | 1,244 | Python | .py | 29 | 38.931034 | 105 | 0.72856 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,846 | system.py | OctoPrint_OctoPrint/src/octoprint/schema/config/system.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import List, Optional
from pydantic import Field
from octoprint.schema import BaseModel
from octoprint.vendor.wit... | 1,179 | Python | .py | 22 | 49.909091 | 116 | 0.737347 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,847 | server.py | OctoPrint_OctoPrint/src/octoprint/schema/config/server.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from enum import Enum
from typing import Dict, List, Optional
from octoprint.schema import BaseModel
from octoprint.vendor.wit... | 10,741 | Python | .py | 139 | 72.690647 | 718 | 0.747626 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,848 | printer_parameters.py | OctoPrint_OctoPrint/src/octoprint/schema/config/printer_parameters.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import List
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_attrs_docs
... | 413 | Python | .py | 8 | 49.625 | 103 | 0.793017 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,849 | scripts.py | OctoPrint_OctoPrint/src/octoprint/schema/config/scripts.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from typing import Dict, Optional
from octoprint.schema import BaseModel
from octoprint.vendor.with_attrs_docs import with_att... | 1,353 | Python | .py | 25 | 49.84 | 197 | 0.726929 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,850 | __init__.py | OctoPrint_OctoPrint/src/octoprint/schema/webcam/__init__.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from enum import Enum
from typing import List, Optional
from octoprint.schema import BaseModel
from octoprint.vendor.with_attr... | 2,073 | Python | .py | 47 | 39.553191 | 153 | 0.716925 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,851 | profile.py | OctoPrint_OctoPrint/src/octoprint/printer/profile.py | """
This module contains printer profile related code.
A printer profile is a ``dict`` of the following structure:
.. list-table::
:widths: 15 5 30
:header-rows: 1
* - Name
- Type
- Description
* - ``id``
- ``string``
- Internal id of the printer profile
* - ``name``
- ``strin... | 28,175 | Python | .py | 719 | 27.821975 | 142 | 0.54097 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,852 | estimation.py | OctoPrint_OctoPrint/src/octoprint/printer/estimation.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
from octoprint.settings import settings
class PrintTimeEstimator:
"""
Es... | 11,738 | Python | .py | 225 | 40.444444 | 124 | 0.635008 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,853 | __init__.py | OctoPrint_OctoPrint/src/octoprint/printer/__init__.py | """
This module defines the interface for communicating with a connected printer.
The communication is in fact divided in two components, the :class:`PrinterInterface` and a deeper lying
communication layer. However, plugins should only ever need to use the :class:`PrinterInterface` as the
abstracted version of the ac... | 29,243 | Python | .py | 596 | 38.723154 | 125 | 0.628 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,854 | standard.py | OctoPrint_OctoPrint/src/octoprint/printer/standard.py | """
This module holds the standard implementation of the :class:`PrinterInterface` and it helpers.
"""
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of ... | 77,500 | Python | .py | 1,829 | 29.157463 | 139 | 0.548639 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,855 | __init__.py | OctoPrint_OctoPrint/src/octoprint/settings/__init__.py | """
This module represents OctoPrint's settings management. Within this module the default settings for the core
application are defined and the instance of the :class:`Settings` is held, which offers getter and setter
methods for the raw configuration values as well as various convenience methods to access the paths t... | 82,100 | Python | .py | 1,933 | 29.801345 | 202 | 0.548669 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,856 | __init__.py | OctoPrint_OctoPrint/src/octoprint/plugin/__init__.py | """
This module represents OctoPrint's plugin subsystem. This includes management and helper methods as well as the
registered plugin types.
.. autofunction:: plugin_manager
.. autofunction:: plugin_settings
.. autofunction:: call_plugin
.. autoclass:: PluginSettings
:members:
"""
__author__ = "Gina Häußge <osd... | 26,939 | Python | .py | 517 | 42.466151 | 127 | 0.651435 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,857 | core.py | OctoPrint_OctoPrint/src/octoprint/plugin/core.py | """
In this module resides the core data structures and logic of the plugin system.
.. autoclass:: PluginManager
:members:
.. autoclass:: PluginInfo
:members:
.. autoclass:: Plugin
:members:
.. autoclass:: RestartNeedingPlugin
:members:
.. autoclass:: SortablePlugin
:members:
"""
__license__ = "GN... | 85,899 | Python | .py | 2,030 | 29.760591 | 147 | 0.570857 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,858 | types.py | OctoPrint_OctoPrint/src/octoprint/plugin/types.py | """
This module bundles all of OctoPrint's supported plugin implementation types as well as their common parent
class, :class:`OctoPrintPlugin`.
Please note that the plugin implementation types are documented in the section
:ref:`Available plugin mixins <sec-plugins-mixins>`.
.. autoclass:: OctoPrintPlugin
:show-i... | 107,308 | Python | .py | 1,834 | 48.009269 | 188 | 0.66166 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,859 | client.py | OctoPrint_OctoPrint/src/octoprint/cli/client.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import json
import click
import octoprint_client
from octoprint import FatalStartupError, init_settings
from octoprint.cli im... | 8,411 | Python | .py | 250 | 28.164 | 103 | 0.649698 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,860 | analysis.py | OctoPrint_OctoPrint/src/octoprint/cli/analysis.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License"
import sys
import click
from octoprint.util import yaml
click.disable_unicode_literals_warning = True
# ~~ "octoprint util"... | 4,500 | Python | .py | 119 | 31.731092 | 103 | 0.655991 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,861 | dev.py | OctoPrint_OctoPrint/src/octoprint/cli/dev.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import sys
import click
click.disable_unicode_literals_warning = True
class Oct... | 13,178 | Python | .py | 291 | 30.859107 | 132 | 0.534633 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,862 | user.py | OctoPrint_OctoPrint/src/octoprint/cli/user.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2019 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import click
from octoprint import init_settings
from octoprint.access.groups import FilebasedGroupManager
fr... | 6,813 | Python | .py | 181 | 30.696133 | 112 | 0.647514 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,863 | config.py | OctoPrint_OctoPrint/src/octoprint/cli/config.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import json
import logging
import pprint
import click
from octoprint import FatalStartupError, init_pluginsystem, init_setti... | 8,033 | Python | .py | 214 | 31.901869 | 103 | 0.659246 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,864 | plugins.py | OctoPrint_OctoPrint/src/octoprint/cli/plugins.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import logging.config
import click
from octoprint.cli import OctoPrintContext, get_ctx_obj_option, pass_octop... | 4,553 | Python | .py | 113 | 29.823009 | 103 | 0.588249 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,865 | timelapse.py | OctoPrint_OctoPrint/src/octoprint/cli/timelapse.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import os
from concurrent.futures import ThreadPoolExecutor, wait
import click
from octoprint import FatalSta... | 2,985 | Python | .py | 74 | 34.351351 | 103 | 0.693158 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,866 | systeminfo.py | OctoPrint_OctoPrint/src/octoprint/cli/systeminfo.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2020 The OctoPrint Project - Released under terms of the AGPLv3 License"
import datetime
import logging
import os
import click
from zipstream.ng import ZIP_DEFLATED, ZipStream
from octoprint.cli im... | 7,966 | Python | .py | 201 | 28.527363 | 120 | 0.568247 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,867 | __init__.py | OctoPrint_OctoPrint/src/octoprint/cli/__init__.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import sys
import click
import octoprint
from octoprint.cli.common import LazyGroup
click.disable_unicode_literals_warning ... | 11,314 | Python | .py | 309 | 28.773463 | 120 | 0.637072 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,868 | common.py | OctoPrint_OctoPrint/src/octoprint/cli/common.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
from importlib import import_module
import click
from werkzeug.utils import cached_property
class LazyGroup(click.Group):
... | 1,302 | Python | .py | 30 | 37.566667 | 103 | 0.691819 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,869 | server.py | OctoPrint_OctoPrint/src/octoprint/cli/server.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import sys
import click
from octoprint.cli import (
bulk_options,
get_ctx_obj_option,
set_ctx_obj... | 13,924 | Python | .py | 391 | 25.102302 | 137 | 0.565182 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,870 | users.py | OctoPrint_OctoPrint/src/octoprint/access/users.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import hashlib
import logging
import os
import shutil
import time
import uuid
import wrapt
from flask_login import AnonymousUs... | 47,899 | Python | .py | 1,185 | 29.913924 | 137 | 0.596 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,871 | __init__.py | OctoPrint_OctoPrint/src/octoprint/access/__init__.py | import logging
ADMIN_GROUP = "admins"
USER_GROUP = "users"
GUEST_GROUP = "guests"
READONLY_GROUP = "readonly"
def auth_log(message):
logging.getLogger("AUTH").info(message)
| 180 | Python | .py | 7 | 23.714286 | 43 | 0.752941 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,872 | groups.py | OctoPrint_OctoPrint/src/octoprint/access/groups.py | __author__ = "Marc Hannappel <salandora@gmail.com>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import os
from functools import partial
from octoprint.acce... | 23,546 | Python | .py | 595 | 27.359664 | 120 | 0.552725 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,873 | permissions.py | OctoPrint_OctoPrint/src/octoprint/access/permissions.py | __author__ = "Marc Hannappel <salandora@gmail.com>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License"
from collections import OrderedDict, defaultdict
from functools import wrap... | 13,791 | Python | .py | 375 | 28.066667 | 103 | 0.618015 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,874 | __init__.py | OctoPrint_OctoPrint/src/octoprint/slicing/__init__.py | """
In this module the slicing support of OctoPrint is encapsulated.
.. autoclass:: SlicingProfile
:members:
.. autoclass:: TemporaryProfile
:members:
.. autoclass:: SlicingManager
:members:
"""
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/... | 31,325 | Python | .py | 644 | 37.546584 | 149 | 0.629142 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,875 | exceptions.py | OctoPrint_OctoPrint/src/octoprint/slicing/exceptions.py | """
Slicing related exceptions.
.. autoclass:: SlicingException
.. autoclass:: SlicingCancelled
:show-inheritance:
.. autoclass:: SlicerException
:show-inheritance:
.. autoclass:: UnknownSlicer
:show-inheritance:
.. autoclass:: SlicerNotConfigured
:show-inheritance:
.. autoclass:: ProfileException
..... | 3,865 | Python | .py | 102 | 31.313725 | 103 | 0.655905 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,876 | __init__.py | OctoPrint_OctoPrint/src/octoprint/server/__init__.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import atexit
import base64
import functools
import logging
import logging.config
i... | 109,758 | Python | .py | 2,460 | 30.669919 | 173 | 0.554182 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,877 | views.py | OctoPrint_OctoPrint/src/octoprint/server/views.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import base64
import datetime
import logging
import os
import re
from collections i... | 62,405 | Python | .py | 1,554 | 28.686615 | 147 | 0.558849 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,878 | users.py | OctoPrint_OctoPrint/src/octoprint/server/api/users.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
from flask import redirect, url_for
from octoprint.server.api import api
# NOTE: The redirects here should rather be 308 PERM... | 2,151 | Python | .py | 37 | 55.432432 | 113 | 0.749402 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,879 | slicing.py | OctoPrint_OctoPrint/src/octoprint/server/api/slicing.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
from flask import abort, jsonify, make_response, request, url_for
from octoprint.a... | 8,589 | Python | .py | 224 | 31.098214 | 103 | 0.669073 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,880 | settings.py | OctoPrint_OctoPrint/src/octoprint/server/api/settings.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import re
from flask import abort, jsonify, request
from flask_logi... | 54,130 | Python | .py | 1,169 | 33.47562 | 145 | 0.554087 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,881 | access.py | OctoPrint_OctoPrint/src/octoprint/server/api/access.py | __author__ = "Marc Hannappel <salandora@gmail.com>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License"
from flask import abort, jsonify, request
from flask_login import current_u... | 10,638 | Python | .py | 302 | 28.364238 | 103 | 0.657828 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,882 | printer_profiles.py | OctoPrint_OctoPrint/src/octoprint/server/api/printer_profiles.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import copy
from flask import abort, jsonify, request, url_for
from octoprint.ac... | 6,112 | Python | .py | 144 | 36.833333 | 103 | 0.716745 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,883 | languages.py | OctoPrint_OctoPrint/src/octoprint/server/api/languages.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import os
import zipfile
from collections import defaultdict
from f... | 8,539 | Python | .py | 205 | 30.278049 | 109 | 0.583404 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,884 | timelapse.py | OctoPrint_OctoPrint/src/octoprint/server/api/timelapse.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import os
import threading
from urllib.parse import quote as urlquot... | 10,499 | Python | .py | 261 | 31.321839 | 147 | 0.63773 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,885 | __init__.py | OctoPrint_OctoPrint/src/octoprint/server/api/__init__.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import datetime
import logging
from flask import (
Blueprint,
Response,
... | 24,684 | Python | .py | 645 | 28.64031 | 107 | 0.598367 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,886 | printer.py | OctoPrint_OctoPrint/src/octoprint/server/api/printer.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import re
from flask import Response, abort, jsonify, request
from octoprint.acce... | 16,387 | Python | .py | 380 | 35.823684 | 103 | 0.653034 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,887 | system.py | OctoPrint_OctoPrint/src/octoprint/server/api/system.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import collections
import logging
import re
import threading
import psutil
from flask import abort, jsonify, request, url_for
... | 12,357 | Python | .py | 303 | 32.39604 | 289 | 0.633344 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,888 | job.py | OctoPrint_OctoPrint/src/octoprint/server/api/job.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
from flask import abort, jsonify, request
from octoprint.access.permissions import... | 3,065 | Python | .py | 70 | 33.542857 | 111 | 0.600671 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,889 | connection.py | OctoPrint_OctoPrint/src/octoprint/server/api/connection.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
from flask import abort, jsonify, request
from octoprint.access.permissions import... | 3,734 | Python | .py | 84 | 36.345238 | 103 | 0.650702 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,890 | files.py | OctoPrint_OctoPrint/src/octoprint/server/api/files.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import hashlib
import logging
import os
import threading
from urllib.parse import q... | 51,270 | Python | .py | 1,199 | 28.774812 | 160 | 0.54171 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,891 | watchdog.py | OctoPrint_OctoPrint/src/octoprint/server/util/watchdog.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import os
import shutil
import threading
import time
import watchdo... | 6,843 | Python | .py | 165 | 28.078788 | 109 | 0.550971 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,892 | flask.py | OctoPrint_OctoPrint/src/octoprint/server/util/flask.py | from flask import make_response
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import functools
import hashlib
import hmac
import... | 68,419 | Python | .py | 1,615 | 31.16904 | 131 | 0.589068 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,893 | tornado.py | OctoPrint_OctoPrint/src/octoprint/server/util/tornado.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import asyncio
import logging
import mimetypes
import os
import re
import sys
from ... | 73,484 | Python | .py | 1,574 | 35.79479 | 152 | 0.614777 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,894 | csrf.py | OctoPrint_OctoPrint/src/octoprint/server/util/csrf.py | """CSRF double cookie implementation"""
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
import flask
from octoprint.server.util.flask import OctoPrintFlaskResponse
exempt_v... | 2,552 | Python | .py | 64 | 34.09375 | 103 | 0.702526 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,895 | __init__.py | OctoPrint_OctoPrint/src/octoprint/server/util/__init__.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import base64
import datetime
import logging
import sys
PY3 = sys.version_info >= ... | 16,719 | Python | .py | 411 | 33.399027 | 115 | 0.674189 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,896 | sockjs.py | OctoPrint_OctoPrint/src/octoprint/server/util/sockjs.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import re
import threading
import time
import wrapt
import octopri... | 28,411 | Python | .py | 663 | 30.458522 | 116 | 0.569882 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,897 | webassets.py | OctoPrint_OctoPrint/src/octoprint/server/util/webassets.py | __author__ = "Gina Häußge <gina@octoprint.org>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License"
import gzip
import logging
import os
import re
import threading
from urllib imp... | 6,697 | Python | .py | 176 | 29.590909 | 104 | 0.600031 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,898 | net.py | OctoPrint_OctoPrint/src/octoprint/util/net.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2018 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import os
import socket
import sys
import netaddr
import netifaces
import requests
import werkzeug.http
from we... | 9,805 | Python | .py | 251 | 29.541833 | 121 | 0.612781 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |
21,899 | fixes.py | OctoPrint_OctoPrint/src/octoprint/util/fixes.py | """
This module contains a functions that monkey patch third party dependencies in the one or other way.
"""
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
| 198 | Python | .py | 4 | 48.25 | 100 | 0.766839 | OctoPrint/OctoPrint | 8,222 | 1,667 | 264 | AGPL-3.0 | 9/5/2024, 5:13:10 PM (Europe/Amsterdam) |