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. It's the same wrapper used to power RecNetBot!.
Installation
All Platforms:
pip install -U recnetpy
Usage example
An example that showcases how to fetch an account by username and acquire its bio.
from recnetpy import Client
from asyncio import get_event_loop
async def main():
RecNet = Client()
user = await RecNet.accounts.get("ColinXYZ")
bio = await user.get_bio()
print(bio)
await RecNet.close()
loop = get_event_loop()
loop.run_until_complete(main())
For more examples and usage, please refer to the examples
.
Development setup
To install a local build run the following command.
pip install .
Release History
- 0.0.1
- Initial Release
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
recnetpy-0.1.11.tar.gz
(24.9 kB
view hashes)
Built Distribution
recnetpy-0.1.11-py3-none-any.whl
(41.1 kB
view hashes)
Close
Hashes for recnetpy-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f503f76c4132d11b32c75d19d5594e743f26a6dccdf0980317d1b424f1c256cd |
|
MD5 | 1f669a2a7174ffd0216526fb0a8f837a |
|
BLAKE2b-256 | 6d4973b66e4c9ce82881f2e660c27fc4c5722066308650f6820cf263908c6162 |