Skip to main content

RecNetPy

RecNetPy is a Rec Room API wrapper built in Python. 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

Metadata

Release files for recnetpy 0.2.75

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for recnetpy 0.2.75
File Size Uploaded
recnetpy-0.2.75.tar.gz 29.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for recnetpy 0.2.75
File Interpreter ABI Platform
recnetpy-0.2.75-py3-none-any.whl Python 3 none any Details

Total release size: 76.8 kB

Release files / recnetpy-0.2.75.tar.gz

Download URL recnetpy-0.2.75.tar.gz
Size 29.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9e36bb96ecd37ffa665e299ea37cbfb860c216b508409cb34fa197c1e53daf7b
BLAKE2b-256 checksum
How to use checksums
f40511a2b1ee7358437e076678b8606a1a6df15fb8ce8d9d9d7705f81adb1de3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / recnetpy-0.2.75-py3-none-any.whl

Download URL recnetpy-0.2.75-py3-none-any.whl
Size 47.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0590d325e73371ee79421e1cfb8d698e8866cbc31d8ab42ae18c3aa11a89c68
BLAKE2b-256 checksum
How to use checksums
9e083ef2548c3f6ca3ada9b0c4717c35a01567f1e4379d7171e1d2476c0276cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.2.75 This release

2 release files

0.2.74

2 release files

0.2.71

2 release files

0.2.70

2 release files

0.2.69

2 release files

0.2.68

2 release files

0.2.67

2 release files

0.2.66

2 release files

0.2.65

2 release files

0.2.64

2 release files

0.2.59

2 release files

0.2.58

2 release files

0.2.57

2 release files

0.2.56

2 release files

0.2.55

2 release files

0.2.54

2 release files

0.2.53

2 release files

0.2.52

2 release files

0.2.51

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

0.1.51

2 release files

0.1.49

2 release files

0.1.48

2 release files

0.1.47

2 release files

0.1.44

2 release files

0.1.43

2 release files

0.1.42

2 release files

0.1.41

2 release files

0.1.38

2 release files

0.1.37

2 release files

0.1.36

2 release files

0.1.35

2 release files

0.1.34

2 release files

0.1.33

2 release files

0.1.22

2 release files

0.1.21

2 release files

0.1.11

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

1 release file

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page