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 Documentation Status

Installation

All platforms via pip:

pip install -U recnetpy

Quickstart

Creating an instance of RecNetPy:

import recnetpy

RecNet = recnetpy.Client(api_key="...")

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

import recnetpy  # Import the module
import asyncio

async def main():
    # Create a new RecNetPy client instance
    RecNet = recnetpy.Client(api_key="...")
    
    # Fetch the user from the AccountManager with the "get" method
    user = await RecNet.accounts.get("ColinXYZ")
    
    # Fetch the bio from the Account dataclass
    bio = await user.get_bio()
    
    # Print and close the client
    print(bio)
    await RecNet.close()

asyncio.run(main())

For more examples and usage, please refer to the examples. More documentation can be found Here.

Authorization

In order to use most of the endpoints, you need an API key. You may acquire one from https://devportal.rec.net/. Endpoints that require an API key are marked in function docstrings.

For more information and guidance, refer to https://recroom.zendesk.com/hc/en-us/articles/16543324225303-Third-Party-API-Access-and-Usage.

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.2.72.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

recnetpy-0.2.72-py3-none-any.whl (47.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: recnetpy-0.2.72.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for recnetpy-0.2.72.tar.gz
Algorithm Hash digest
SHA256 66532305944f19323f71d10e1626cc7e0559fb62a2fced67aad0e99ebb6216c3
MD5 046b40de66b5029733204a4e47236bd7
BLAKE2b-256 3d70772f84ded4dba38058d04c4c03db27d8f6a10d9153d6cf7a5773431e0b0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: recnetpy-0.2.72-py3-none-any.whl
  • Upload date:
  • Size: 47.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for recnetpy-0.2.72-py3-none-any.whl
Algorithm Hash digest
SHA256 4bfbe387fba1745354a83d762656c6155d722e4c987e45a1e3a33187c109d4ff
MD5 b7ac7b0a08972fdaf937ede337fcfb47
BLAKE2b-256 8a2b596c42022355d9644ad8f3ee552566a7b4e3acacfb32ba78ce34ec51c67f

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