__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license notice:
#
#   Licensed to the Apache Software Foundation (ASF) under one or more
#   contributor license agreements. See the NOTICE file distributed
#   with this work for additional information regarding copyright
#   ownership. The ASF licenses this file to you under the Apache
#   License, Version 2.0 (the "License"); you may not use this file
#   except in compliance with the License. You may obtain a copy of
#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
""" Bootstrap PyUNO Runtime.
The soffice process is started opening a named pipe of random name, then
the local context is used to access the pipe. This function directly
returns the remote component context, from whereon you can get the
ServiceManager by calling getServiceManager() on the returned object.
This module supports the following environments:
-   Windows
-   GNU/Linux derivatives
-   Mac OS X
A configurable time-out allows to wait for LibO process to be completed.
Multiple attempts can be set in order to connect to LibO as a service.
Specific versions of the office suite can be started.
Instructions:
1.  Include one of the below examples in your Python macro
2.  Run your LibreOffice script from your preferred IDE
Imports:
    os, random, subprocess, sys - `bootstrap`
    itertools, time - `retry` decorator
Exceptions:
    OSError            - in `bootstrap`
    BootstrapException - in `bootstrap`
    NoConnectException - in `bootstrap`
Functions:
    `bootstrap`
    `retry` decorator
Acknowledgments:
  - Kim Kulak for original officehelper.py Python translation from bootstrap.java
  - ActiveState, for `retry` python decorator
warning:: Tested platforms are Linux, Mac OS X & Windows
    AppImage, Flatpak, Snap and the like have not been validated
:References:
.. _ActiveState retry Python decorator: http://code.activestate.com/recipes/580745-retry-decorator-in-python/
"""
# in bootstrap()
import os
import random
import signal
import subprocess
from sys import platform
# in retry() decorator
import itertools
import time

import uno
from com.sun.star.connection import NoConnectException
from com.sun.star.uno import Exception as UnoException


class BootstrapException(UnoException):
    pass


def retry(delays=(0, 1, 5, 30, 180, 600, 3600),
          exception=Exception,
          report=lambda *args: None):
    """retry Python decorator
    Credit:
    http://code.activestate.com/recipes/580745-retry-decorator-in-python/
    """
    def wrapper(function):
        def wrapped(*args, **kwargs):
            problems = []
            for delay in itertools.chain(delays, [None]):
                try:
                    return function(*args, **kwargs)
                except exception as problem:
                    problems.append(problem)
                    if delay is None:
                        report("retryable failed definitely:", problems)
                        raise
                    else:
                        report("retryable failed:", problem,
                               "-- delaying for %ds" % delay)
                        time.sleep(delay)
            return None
        return wrapped
    return wrapper


def bootstrap(soffice=None, delays=(1, 3, 5, 7), report=lambda *args: None):
    # 4 connection attempts; sleeping 1, 3, 5 and 7 seconds
    # no report to console
    r"""Bootstrap PyUNO Runtime.
    The soffice process is started opening a named pipe of random name,
    then the local context is used to access the pipe. This function
    directly returns the remote component context, from whereon you can
    get the ServiceManager by calling getServiceManager() on the
    returned object.

    Examples:
    i.  Start LO as a service, get its remote component context

        import officehelper
        ctx = officehelper.bootstrap()
        # your code goes here

    ii. Wait longer for LO to start, request context multiples times
      + Report processing in console

        import officehelper as oh
        ctx = oh.bootstrap(delays=(5,10,15,20),report=print)  # wait 5, 10, 15 and 20 sec.
        # your code goes here

    iii. Use a specific LibreOffice copy

        from officehelper import bootstrap
        ctx = bootstrap(soffice=r"USB:\PortableApps\libO-7.6\App\libreoffice\program\soffice.exe")
        # your code goes here
    """
    try:
        process = None  # used in except clause
        if soffice:  # soffice fully qualified path as parm
            sOffice = soffice
        else:  # soffice script used on *ix, Mac; soffice.exe used on Win
            if "UNO_PATH" in os.environ:
                sOffice = os.environ["UNO_PATH"]
            else:
                sOffice = ""  # let's hope for the best
            sOffice = os.path.join(sOffice, "soffice")
            if platform.startswith("win"):
                sOffice += ".exe"
                sOffice = '"' + sOffice + '"'  # accommodate ' ' spaces in filename
            elif platform == "darwin":  # any other un-hardcoded suggestion?
                sOffice = "/Applications/LibreOffice.App/Contents/MacOS/soffice"
        # Generate a random pipe name.
        random.seed()
        sPipeName = "uno" + str(random.random())[2:]
        # Start the office process
        connect_string = ''.join(['pipe,name=', sPipeName, ';urp;'])
        command = ' '.join([sOffice, '--nologo', '--nodefault', '--accept="' + connect_string + '"'])
        if platform.startswith("win") or platform == "darwin":
            process = subprocess.Popen(command, shell=True)
        elif platform == "linux":  # Use a process group to enable proper termination
            process = subprocess.Popen(command, shell=True, preexec_fn=os.setsid)
        else:
            raise OSError
        # Connect to a started office instance
        xLocalContext = uno.getComponentContext()
        resolver = xLocalContext.ServiceManager.createInstanceWithContext(
            "com.sun.star.bridge.UnoUrlResolver", xLocalContext)
        sConnect = "".join(['uno:', connect_string, 'StarOffice.ComponentContext'])
        @retry(delays=delays,
               exception=NoConnectException,
               report=report)
        def resolve():
            return resolver.resolve(sConnect)  # may raise NoConnectException
        ctx = resolve()
        return ctx

    except Exception:
        time.sleep(10)
        if process:  # clean memory from soffice running process
            if platform.startswith("win") or platform == "darwin":
                process.terminate()  # Send termination signal
            elif platform == "linux":  
                os.killpg(os.getpgid(process.pid), signal.SIGTERM)  # Send termination signal to process group
        raise BootstrapException

