Skip to main content

Runtime SDK that powers browser automation projects running on Intuned

Project description

Intuned Python Runtime

Runtime commands for Intuned platform Python automations.

Dependencies

Install globally

  • This project can be installed globally on the system to use intuned cli anywhere
  • Make sure you are not in a virtual environment. which python should point to system python.
    • If you are, deactivate to exit virtual environment. Or open in an external terminal (from outside vscode if it doesn't work)
  • Run pip install -e . from the root of the project.

Commands

All commands have -h flag to show help.

intuned init

  • Initializes a project. Creates pyproject.toml, Intuned.json and README.md files.
  • Prompts for confirmation for each file that already exists.
  • Options:
    • --yes/-y flag to overwrite all files.
    • --no/-n flag to not overwrite any files.

intuned publish-packages

  • Publishes packages to python-packages repository.
  • Options:
    • --sdk flag to publish SDK package. Creates sdk-<version> and sdk-latest tags for the published version.
    • --runtime flag to publish runtime package. Creates runtime-<version> and runtime-latest tags for the published version.
    • --overwrite flag to overwrite the existing version if it exists.
    • --show-diff flag to show the diff of the package before publishing. You need to configure a diff tool to be used for git difftool command in your git config. How to configure VS Code as a diff tool.
    • --no-latest flag to not release latest tag for the published version.
  • Uses the version specified in pyproject.toml of each package respectively.
  • Uses WebApp directory specified in WEBAPP_REPO environment variable or tries to resolve it (only works if installed globally with -e flag).
  • Uses python-packages directory to be sister to WebApp directory <webapp path>/../python-packages.
  • These packages are used on deployed apps.

intuned project run

  • Runs the project.
    • --mode to specify the mode to run. Default is sample.
      • --mode sample extends a sample of payloads to run.
      • --mode full runs all extended payloads.
      • --mode single runs the initial API only.
    • --api-name <name> to specify the initial API to run. Defaults to default
    • --params <params json> to specify the parameters to the initial API.
    • --sample-config-str '{<api name>: <sample size>, ...} to specify the sample config. Only used with --mode sample.
    • --no-headless to disable headless mode.

intuned project deploy

  • Deploys a project and starts a default job.
  • Options:
    • --workspace-info '{"environment_url": <>, "workspace_id": <>, "api_key": <>}' to specify the workspace info.
    • --workspace-info-path to specify the path to a JSON file containing workspace info.
    • -y/--yes to skip confirmation.
    • --project-name to specify the project name. Resolves the name if not provided.
  • Resolves .gitignore from current/parent directories to decide what to deploy.
  • Resolves .env from current/parent directories to get environment variables to deploy.
  • Resolves project name from the current/parent directory name if not provided.

intuned project serve

  • Serves the project as an HTTP server.
  • Options:
    • --env development/production to specify the environment to run the server.
      • Development runs using Flask's development server.
      • Production runs using Waitress.
    • --debug to run the development server in debug mode. Not supported in production.
  • This is used on deployed apps.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

intuned_runtime-1.3.40.tar.gz (139.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

intuned_runtime-1.3.40-py3-none-any.whl (77.7 kB view details)

Uploaded Python 3

File details

Details for the file intuned_runtime-1.3.40.tar.gz.

File metadata

  • Download URL: intuned_runtime-1.3.40.tar.gz
  • Upload date:
  • Size: 139.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for intuned_runtime-1.3.40.tar.gz
Algorithm Hash digest
SHA256 47edbee37f0c66f0ef6067a72a0e6534949a917d6e982dd8fbfbff2b54a251f8
MD5 03ec3b95addd6cfcf83ff8c78167a906
BLAKE2b-256 ccdbeb9d48840d77fd3b8440e3c51f7b8475e44b0e46820e59478ae9eab28fa8

See more details on using hashes here.

File details

Details for the file intuned_runtime-1.3.40-py3-none-any.whl.

File metadata

File hashes

Hashes for intuned_runtime-1.3.40-py3-none-any.whl
Algorithm Hash digest
SHA256 d56ce5a6d2e9992c04816acd1f32f25effb96e32a59b4e65f0b663e4c0ea7593
MD5 5b578c92417d5dd43f7e05becfb7183d
BLAKE2b-256 ac11e6614d067e41e91a2f558e7a8d3d5810362908052a2dfb93a6f5688106d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page