Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
/ growstocks Public archive

A wrapper for the GrowStocks API, made for both synchronous and asynchronous applications.

License

Notifications You must be signed in to change notification settings

BobDotCom/growstocks

Repository files navigation

⚠️ Archival Notice

Growstocks shut down their website in 2023, and as such this repository has been archived indefinitely.

growstocks

A wrapper for the GrowStocks API, made for both synchronous and asynchronous applications.

Package Status Documentation Status Download Counter

PyPI: https://pypi.org/project/growstocks/

Docs: https://growstocks.readthedocs.io/en/latest/

Installation

You can install released versions of growstocks from the Python Package Index via pip or a similar tool:

Stable Release: pip install growstocks

Working Version: pip install git+https://github.com/BobDotCom/growstocks.git

Usage

>>> import growstocks
>>> client = growstocks.Client(913117854995652992,"T%GRD4iEiFmgyYE!O5&ZCx3Rn%uqwPV3")
>>> client.default_scopes = growstocks.Scopes(profile=True, balance=True, discord=True)
>>> user = client.auth.fetch_user('31G4k57rG3asdyyi5Lqk')
>>> dict(user)
{'discord_id': '690420846774321221',
 'id': 1916,
 'name': 'BobDotCom',
 'email': None,
 'growid': 'Bob430',
 'balance': 3}

Using Async

To use in an async context, just use import growstocks.aio as growstocks as your import and make sure to await the functions marked as coroutines.

import growstocks.aio as growstocks

About

A wrapper for the GrowStocks API, made for both synchronous and asynchronous applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •