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!.
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
- Fork it (https://github.com/RecNetBot-Development/RecNetPy/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file recnetpy-0.1.5.tar.gz
.
File metadata
- Download URL: recnetpy-0.1.5.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f689516b3346ad65493bf1f48759e1afd7ad955d2f8a5e0880765e2f71cac6cd |
|
MD5 | fd8c628dc0ae0a01a247be2bbb76a070 |
|
BLAKE2b-256 | ab08a12ac8cf63d8cbea66d5497f69ff4c676f9b9c429897cbd07a02d43ad801 |
File details
Details for the file recnetpy-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: recnetpy-0.1.5-py3-none-any.whl
- Upload date:
- Size: 46.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2e1e02c8268247821a20d11b57f08f8179e3b78fce10b675fd6eedc6b4b3827 |
|
MD5 | 396b5c792203a3bd4cea3624011b7ef3 |
|
BLAKE2b-256 | 3690f8ada1902c3909629d122968ed53b5a2daab372cae817e64ac2fb179c18a |