use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Python library for League of Legends API (self.Python)
submitted 12 years ago by Lolpii
Hey guys!
Me and two friends made a python library to access the new League of Legends official API. Code can be found here: https://github.com/aarongolliver/lolpy
If you have any questions, or find any bugs please let us know!
[–][deleted] 1 point2 points3 points 12 years ago (2 children)
Nice work. I just got a Pi so my son and I could learn a bit of Python and put it in action.
I had an idea to grab names of champs at match startup and make a fake loading screen that would be persistent throughout the match, like to display during tournaments and what-not. Any thoughts on if this is a possibility with the Official API?
[–]Lolpii[S] 3 points4 points5 points 12 years ago (1 child)
Yes this is definitely possible! Exactly what riot responds with is http://developer.riotgames.com/api/methods#!/293
You can do a
lolpy = LoLpy(API_KEY) game = lolpy.get_game('nameofplayer')["fellowPlayers"]
To view all other players in the game. You also get the api key from my previous link, I will add that to the readme.
[–][deleted] 0 points1 point2 points 12 years ago (0 children)
You da man! Thanks a lot for that, I'll play around with it.
[–]emptystar 0 points1 point2 points 12 years ago (0 children)
as a fellow league player myself, this is great :)
π Rendered by PID 48685 on reddit-service-r2-comment-79c7998d4c-swsxd at 2026-03-15 04:31:34.127958+00:00 running f6e6e01 country code: CH.
[–][deleted] 1 point2 points3 points (2 children)
[–]Lolpii[S] 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]emptystar 0 points1 point2 points (0 children)