Skip to main content

On install removes quarantine bit from Indigo Plugins

Project description

remove_quarantine pypi package

A package that on install removes quarantine bit from Indigo installed Plugins, from both Plugins and Plugins (Disabled) folders

Usage: Should be used behind the scenes to remove quarantine plugin related issues by plugin authors.

The package consists of very little, but on pip3 install remove_quarantine will run a script to remove quarantine bit from Indigo plugin packages

Simply having this in the requirements.txt file means with pip3 install of this library all current indigoPlugin bundles within Plugin and Plugin (Disabled) folders are unquarantined. This includes the current folder which is having libraries install into it. In my test this completely resolves the binary quarantine issue.

It is hard coded to Indigo version through lack of any possible other approach. Hence will need new releases with Major Indigo version changes.

Installation

To install the package, run:

pip3 install remove_quarantine==2023.2.*

With version here equally the Indigo version you wish to apply to. Note the last star updating to latest minor/patch version.

Usage

Here's how you can use the package:

Add it to requirements.txt

requirements.txt contents: remove_quarantine==2023.2.*

  • added to always update to any minor version/patch changes

No import in code needed. No further code needed. Version number == Indigo version number

Potential issues

If pip has cached the package and version then the unquarantine command will not be executed with import alone. This can be overcome by using the --no-cache-dir with pip3 install eg.

pip3 install --no-cache-dir remove_quarantine==2023.2.*

If this option is not available, then the below aspects can be used early in import process.

eg. plugin.py, remove_quarantine==2023.2.* in requirements

from remove_quarantine import remove_quarantine, show_logging
remove_quarantine()
import logging
import indigo 

Other usage

Below is not needed, simply have this in the requirements.txt file means with every pip3 install of this library all current indigoPlugin bundles within Plugin and Plugin (Disabled) folders are unquarantined. This includes the current folder which is having libraries install into it. In my test this completely resolves the binary quarantine issue.

from remove_quarantine import remove_quarantine, show_logging
print(show_logging()) ## Will display logging of installation removal of quarantine bits

results_remove = remove_quarantine()
print(results_remove)
## Will re-run the quarantine removal process and print the results from this.
pip3 remove_quarantine

License

This project is licensed under the MIT License - see the LICENSE file for details

MIT License

Copyright (c) [2023]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

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

remove_quarantine-2023.2.2.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file remove_quarantine-2023.2.2.tar.gz.

File metadata

  • Download URL: remove_quarantine-2023.2.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for remove_quarantine-2023.2.2.tar.gz
Algorithm Hash digest
SHA256 f667575c55f22dfe54f4f4512dfdb8910f69963706b986760a700f0651705dbd
MD5 9c3a43a4dccf3108df19f3d7e3029539
BLAKE2b-256 3a1ee01b4aa6c0f5ebfd5263a15c836b5f556daf33bea7fd254d67154ef3726b

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