Skip to content

Provides an interface for currently private Raider data.

License

Notifications You must be signed in to change notification settings

M0r13n/py-raider-admin

Repository files navigation

py-raider-reporter

PyPI license codecov

Raider Admin Interface for Python. Simply manage payouts from Python. Used in pair with Raider, the Affiliates Tracker Page.

Who uses it?

Smartphoniker

How to install

You need to expose your raider database in order to use this lib. It is recommended that you create a special remote user for that purpose.

Install with pip:

$ pip install py-raider-admin

How to use

raider-admin can be instantiated as such:

conf = {
    'host':'localhost',
    'database':'raider',
    'user':'some_user',
    'password':'some_pass'
}
admin = RaiderAdmin.from_config(conf)

# get the newest 100 open payouts
admin.get_open_payouts()

# get all payouts ever
admin.get_all_payouts(limit=100000)

# get account information for account id 345
admin.get_account_data(345)

# change status of payout with id 34 to processed
admin.set_status(34, PayoutStatus.Processed)

What is Raider?

ℹ️ Wondering what Raider is? Check out valeriansaliou/raider.

About

Provides an interface for currently private Raider data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published