<commit_before># PIAScript
Python script which updates firewall and torrent client ports based on a VPN forwarded port

Currently unfinished, personal project that is a work in progress.

This script will:
- Check if the VPN is connected (tun0 interface exists).
- Read PIA API credentials from a file (path provided as a command line parameter).
- Query the PIA API to find the forwarded port. 
- See: https://www.privateinternetaccess.com/forum/discussion/180/port-forwarding-without-the-application-advanced-users.<commit_msg>Updates README.md. Porject finished (I think).<commit_after># PIAScript
Python script which updates firewall and torrent client ports based on a VPN forwarded port

Now finished but not perfect, personal project, etc.

Usage
- -h, --help: Show help
- credentialsfile: Mandatory first argument, file that contains PIA API credentials (see PIA link below).
- -apionly, --apionly: Optional flag that only provides the port number but does not update Transmission and UFW configurations.

This script will:
- Check if the VPN is connected (tun0 interface exists).
- Read PIA API credentials from a file (path provided as a command line parameter).
- Query the PIA API to find the forwarded port. 
- See: https://www.privateinternetaccess.com/forum/discussion/180/port-forwarding-without-the-application-advanced-users.
{'fraction_non_alphanumeric': 0.07073715562174236, 'fraction_numerical': 0.005956813104988831, 'mean_word_length': 4.485714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3968159', 'n_tokens_mistral': 370, 'n_tokens_neox': 342, 'n_words': 167}