activities
latest
false
- Visão geral
- Criptografia
- Banco de Dados
- Java
- Python
- WebAPI
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo.
A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.
Atividades do desenvolvedor
UiPath.Python.Activities.PythonScope
Um contêiner que fornece um escopo para atividades Python e inicializa o ambiente Python especificado.
Quando a atividade Python Scope termina, todos os objetos do Python carregados até esse ponto são excluídos.
Pré-requisito
Para projetos do Windows, a partir do pacote de atividades Python versão 1.9.0, a atividade Python Scope requer que você instale o .NET Desktop Runtime. NET Desktop Runtime versão 6 ou superior.
Propriedades
Comum
- DisplayName - O nome de exibição da atividade.
Entrada
- Installed Python Versions - A list of the Python installations detected on the machine. Selecting an installation automatically fills in the Path, Library path, and Target properties, and sets the Version property to Auto. If no Python installation is detected, the list is disabled. This is a design-time feature only; it does not detect installations at runtime.
- Caminho da biblioteca (Linux ou versão>3.9) - Para Linux, o caminho para a biblioteca
libpython**.so, incluindo o nome da biblioteca. Para Windows (versão > 3.9), o caminho parapython**.dll, incluindo o nome da biblioteca. No Windows (versão <= 3.9), deixe esse campo vazio. - Path - The path to the Python environment installation folder (for example,
"C:\Users\<User Name>\AppData\Local\Programs\Python\Python<version>"). This field supports only strings and String variables. The path can also point to a Python virtual environment, in which case the packages installed in that environment are resolved at runtime. - Log Python Output to File (Diagnostic) - When enabled, the output of the Python process (
stdoutandstderr) is written to log files in the%LocalAppData%\UiPath\Logs\pythonfolder on Windows, or the~/.local/share/UiPath/Logs/pythonfolder on Linux. Each log file is limited to 50 MB, and at most 128 log files are kept, with the oldest ones deleted first. The output is not forwarded to Orchestrator. Use this property for local diagnosis only, and leave it disabled in production to avoid accumulating log files. The default value is False. - Script Data Size Limit (MB) - The maximum size, in MB, of the data passed to the Python script as method arguments. If the size of the arguments exceeds this limit, an error is raised. If left empty, the default value of 25 MB is used. To work with data larger than the limit, save the data to a file and pass the file path to the script instead of the data itself. This field supports only
Int32variables. - Target - The Python runtime platform. Choose one of the two available options: x86 or x64.
- Timeout - The amount of time in seconds to allow a Python script to run until it is terminated and an exception is thrown.
- Version - A drop-down list containing that enables you to select which Python version you are using. By default, this property is set to Auto.
Observação:
Quando definida como Auto, essa propriedade detecta apenas versões que são v3.5 e superiores.
- WorkingFolder - Used to specify the working folder of the scripts executing under the current scope. This field supports only
Stringvariables.
Diversos
- Privado - Se selecionado, os valores de variáveis e argumentos não são mais registrados no nível Verbose.