Skip to main content

A wrapper library to easily retrieve FWA related information that is publicly available and free-to-use.

Project description

Supy-fwas [SFWAS]

Python|GitHub|Discord

This is a wrapper library to easily retrieve FWA related information that is publicly available and free-to-use. The package uses synchronous calls for developers to easily implement the features.

Table of Contents

  1. About the package :fa-book:
  2. Usage :fa-file-text:
  3. License ©
  4. Disclaimer :fa-exclamation:
  5. Contact :fa-comments-o:

Usage

SFWAS focuses on easy-to-use Python synchronous methods and objects. See Examples

Requirements

  • Python 3.7+
    • coc.py 2.0+
    • requests

Examples


This consists of only few out of all the available methods in the package.

from sfwas import SFWAS

supy = SFWAS()

# Allows only FWA clan_tag to execute the function
# Other clan_tags are ignored
@supy.fwa_clans 
def foo1(clan_tag, member_tag):
	print(f"{member_tag} is now a part of clan ({clan_tag}))")
	# any suitable work 
	...

def foo2(clan_tag, ...):
	clan_weight = supy.get_clan_weight(clan_tag)
	...

def foo3(player_tag):
	w = supy.get_member_weight(player_tag)
	# If Exception `NotFound` is thrown, you'll require to use get_member_from_clan()
	# Since FWA Stats likely doesn't have their weights readily available

def bar(clan_name):
	clan_tag = supy.get_clan_by_name(clan_name)
	# Use clan_tag for any valid purpose :)
	
...

foo1 Describes how the decorator helps the function filter/not call clans that are not in FWA Stats (FWA)

foo2 Describes how easy it is to get the latest uploaded clan weights of a clan.

foo3 Describes the use of player_tag to get player weights

bar Uses get_member_weight() method (instead of get_member_weight_from_clan()) to retrieve member's weight.

Top

License

License: MIT

Copyright (c) 2022-present real-supreme

Top

Disclaimer

This content is not affiliated with, endorsed, sponsored, or specifically approved by Supercell and Supercell is not responsible for it. For more information see Supercell's Fan Content Policy: www.supercell.com/fan-content-policy

This package is not supported or developed by FWA. The package is used to access data directly from the fwa stats.

Top

Contact

  • Discord - SUPREME#1000 Other forms of contact will be added later :wink:

Top

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

supy-fwas-0.0.9.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

supy_fwas-0.0.9-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file supy-fwas-0.0.9.tar.gz.

File metadata

  • Download URL: supy-fwas-0.0.9.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for supy-fwas-0.0.9.tar.gz
Algorithm Hash digest
SHA256 ce56a670b892abe30651dd443758a47111d97d6990de43aa7fd00aba3d28a81c
MD5 41ca5570e7c3c4edb2d2133a918610d1
BLAKE2b-256 da4a97f5154b810f1b92a07be782305780e4cda76633f0af8685e3197b08f4a8

See more details on using hashes here.

File details

Details for the file supy_fwas-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: supy_fwas-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for supy_fwas-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 645568b611490bde83fc17ee850772bb05465fa40b457925ad1b2550b3bae6fb
MD5 5b2992db6e75437172b0bbcfcead6fe4
BLAKE2b-256 f323b7a7fdd88cf0b17a42db577d748ab8f6309fd4b8305625c2718beb9551cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page