/TTS-AnonfilesBackupper

A programm that uploads .ttsmod files from TTS-ModBackup to anonfiles

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Tabletop Simulator Mod Uploader

Introduction

This program is a Python script to upload mods for the game Tabletop Simulator which are created from TTS Mod Backup to the website AnonFiles.
It "automatically" scans a directory for mods and uploads any new ones to AnonFiles. The script creates and updates a sqllite database containing information about the uploaded mods, including their name, filesize, workshopid, anonid, and anonlink. It also has the ability to validate all links in the database and mark any that are invalid. Additionally, there is a community contribution feature where all links are sent to a Google form, which is linked to a spreadsheet

Installation

From Release - (Windows tested Windows10/11)

  1. Download the latest version of the TTS-Anonfiles Backupper.
  2. Run the "TTS-AnonfilesBackupper.exe" file to launch the program.
  3. Enter your API key, which you can obtain from the AnonFiles website after creating an account.
  4. Choose if you want to contribute your uploads. (true,false)
  5. Optionally, you can modify the "api-key", "path" and "community contribution" settings in the configuration (.config) file. The default path is . this is the same path as the .exe file. If you want to change it use this format. MOD_PATH="V:/TTSModBackups"

From Source - (Linux tested on Ubuntu 22.04.2 LTS)

Make sure to have python installed (Tested with Python 3.10.6)

  • Manually download the required files.
  • or with git
git clone https://github.com/PPrzemko/TTS-AnonfilesBackupper.git

Install requirements

pip install -r requirements.txt

Run programm

python3 main.py 

Usage

    • exit
    • upload newly added files
    • verify if the uploaded files are still available
    • reprocess local files
    • export to csv
    • enter setup config

Anonfiles TOS

What are the limit of uploads?

You are free to upload as long as you don't exceed the following restrictions:

  • Max 20 GB per file
  • Max 500 files or 50 GB per hour.
  • Max 5,000 files or 100 GB per day.

Contributing

Contributions to this project are welcome! To contribute, please submit a pull request. Please be gentle this is my first Python project.

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE. See the LICENSE file for more information.