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()

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()
    
    # 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.

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

Uploaded Source

Built Distribution

recnetpy-0.1.37-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: recnetpy-0.1.37.tar.gz
  • Upload date:
  • Size: 29.0 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.37.tar.gz
Algorithm Hash digest
SHA256 8f5a033b1bee19d41f1e874dc68cffc1cb6318f282b6c1f1cea8246924eeea8c
MD5 345b56ea93176af3c493841267381ba7
BLAKE2b-256 53484ed9e494825f47b56190b9d79941c23bfd3f2b27e75ef9a4a3376e37f375

See more details on using hashes here.

File details

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

File metadata

  • Download URL: recnetpy-0.1.37-py3-none-any.whl
  • Upload date:
  • Size: 46.1 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.37-py3-none-any.whl
Algorithm Hash digest
SHA256 8be329f5f0d8def2a4964a62c7297b58d70f689d5f5e5a57c0ea60f0390bada5
MD5 0cda70efe3a881c4340f012eceb050d8
BLAKE2b-256 0c5b3b86c537590390160ed4ee8ee1d73cb2ff88f62aef9af538678e0218bc4d

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