Closed MHHukiewitz closed 4 months ago
Consideration for reviewers should include understanding the impact on the codebase and ensuring that any potential issues are addressed before merging this PR. Only experienced developers should review 'BLACK' PRs, and the label should be used sparingly if possible.
# Example of how to use the CRC in a Python script
import subprocess
def categorize_pr(repo_name, description, rules, diff):
user_message = f"""--- {repo_name} ---\n{description}\n\nRules: {rules}\n\nDiff:\n{diff}"""
process = subprocess.run(['crc', '--input', '-'], input=user_message, text=True, capture_output=True)
return process.stdout.strip()
repo_name = "aleph-im/aleph-sdk-python"
description = "Python SDK library for the Aleph.im network"
rules = ""
diff = """# Diff content here"""
print(categorize_pr(repo_name, description, rules, diff))
This script will run the CRC and print its output. The --input
flag is used to pass the user message directly to the subprocess.
eciespy
is not actively maintained anymore and may cause problems when installed alongside newer versions of web3py and ethereum-related packages.The solution makes installing eciespy optional, deprecates the
Account.encrypt()
and.decrypt()
functions and will move them in future to their ownaleph.sdk.encryption
module.