PHP 8.2.30
Preview: __init__.py Size: 1.21 KB
/opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/__init__.py

"""
raven
~~~~~

:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import

import os
import os.path

__all__ = ('VERSION', 'Client', 'get_version')

VERSION = '6.10.0'


def _get_git_revision(path):
    revision_file = os.path.join(path, 'refs', 'heads', 'master')
    if os.path.exists(revision_file):
        with open(revision_file) as fh:
            return fh.read().strip()[:7]


def get_revision():
    """
    :returns: Revision number of this branch/checkout, if available. None if
        no revision number can be determined.
    """
    package_dir = os.path.dirname(__file__)
    checkout_dir = os.path.normpath(os.path.join(package_dir, os.pardir, os.pardir))
    path = os.path.join(checkout_dir, '.git')
    if os.path.exists(path):
        return _get_git_revision(path)


def get_version():
    base = VERSION
    if __build__:
        base = '%s (%s)' % (base, __build__)
    return base


__build__ = get_revision()
__docformat__ = 'restructuredtext en'


# Declare child imports last to prevent recursion
from raven.base import *  # NOQA
from raven.conf import *  # NOQA
from raven.versioning import *  # NOQA

Directory Contents

Dirs: 8 × Files: 9

Name Size Perms Modified Actions
conf DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
contrib DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
data DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
handlers DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
scripts DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
transport DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
utils DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
- drwxr-xr-x 2026-02-06 08:01:46
Edit Download
29.40 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
12.91 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.78 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
4.56 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
620 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.51 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
5.26 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.48 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.21 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).