Skip to main content

RecNetPy is an API wrapper built in Python for pulling data from RecNet.

Project description

RecNetPy

RecNetPy is an API wrapper built in Python for pulling data from RecNet. RecNetPy aims to be easy to use yet powerful. It's the same wrapper used to power RecNetBot!.

NPM Version Downloads Stats Join The Discord

Installation

All platforms via pip:

pip install -U recnetpy

Quickstart

Creating an instance of RecNetPy:

import recnetpy

RecNet = recnetpy.Client()

An example that showcases how to fetch an account by username and acquire its bio:

import recnetpy
from asyncio import get_event_loop

async def main():
    RecNet = recnetpy.Client()
    user = await RecNet.accounts.get("ColinXYZ")
    bio = await user.get_bio()
    print(bio)
    await RecNet.close()

loop = get_event_loop()
loop.run_until_complete(main())

For more examples and usage, please refer to the examples.

Development setup

To install a local build run the following command.

pip install .

Meta

Distributed under the MIT license. See LICENSE for more information.

Contributing

  1. Fork it (https://github.com/RecNetBot-Development/RecNetPy/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

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

recnetpy-0.1.3.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

recnetpy-0.1.3-py3-none-any.whl (41.0 kB view details)

Uploaded Python 3

File details

Details for the file recnetpy-0.1.3.tar.gz.

File metadata

  • Download URL: recnetpy-0.1.3.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for recnetpy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 628e9bb4e48bb9a09002c6ab82097f1f2711b19c6c6e03695dbaf6d5ed5491a2
MD5 8a504872c95d33a634fb70cb364c071d
BLAKE2b-256 e05e5388a307e0b4425259426c47a64db9f899892103a1be5f73a31aacf3c67a

See more details on using hashes here.

File details

Details for the file recnetpy-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: recnetpy-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 41.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for recnetpy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1072ad6e232e8ce8fcf5c6b72bdedd9755624a32d371ec6009d22cbba7404f2
MD5 f2639a21e08516fbd2e6e64ef191e912
BLAKE2b-256 141cdfab74ca97968ba9ed9769e57da80eaf62277206a6dfa49be4d09962db05

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