Skip to main content

SlappPy is the Python support and generation code for Slapp and Dola.

Project description

SlapPy

SlapPy is the Python support and generation code for Slapp and Dola. Code on Github.

Requirements

  • Python 3.9+
  • Create a .env in the repository root with the following values:
# Required values:
# Source address for Battlefy backend
CLOUD_BACKEND="https://xxxxx.cloudfront.net"
# Path to SplatTagConsole for Slapp things
SLAPP_CONSOLE_PATH=".../SplatTagConsole.dll"
# Path to the Slapp App Data folder
SLAPP_DATA_FOLDER=".../SplatTag"

# Optional values depending on requirements:
# Database variables if using the database, which are:
DATABASE_HOST="localhost:5000"
DATABASE_NAME="database"
DATABASE_USER="user"
DATABASE_PASSWORD="user"
# A Discord bot token if using the backtrace:
BOT_TOKEN="xxxxxx.xxxxxx.xxxxxx"
# Challonge credentials if using Challonge downloaders
CHALLONGE_API_KEY="xxxx"
CHALLONGE_USERNAME="YourUsername"
# Smash GG credentials if using Smash GG downloaders 
SMASH_GG_API_KEY="xxxx"

Distribution

Up-version by changing setup.py.

The following commands should be entered into the venv console:

Windows:

rmdir /S build
rmdir /S dist
py -m pip install --upgrade build
py -m build
py -m pip install --upgrade twine
py -m twine upload dist/*

Linux:

rm -r build
rm -r dist
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade twine
python3 -m twine upload dist/*

Updating the Database

new_sources_file.py has the steps broken down to generate new sources from scratch. The main code will look something like:

if __name__ == '__main__':
    import dotenv
    import logging
    from slapp_py.misc.new_sources_file import full_rebuild
    
    # Load the environment variables as listed above, populated into the .env file
    dotenv.load_dotenv()
    # And setup logging.
    logging.basicConfig(level=logging.INFO)

    # To generate the new sources file, where the parameter is skipping pauses.
    # If pauses are skipped, patching the database is assumed.
    # In 'False' mode, the script will ask.
    full_rebuild(False)

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

SlappPy-Slate-1.6.3.tar.gz (52.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SlappPy_Slate-1.6.3-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

Details for the file SlappPy-Slate-1.6.3.tar.gz.

File metadata

  • Download URL: SlappPy-Slate-1.6.3.tar.gz
  • Upload date:
  • Size: 52.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

File hashes

Hashes for SlappPy-Slate-1.6.3.tar.gz
Algorithm Hash digest
SHA256 0975ddcba3311f42173f9e85c2bca68c2ff9639d90c19de5f179a91ecf6eab71
MD5 c49091732f17a447734e5522335aac3a
BLAKE2b-256 d966170edf4aaf3a666c3853f0c01bfade425af879d6381d43135f7f0935f66f

See more details on using hashes here.

File details

Details for the file SlappPy_Slate-1.6.3-py3-none-any.whl.

File metadata

  • Download URL: SlappPy_Slate-1.6.3-py3-none-any.whl
  • Upload date:
  • Size: 69.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

File hashes

Hashes for SlappPy_Slate-1.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 263ac0b985536b9e955c1d4016673826780e31e21f00e7a039440f5c92098e42
MD5 4faac3095d972938af93e39aae72eb1e
BLAKE2b-256 e788005a5a8dbde46c54bd217136ce46bcff5bede3efd4671f370c54d4126587

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