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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

recnetpy-0.1.48-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for recnetpy-0.1.48.tar.gz
Algorithm Hash digest
SHA256 4c95204cb6f505782760805baed533796ac625969dd1641739d792bc2735e59a
MD5 5c3deb424601a212cbe96c1fd672c241
BLAKE2b-256 c8852e1e33d713260f9c5eb56f471c5dfd3f0eb371d8977270cc99c68f7270a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: recnetpy-0.1.48-py3-none-any.whl
  • Upload date:
  • Size: 46.4 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.1.48-py3-none-any.whl
Algorithm Hash digest
SHA256 b33c9d7c89d4378597a4a2faaafdb0f5bf685fd2857dd101ed8b10284d3672ce
MD5 e54e1279bf9beaba41e9c2bfffb9f250
BLAKE2b-256 8b1d443ec95d619f0e7febf9f5deec9e535729affe69126d9285e7b774de56f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page