Go to file
2023-05-14 17:51:54 -07:00
src Updated header 2023-05-14 17:51:54 -07:00
.gitignore Ignore non-project files 2023-03-12 17:52:22 -07:00
LICENSE.txt Initial Commit 2022-08-27 00:55:54 -07:00
README.md Updated donate section 2022-10-18 13:14:39 -07:00
requirements.txt Initial Commit 2022-08-27 00:55:54 -07:00
run.sh Updated header 2023-05-14 17:51:54 -07:00

Readme

Create Pleroma App is a simple python3 script to generate OAuth tokens for your Pleroma account.

By default it will output your credentials as valid python code, but you can disable this with the --plain switch.

Installing

To setup the python3 environment (for Arch Linux) run the following commands:

sudo pacman -Syu
sudo pacman -S --needed python git
git clone 'https://git.yandere.cc/Anon/CreatePleromaApp.git'
cd CreatePleromaApp/
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
deactivate
./run.sh -h

If everything worked correctly you should see usage information on Create Pleroma App.

Default Settings

If you want to change the default values for the input prompts, you can edit the source code directly in src/create_app.py

Encryption

You can also encrypt your credentials with the encryption.py module included in the repo. If you choose to use this with your custom bot, you must copy the encryption.py module to your project's root source directory.

See below for an example implementation:

def decrypt_settings(self):
	if self.settings_encrypt["encrypt"] and not self.decrypted:
		import encryption
		self.settings_server = encryption.settings_server_decrypt(self.settings_server, self.settings_encrypt, keyfile_path)
	self.decrypted = True

Donate

BTC: bc1q8w04c6xt0sm2nskkqatp372llyx8ed33at4k4g

ETH & BAT: 0x2B1C49cc1C93e5bba59a5eD4D0E0a4Da8D6Ce482

XMR: 493HynLQA4z71b3j9ZDXRNQudpdFW8GxeBGD8ahRctKn97RRurMVd35DqVqdAdjv68TcXTJWUwm6ee81ujDXGcmtKFixwQk