https://github.com/salko-ua/monkeytype
Python library that simplifies work with the Monkeytype API using data classes
https://github.com/salko-ua/monkeytype
dataclasses fastapi monkeytype python
Last synced: 3 months ago
JSON representation
Python library that simplifies work with the Monkeytype API using data classes
- Host: GitHub
- URL: https://github.com/salko-ua/monkeytype
- Owner: salko-ua
- License: mit
- Created: 2025-01-03T04:46:47.000Z (4 months ago)
- Default Branch: general
- Last Pushed: 2025-01-14T20:27:52.000Z (4 months ago)
- Last Synced: 2025-02-14T07:52:01.456Z (3 months ago)
- Topics: dataclasses, fastapi, monkeytype, python
- Language: Python
- Homepage: https://api.monkeytype.com/docs#
- Size: 229 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## MonkeyType Library python
Example of usage
```python
from monkeytype.authorization import Authorization
from monkeytype.users import Userstoken=''
# Get auth
monkey = Authorization(token)
# It sorted by categories
# Categories in api it`s class in python
# Users has methods (check_name, get_personal_bests ..) like in https://api.monkeytype.com/docs
users = Users(monkey)# Example of usage method get_personal_bests
# Temp docs
# Users has methods
# methods has any data after they was called and has limits\
# example
bests = users.get_personal_bests("time") # get personal best by time
ex1 = bests.limits.x_ratelimit_limit
ex2 = bests.limits.x_ratelimit_reset
ex3 = bests.limits.x_ratelimit_remaining
another_data = bests.personal_beats["15"].acc # for example
```