wilhelmagren / gromp Goto Github PK
View Code? Open in Web Editor NEWHolistic Python implementation of the public Riot Games Developer API.
License: MIT License
Holistic Python implementation of the public Riot Games Developer API.
License: MIT License
Currently only some functional unit tests for the League hook exists.
We need to implement some mocked API tests.
Look into how unittest.Mock
works.
Currently only League of Legends APIs are implement.
TODO:
All developer APIs can be found on this page.
A number of NamedEndpoints are not implemented as property for the League hook. These are:
Add these as properties to finalize the League implementations.
Python 3.10.7 (main, Nov 24 2022, 19:45:47) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gromp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/juice/.local/lib/python3.10/site-packages/gromp/__init__.py", line 28, in <module>
from gromp import handler
ImportError: cannot import name 'handler' from partially initialized module 'gromp' (most likely due to a circular import) (/home/juice/.local/lib/python3.10/site-packages/gromp/__init__.py)
We have circular imports... but why?
The handler
module does not depend on any imports from any other submodules of the lib.
Neither does the url
submodule...
Should there be no imports in the __init__
file?
Some aspects of the root readme are incorrect/deprecated following the latest version. Some errors:
Some things that should be added:
๐
When creating a PR or Issue a github workflow should kick in to assign one contributor as responsible for reviewing and/or resolving the PR or issue.
Look into using wow-actions/auto-assign@v1
together with a config file inside .github/
๐ปโโ๏ธ
Statically typing the library would increase readability.
Use typing
and builtins
libraries to type all function arguments and return types.
No typing on variable declaration, that is too verbose.
Yay or nay?
Currently codecov is set up but no tests are implemented. That means we get 0% code coverage.
To implement unit tests we need to answer tree things:
๐ Here's a water buffalo, thanks.
When installing through PyPI and attempting to import gromp you get the following traceback:
Python 3.10.7 (main, Nov 24 2022, 19:45:47) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gromp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/juice/.local/lib/python3.10/site-packages/gromp/__init__.py", line 28, in <module>
from gromp.endpoint import *
ModuleNotFoundError: No module named 'gromp.endpoint'
I suspect this has to do with how submodules are imported, relative to __init__.py
files. A fix is on the way in a PR.
Otherwise, what could be the problem? Everything works locally and running unittests work...
TFT-LEAGUE-V1
TFT-MATCH-V1
TFT-STATUS-V1
TFT-SUMMONER-V1
All developer apis: link
The module is currently not usable due to import error.
These changes need to be made to the current implementation to be up to date.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.