# vim: set shiftwidth=4 softtabstop=4 expandtab

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
classes Folder 0755
opencl Folder 0755
opengl Folder 0755
resource Folder 0755
services Folder 0755
shell Folder 0755
types Folder 0755
wizards Folder 0755
bootstraprc File 112 B 0644
fundamentalrc File 2.34 KB 0644
gdbtrace File 350 B 0644
intro-highres.png File 120.46 KB 0644
intro.png File 81.45 KB 0644
java-set-classpath File 1.98 KB 0755
libLanguageToollo.so File 171.58 KB 0644
libOGLTranslo.so File 303.22 KB 0644
libPresentationMinimizerlo.so File 327.36 KB 0644
libacclo.so File 1.65 MB 0644
libaffine_uno_uno.so File 22.52 KB 0644
libanalysislo.so File 432.91 KB 0644
libanimcorelo.so File 194.9 KB 0644
libavmediagst.so File 99.92 KB 0644
libbiblo.so File 592.59 KB 0644
libbinaryurplo.so File 211.63 KB 0644
libbootstraplo.so File 608.92 KB 0644
libcached1.so File 379.3 KB 0644
libcairocanvaslo.so File 705.61 KB 0644
libclewlo.so File 26.25 KB 0644
libcmdmaillo.so File 79.04 KB 0644
libcuilo.so File 5.04 MB 0644
libdatelo.so File 91.08 KB 0644
libdbahsqllo.so File 99.02 KB 0644
libdbalo.so File 3.79 MB 0644
libdeploymentgui.so File 412.92 KB 0644
libdlgprovlo.so File 199.47 KB 0644
libfilelo.so File 850.04 KB 0644
libgcc3_uno.so File 79.11 KB 0644
libgraphicfilterlo.so File 51.04 KB 0644
libhwplo.so File 555.85 KB 0644
libi18nlangtag.so File 151.38 KB 0644
libintrospectionlo.so File 211.41 KB 0644
libinvocadaptlo.so File 46.91 KB 0644
libinvocationlo.so File 126.94 KB 0644
libiolo.so File 388.89 KB 0644
libjavaloaderlo.so File 79.05 KB 0644
libjavavmlo.so File 143.51 KB 0644
libjvmaccesslo.so File 34.63 KB 0644
libjvmfwklo.so File 155.9 KB 0644
libldapbe2lo.so File 71.09 KB 0644
liblocaledata_en.so File 466.34 KB 0644
liblocaledata_es.so File 434.27 KB 0644
liblocaledata_euro.so File 2.98 MB 0644
liblocaledata_others.so File 4.16 MB 0644
liblog_uno_uno.so File 18.45 KB 0644
libloglo.so File 151.73 KB 0644
liblosessioninstalllo.so File 46.9 KB 0644
liblpsolve55.so File 640.63 KB 0644
liblwpftlo.so File 1.25 MB 0644
libmergedlo.so File 109.96 MB 0644
libmigrationoo2lo.so File 54.95 KB 0644
libmigrationoo3lo.so File 63.05 KB 0644
libmozbootstraplo.so File 55.03 KB 0644
libmsformslo.so File 608.91 KB 0644
libmswordlo.so File 3.01 MB 0644
libnamingservicelo.so File 34.74 KB 0644
libpcrlo.so File 1.77 MB 0644
libpdffilterlo.so File 369.13 KB 0644
libpdfimportlo.so File 592.92 KB 0644
libpdfiumlo.so File 4.85 MB 0644
libpricinglo.so File 106.91 KB 0644
libprotocolhandlerlo.so File 58.98 KB 0644
libproxyfaclo.so File 34.84 KB 0644
libpythonloaderlo.so File 30.94 KB 0644
libpyuno.so File 296.07 KB 0644
libreflectionlo.so File 255.81 KB 0644
libreglo.so File 91.1 KB 0644
libsal_textenclo.so File 1.62 MB 0644
libscdlo.so File 46.94 KB 0644
libscfiltlo.so File 5.69 MB 0644
libsclo.so File 20.9 MB 0644
libscnlo.so File 160.09 KB 0644
libscriptframe.so File 239.69 KB 0644
libscuilo.so File 906.58 KB 0644
libsdbtlo.so File 139.3 KB 0644
libsddlo.so File 43 KB 0644
libsdlo.so File 9.61 MB 0644
libsduilo.so File 1.81 MB 0644
libskialo.so File 7.17 MB 0644
libslideshowlo.so File 2.28 MB 0644
libsmdlo.so File 34.91 KB 0644
libsmlo.so File 1.93 MB 0644
libsolverlo.so File 167.27 KB 0644
libstaroffice-0.0-lo.so.0 File 2.55 MB 0644
libstocserviceslo.so File 159.64 KB 0644
libstoragefdlo.so File 54.94 KB 0644
libstorelo.so File 126.74 KB 0644
libsvgfilterlo.so File 889.55 KB 0644
libsw_writerfilterlo.so File 3.44 MB 0644
libswdlo.so File 34.93 KB 0644
libswlo.so File 22.23 MB 0644
libswuilo.so File 2.77 MB 0644
libt602filterlo.so File 131.05 KB 0644
libtextconversiondlgslo.so File 95 KB 0644
libucpchelp1.so File 496.42 KB 0644
libucpcmis1lo.so File 2.16 MB 0644
libucpdav1.so File 536.61 KB 0644
libucpgio1lo.so File 188.05 KB 0644
libucppkg1.so File 247.55 KB 0644
libuno_cppu.so.3 File 251.34 KB 0644
libuno_cppuhelpergcc3.so.3 File 1.24 MB 0644
libuno_purpenvhelpergcc3.so.3 File 30.56 KB 0644
libuno_sal.so.3 File 489.07 KB 0644
libuno_salhelpergcc3.so.3 File 38.76 KB 0644
libunoidllo.so File 487.22 KB 0644
libunopkgapp.so File 151.56 KB 0644
libunsafe_uno_uno.so File 14.39 KB 0644
libuuresolverlo.so File 38.8 KB 0644
libvbaobjlo.so File 3.04 MB 0644
libvbaswobjlo.so File 3.05 MB 0644
libvclplug_genlo.so File 599.66 KB 0644
libvclplug_gtk3lo.so File 2.37 MB 0644
libwpftcalclo.so File 99.52 KB 0644
libwpftdrawlo.so File 640.01 KB 0644
libwpftimpresslo.so File 75.27 KB 0644
libwpftwriterlo.so File 404.85 KB 0644
libwriterlo.so File 200.02 KB 0644
libwriterperfectlo.so File 79.02 KB 0644
libxmlreaderlo.so File 46.65 KB 0644
libxmlsecurity.so File 825.25 KB 0644
lounorc File 1.03 KB 0644
mailmerge.py File 21.91 KB 0644
msgbox.py File 7.99 KB 0644
officehelper.py File 7 KB 0644
oosplash File 50.3 KB 0755
opencltest File 14.31 KB 0755
pagein-calc File 24 B 0644
pagein-common File 255 B 0644
pagein-draw File 24 B 0644
pagein-impress File 24 B 0644
pagein-writer File 24 B 0644
pythonloader.py File 6.65 KB 0644
pythonloader.unorc File 182 B 0644
pyuno.so File 14.24 KB 0644
redirectrc File 50 B 0644
regview File 14.32 KB 0755
scalc File 63 B 0755
sdraw File 63 B 0755
senddoc File 13.63 KB 0755
services.rdb File 9.77 KB 0644
setuprc File 33 B 0644
simpress File 66 B 0755
smath File 63 B 0755
soffice File 6.5 KB 0755
soffice.bin File 14.23 KB 0755
sofficerc File 1.26 KB 0644
swriter File 65 B 0755
types.rdb File 56.36 KB 0644
uno File 1.26 KB 0755
uno.bin File 82.54 KB 0755
unoinfo File 1.27 KB 0755
unopkg File 2.83 KB 0755
unopkg.bin File 14.23 KB 0755
unorc File 239 B 0644
uri-encode File 14.23 KB 0755
versionrc File 1.01 KB 0644
xpdfimport File 78.41 KB 0755
Filemanager