Python quiz game to Flask web app
Hello!
So, I created a python quiz game which is currently running all text based with questions asked, alternatives (1-4) presented and a user input (1-4) checking if the answers are correct.
Basically the questions are presented (one at a time) like this:
Who had a hit with 'St. Elmo's Fire (Man In Motion)' in 1985?
1 : The S.O.S. Band
2 : John Parr
3 : Neil Diamond
4 : New Kids On The Block
Please select 1, 2, 3 or 4:
If the answer is correct the user gains a point. If the user gets a certain amount of points new and harder questions will be available.
I would love to create a Flask web app running this concept but with clickable buttons. Something like this:
​
https://preview.redd.it/38y6entg3nta1.jpg?width=800&format=pjpg&auto=webp&v=enabled&s=2342cd98da42e71fcca32627285a71b954e1e684
I guess this would require me to use something like Javascript or similar. That is my guess as I am new to this...
So I guess my question is: Would learning javascript be the way to go? Or are there other (better?) options available?
I know Python and
/r/flask
https://redd.it/12kmb2g
Hello!
So, I created a python quiz game which is currently running all text based with questions asked, alternatives (1-4) presented and a user input (1-4) checking if the answers are correct.
Basically the questions are presented (one at a time) like this:
Who had a hit with 'St. Elmo's Fire (Man In Motion)' in 1985?
1 : The S.O.S. Band
2 : John Parr
3 : Neil Diamond
4 : New Kids On The Block
Please select 1, 2, 3 or 4:
If the answer is correct the user gains a point. If the user gets a certain amount of points new and harder questions will be available.
I would love to create a Flask web app running this concept but with clickable buttons. Something like this:
​
https://preview.redd.it/38y6entg3nta1.jpg?width=800&format=pjpg&auto=webp&v=enabled&s=2342cd98da42e71fcca32627285a71b954e1e684
I guess this would require me to use something like Javascript or similar. That is my guess as I am new to this...
So I guess my question is: Would learning javascript be the way to go? Or are there other (better?) options available?
I know Python and
/r/flask
https://redd.it/12kmb2g
Python File manager
Hi, I recently created a post about a file manager in it's early stages, and got some feedback that I should create a GUI so Ive created a GUI version of the file manager using Tkinter and I've left the command line version too. If anyone wanted to check it out and provide feedback on it I would appreciate it 😃. Here is the link to my github repository:
https://github.com/Tristan296/FileManager
/r/Python
https://redd.it/12l99zp
Hi, I recently created a post about a file manager in it's early stages, and got some feedback that I should create a GUI so Ive created a GUI version of the file manager using Tkinter and I've left the command line version too. If anyone wanted to check it out and provide feedback on it I would appreciate it 😃. Here is the link to my github repository:
https://github.com/Tristan296/FileManager
/r/Python
https://redd.it/12l99zp
GitHub
GitHub - Tristan296/FileManager: File-Manager | GUI Desktop Application made in Python using PySimpleGUI
File-Manager | GUI Desktop Application made in Python using PySimpleGUI - GitHub - Tristan296/FileManager: File-Manager | GUI Desktop Application made in Python using PySimpleGUI
openaipricinglogger: A Python package to easily log your OpenAI API costs and timestamps
Hey everyone! Ive created a Python package called openai_pricing_logger that helps you log OpenAI API costs and timestamps. It's designed to help you keep track of API usage and related costs, providing an easy way to monitor and analyze the expenses.
​
GitHub repo: https://github.com/yachty66/openai\_pricing\_logger
Python package: https://pypi.org/project/openai-pricing-logger/0.0.2/
​
Key features:
\- Automatically logs API call costs and timestamps
\- Easy integration with OpenAI's GPT-3.5-turbo and GPT-4 models
\- Lightweight and easy to use
​
Thought this might be helpful for anyone working with OpenAI's API. Enjoy!
/r/Python
https://redd.it/12lec2s
Hey everyone! Ive created a Python package called openai_pricing_logger that helps you log OpenAI API costs and timestamps. It's designed to help you keep track of API usage and related costs, providing an easy way to monitor and analyze the expenses.
​
GitHub repo: https://github.com/yachty66/openai\_pricing\_logger
Python package: https://pypi.org/project/openai-pricing-logger/0.0.2/
​
Key features:
\- Automatically logs API call costs and timestamps
\- Easy integration with OpenAI's GPT-3.5-turbo and GPT-4 models
\- Lightweight and easy to use
​
Thought this might be helpful for anyone working with OpenAI's API. Enjoy!
/r/Python
https://redd.it/12lec2s
GitHub
GitHub - yachty66/openai_pricing_logger: 🚀 openai_pricing_logger: Track & log OpenAI API costs with ease. A Python package for…
🚀 openai_pricing_logger: Track & log OpenAI API costs with ease. A Python package for monitoring GPT-3.5-turbo & GPT-4 usage costs. Lightweight, automatic cost logging. Ideal for de...
Is there any API or anything else that can help extract flight information from a ticket?
So far I tried using OCR.Space to feed the image, extract data from the ticket and try to work with it but it’s not so accurate. I was wondering if there are other way of doing so perhaps an API where you enter flight ticket number and gets you all the information or maybe another way?
/r/djangolearning
https://redd.it/12kahgo
So far I tried using OCR.Space to feed the image, extract data from the ticket and try to work with it but it’s not so accurate. I was wondering if there are other way of doing so perhaps an API where you enter flight ticket number and gets you all the information or maybe another way?
/r/djangolearning
https://redd.it/12kahgo
Reddit
r/djangolearning on Reddit: Is there any API or anything else that can help extract flight information from a ticket?
Posted by u/sami-tech - 5 votes and 1 comment
Bing AI made up a package that doesn't, but maybe should, exists and even gave examples of how to use it. Read/Write session splitter for sqlalchemy.
I notched today that my skype has a Bing chatbot built into it now, so I thought I'd see what it had to say about what I'm working on.
https://preview.redd.it/jyepb53opqta1.png?width=1030&format=png&auto=webp&v=enabled&s=9c9a2d68dbbd41a7862e21138f275f07128c6348
As far as I could find, there is no package named sqlalchemy-splitter, or even something that works similar to the way they describe it.
https://preview.redd.it/jzbz3ii7qqta1.png?width=1030&format=png&auto=webp&v=enabled&s=54c2b88f97a79516885086864b055ed92a7f893d
It seems pretty sure of itself. After thinking about it though It seems like a package like this would probably have to do a lot of extra work in order to manage both sessions and move objects between them. Maybe its not as difficult as I'm thinking though?
Either way, when I called it out it immediately back peddled.
​
https://preview.redd.it/u5ugk60gtqta1.png?width=1026&format=png&auto=webp&v=enabled&s=4c6110cdf68ee3edfbc52db549e2ca4b7d5864fe
/r/Python
https://redd.it/12lcp6j
I notched today that my skype has a Bing chatbot built into it now, so I thought I'd see what it had to say about what I'm working on.
https://preview.redd.it/jyepb53opqta1.png?width=1030&format=png&auto=webp&v=enabled&s=9c9a2d68dbbd41a7862e21138f275f07128c6348
As far as I could find, there is no package named sqlalchemy-splitter, or even something that works similar to the way they describe it.
https://preview.redd.it/jzbz3ii7qqta1.png?width=1030&format=png&auto=webp&v=enabled&s=54c2b88f97a79516885086864b055ed92a7f893d
It seems pretty sure of itself. After thinking about it though It seems like a package like this would probably have to do a lot of extra work in order to manage both sessions and move objects between them. Maybe its not as difficult as I'm thinking though?
Either way, when I called it out it immediately back peddled.
​
https://preview.redd.it/u5ugk60gtqta1.png?width=1026&format=png&auto=webp&v=enabled&s=4c6110cdf68ee3edfbc52db549e2ca4b7d5864fe
/r/Python
https://redd.it/12lcp6j
Do you discriminate your callback functions in any way?
Callbacks are a hot-topic in pretty much any language, but I generally like them.
However, denoting their "special status" as a callback is a bit of a pain in the ass. Some approaches I tried:
* Mentioning it in the docstrings: hard to enforce
* Prefixing the function name (e.g.: cb_myfunction): ugly
* Using a decorator that does nothing: neat idea but a bit messy, feels overkill
My current solution was to create a callbacks package. Now every function that is used as a callback must reside there. It was a great idea until I started getting circular import errors. Also doesn't work for methods used as callbacks.
What about you guys? How do you keep your callbacks sane and organized?
/r/Python
https://redd.it/12lkuq9
Callbacks are a hot-topic in pretty much any language, but I generally like them.
However, denoting their "special status" as a callback is a bit of a pain in the ass. Some approaches I tried:
* Mentioning it in the docstrings: hard to enforce
* Prefixing the function name (e.g.: cb_myfunction): ugly
* Using a decorator that does nothing: neat idea but a bit messy, feels overkill
My current solution was to create a callbacks package. Now every function that is used as a callback must reside there. It was a great idea until I started getting circular import errors. Also doesn't work for methods used as callbacks.
What about you guys? How do you keep your callbacks sane and organized?
/r/Python
https://redd.it/12lkuq9
Reddit
r/Python on Reddit: Do you discriminate your callback functions in any way?
Posted by u/abrazilianinreddit - No votes and no comments
R SEEM: Segment Everything Everywhere All at Once
We introduce SEEM that can Segment Everything Everywhere with Multi-modal prompts all at once. SEEM allows users to easily segment an image using prompts of different types including visual prompts (points, marks, boxes, scribbles and image segments) and language prompts (text and audio), etc. It can also work with any combinations of prompts or generalize to custom prompts!
​
https://preview.redd.it/8pkzou248rta1.png?width=1265&format=png&auto=webp&v=enabled&s=644f4e560f4e1f40a9cbd19f172af1165bae94d0
Play with the demo on GitHub! https://github.com/UX-Decoder/Segment-Everything-Everywhere-All-At-Once
We emphasize 4 important features of SEEM below.
1. Versatility: work with various types of prompts, for example, clicks, boxes, polygons, scribbles, texts, and referring image;
2. Compositionaliy: deal with any compositions of prompts;
3. Interactivity: interact with user in multi-rounds, thanks to the memory prompt of SEEM to store the session history;
4. Semantic awareness: give a semantic label to any predicted mask;
🔥Click, scribble to mask
With a simple click or stoke from the user, we can generate the masks and the corresponding category labels for it.
​
https://preview.redd.it/tymnl8a58rta1.png?width=1732&format=png&auto=webp&v=enabled&s=a2101364cf8b85f9e114f9cae09c1078f38f030b
🔥Text to mask
SEEM can generate the mask with text input from the user, providing multi-modality interaction with human.
​
https://preview.redd.it/jh6h3fb68rta1.png?width=1708&format=png&auto=webp&v=enabled&s=44c628544cf6f19bb4844d2aa8eafdb6e7040fe0
🔥Referring image to mask
With a simple click or stroke on the referring image, the model is able to segment the objects with similar semantics on the target images.
​
https://preview.redd.it/vgzrp0y78rta1.png?width=1724&format=png&auto=webp&v=enabled&s=8d08dea79b5de287e801932c4d7a9ca5b8647124
SEEM understands the spatial relationship very well. Look at the three
/r/MachineLearning
https://redd.it/12lf2l3
We introduce SEEM that can Segment Everything Everywhere with Multi-modal prompts all at once. SEEM allows users to easily segment an image using prompts of different types including visual prompts (points, marks, boxes, scribbles and image segments) and language prompts (text and audio), etc. It can also work with any combinations of prompts or generalize to custom prompts!
​
https://preview.redd.it/8pkzou248rta1.png?width=1265&format=png&auto=webp&v=enabled&s=644f4e560f4e1f40a9cbd19f172af1165bae94d0
Play with the demo on GitHub! https://github.com/UX-Decoder/Segment-Everything-Everywhere-All-At-Once
We emphasize 4 important features of SEEM below.
1. Versatility: work with various types of prompts, for example, clicks, boxes, polygons, scribbles, texts, and referring image;
2. Compositionaliy: deal with any compositions of prompts;
3. Interactivity: interact with user in multi-rounds, thanks to the memory prompt of SEEM to store the session history;
4. Semantic awareness: give a semantic label to any predicted mask;
🔥Click, scribble to mask
With a simple click or stoke from the user, we can generate the masks and the corresponding category labels for it.
​
https://preview.redd.it/tymnl8a58rta1.png?width=1732&format=png&auto=webp&v=enabled&s=a2101364cf8b85f9e114f9cae09c1078f38f030b
🔥Text to mask
SEEM can generate the mask with text input from the user, providing multi-modality interaction with human.
​
https://preview.redd.it/jh6h3fb68rta1.png?width=1708&format=png&auto=webp&v=enabled&s=44c628544cf6f19bb4844d2aa8eafdb6e7040fe0
🔥Referring image to mask
With a simple click or stroke on the referring image, the model is able to segment the objects with similar semantics on the target images.
​
https://preview.redd.it/vgzrp0y78rta1.png?width=1724&format=png&auto=webp&v=enabled&s=8d08dea79b5de287e801932c4d7a9ca5b8647124
SEEM understands the spatial relationship very well. Look at the three
/r/MachineLearning
https://redd.it/12lf2l3
SQLalchemy question
Say for instance I have two classes. A User and Sport class. They are defined as below:
To track the students I have two nominal rolls. One to track the students (let's say by their classrooms) and one for the sports teacher to submit once they have conducted their sport. If the sports nominal roll is submitted, I want the classroom tracker to say if the user attended or not. If the nominal roll is not submitted, I want the tracker to say 'Nominal not submitted'. What would be the best way of going about doing this?
Is there a query I can use - a left join perhaps to capture this query?
/r/flask
https://redd.it/12lrym2
Say for instance I have two classes. A User and Sport class. They are defined as below:
class User(UserMixin, db.Model):
__tablename__ = "users"
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(32), index=True, unique=True)
sport_id = db.Column(db.Integer, db.ForeignKey("sports.id"))
attended_sport = db.Column(db.Boolean, default=False)
class Sport(db.Model):
__tablename__ = "sports"
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(32))
users = db.relationship("User", backref="sport")
nominal_submitted = db.Column(db.Boolean)
To track the students I have two nominal rolls. One to track the students (let's say by their classrooms) and one for the sports teacher to submit once they have conducted their sport. If the sports nominal roll is submitted, I want the classroom tracker to say if the user attended or not. If the nominal roll is not submitted, I want the tracker to say 'Nominal not submitted'. What would be the best way of going about doing this?
Is there a query I can use - a left join perhaps to capture this query?
/r/flask
https://redd.it/12lrym2
Reddit
r/flask on Reddit: SQLalchemy question
Posted by u/Montags25 - No votes and 1 comment
How to assign a function to a field in models.py
So im making a model for the admin page, there is a field
url = models.CharField(maxlength=255, unique=True, verbosename="Download")
in models.py that i want to call a function
How do I assign a function to the field(the url field shows the url while in admins page)? Thanks!
/r/django
https://redd.it/12lu4s1
So im making a model for the admin page, there is a field
url = models.CharField(maxlength=255, unique=True, verbosename="Download")
in models.py that i want to call a function
download_file for downloading a .txt file when clicked on.How do I assign a function to the field(the url field shows the url while in admins page)? Thanks!
/r/django
https://redd.it/12lu4s1
Reddit
r/django on Reddit: How to assign a function to a field in models.py
Posted by u/SwathedOrange - No votes and 2 comments
Pulling Last 3 Comments from database
I am trying to query my database and pull the last (3) comments from the database and am running into some issues.
Models.py
class Comment(models.Model):
post = models.ForeignKey(Post, relatedname="comments",ondelete=models.CASCADE)
name = models.ForeignKey(User, ondelete=models.CASCADE)
body = RichTextUploadingField(blank=True, null=True)
dateadded = models.DateTimeField(default=timezone.now)
def str(self):
return '%s - %s' % (self.post.title, self.name)
views.py
def base(request):
lastthreecomments = Comment.objects.orderby('-dateadded'):3
context = {
'lastthreecomments' : lastthreecomments
}
return render(request, 'blog/base.html', context)
base.html
{% for comment in lastthreecomments %}
<li>{{ comment.body}}</li>
/r/djangolearning
https://redd.it/12linbg
I am trying to query my database and pull the last (3) comments from the database and am running into some issues.
Models.py
class Comment(models.Model):
post = models.ForeignKey(Post, relatedname="comments",ondelete=models.CASCADE)
name = models.ForeignKey(User, ondelete=models.CASCADE)
body = RichTextUploadingField(blank=True, null=True)
dateadded = models.DateTimeField(default=timezone.now)
def str(self):
return '%s - %s' % (self.post.title, self.name)
views.py
def base(request):
lastthreecomments = Comment.objects.orderby('-dateadded'):3
context = {
'lastthreecomments' : lastthreecomments
}
return render(request, 'blog/base.html', context)
base.html
{% for comment in lastthreecomments %}
<li>{{ comment.body}}</li>
/r/djangolearning
https://redd.it/12linbg
Reddit
r/djangolearning on Reddit: Pulling Last 3 Comments from database
Posted by u/retug_ - 1 vote and 8 comments
FLASK APP CAPTURE NOT WORKING WHEN DEPLOYED ON SERVER
I know nothing of Back-end Web development I just registered for a just for fun hackathon now My app works fine on local machine but when i deploy it on the server it fails to get the camera feed\` Given Below is the app.py file base.html ExecersicebicepCurl.html and bicepcurl.py **this is app.py**
import time
import cv2
from flask import Flask, render_template, Response
import mediapipe as mp
import numpy as np
from project import exerciseAI, yogaAI
#-----------------Routing----------------------------------
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/exercise/biceps-curl')
def exerciseBicepsCurl():
return render_template('exerciseBicepsCurl.html')
@app.route('/exercise/push-ups')
def exercisePushUps():
/r/flask
https://redd.it/12luau3
I know nothing of Back-end Web development I just registered for a just for fun hackathon now My app works fine on local machine but when i deploy it on the server it fails to get the camera feed\` Given Below is the app.py file base.html ExecersicebicepCurl.html and bicepcurl.py **this is app.py**
import time
import cv2
from flask import Flask, render_template, Response
import mediapipe as mp
import numpy as np
from project import exerciseAI, yogaAI
#-----------------Routing----------------------------------
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/exercise/biceps-curl')
def exerciseBicepsCurl():
return render_template('exerciseBicepsCurl.html')
@app.route('/exercise/push-ups')
def exercisePushUps():
/r/flask
https://redd.it/12luau3
Reddit
r/flask on Reddit: FLASK APP CAPTURE NOT WORKING WHEN DEPLOYED ON SERVER
Posted by u/Gold_Hovercraft3122 - 1 vote and 2 comments
Release: NiceGUI 1.2.7 with ui.download, easier color definitions, "aggrid from pandas dataframe" and much more
With 21 contributors the just released NiceGUI 1.2.7 is again a wonderful demonstration of the strong growing community behind our easy to use web-based GUI library for Python. NiceGUI has a very gentle learning curve while still offering the option for advanced customizations. By following a backend-first philosophy you can focus on writing Python code. All the web development details are handled behind the scenes.
### New features and enhancements
- introduce `ui.download`
- introduce color arguments for elements like
- allow running in Python’s interactive mode by auto-disabling reload
- allow creating
- fix navigation links behind reverse proxy with subpath
- allow sending "leading" and/or "trailing" events when throttling
- raise an exception when hiding internal routes with
- add “dark” color to
### Documentation
- enhance Trello "drag and drop" example to use a ToDo data model
- add workaround to docs for native mode when WebView2Loader.dll fails load
- add documentation and demo about element borders inside a
- add hint about exception when running executable with no console on Windows
Of course the release also includes some bugfixes (see release notes for details). Thanks to everyone who was involved in making this release happen.
/r/Python
https://redd.it/12m03v5
With 21 contributors the just released NiceGUI 1.2.7 is again a wonderful demonstration of the strong growing community behind our easy to use web-based GUI library for Python. NiceGUI has a very gentle learning curve while still offering the option for advanced customizations. By following a backend-first philosophy you can focus on writing Python code. All the web development details are handled behind the scenes.
### New features and enhancements
- introduce `ui.download`
- introduce color arguments for elements like
ui.button that accept Quasar, Tailwind, and CSS colors- allow running in Python’s interactive mode by auto-disabling reload
- allow creating
ui.aggrid from pandas dataframe- fix navigation links behind reverse proxy with subpath
- allow sending "leading" and/or "trailing" events when throttling
- raise an exception when hiding internal routes with
app.add_static_files- add “dark” color to
ui.colors### Documentation
- enhance Trello "drag and drop" example to use a ToDo data model
- add workaround to docs for native mode when WebView2Loader.dll fails load
- add documentation and demo about element borders inside a
ui.card- add hint about exception when running executable with no console on Windows
Of course the release also includes some bugfixes (see release notes for details). Thanks to everyone who was involved in making this release happen.
/r/Python
https://redd.it/12m03v5
GitHub
nicegui/examples/nginx_subpath at main · zauberzeug/nicegui
Create web-based interfaces with Python. The nice way. - nicegui/examples/nginx_subpath at main · zauberzeug/nicegui
Logging code mess
Way overdue for me but I started getting a lot more detailed with my logging. I'm finding it really clutters up the code though. Are there any best practices people use? When I have a two line method that has another two lines for logging it just starts feeling clunky.
Is there a way to be more elegant about it or is this just how it is with production code?
Alternatively are there any good code repos you guys can point me to that you think implement this stuff well?
/r/Python
https://redd.it/12lzpvi
Way overdue for me but I started getting a lot more detailed with my logging. I'm finding it really clutters up the code though. Are there any best practices people use? When I have a two line method that has another two lines for logging it just starts feeling clunky.
Is there a way to be more elegant about it or is this just how it is with production code?
Alternatively are there any good code repos you guys can point me to that you think implement this stuff well?
/r/Python
https://redd.it/12lzpvi
Reddit
r/Python on Reddit: Logging code mess
Posted by u/BoiElroy - 11 votes and 21 comments
How do you guys handle pandas and its sh*tty data type inference
I often like to dump CSVs with 100s of columns and millions of rows into python pandas. and I find it very very frustrating when it gets various data types for columns wrong. nothing helps
including `infer_objects().dtypes` and `convert_dtypes().dtypes`
how do you guys auto-detect dtypes for your columns?
is there a better library out there ?
/r/Python
https://redd.it/12m2gn8
I often like to dump CSVs with 100s of columns and millions of rows into python pandas. and I find it very very frustrating when it gets various data types for columns wrong. nothing helps
including `infer_objects().dtypes` and `convert_dtypes().dtypes`
how do you guys auto-detect dtypes for your columns?
is there a better library out there ?
/r/Python
https://redd.it/12m2gn8
Reddit
r/Python on Reddit: How do you guys handle pandas and its sh*tty data type inference
Posted by u/dronedesigner - 13 votes and 56 comments
[Crosspost] Introducing BungIO - a python bungie.net / destiny 2 api wrapper
Original Post: https://www.reddit.com/r/DestinyTheGame/comments/12lt3f1/introducing_bungio_a_python_bungie_api_wrapper/
---
**Features**
* Python 3.10+
* Asynchronous
* 100% typed and raw api coverage
* Ratelimit compliant
* Manifest support
* OAuth2 support
* Easily used in combination with other libraries like FastApi and discord wrappers
**Github**: https://github.com/Kigstn/BungIO
**Docs & Getting Started**: https://bungio.readthedocs.io/en/latest/
**Guides**: https://bungio.readthedocs.io/en/latest/Guides/basic/
---
While the bungie api is very extensive with a **lot** of functionality, it is IMO very confusing for new users. It also has a bunch of inconsistencies and suboptimal documentation. So as a side project, I've been working on making it more accessible for new people and api veterans.
Fast forward a few months, I'm ready to share BungIO with you all. I've been using it for my personal discord bot for ~half a year now and hopefully ironed out all the major kinks. It is designed to be easy to use, but still requires you to loosely know the api.
## Full API Coverage
What sets this library apart from other projects is that it has full api coverage - every single route is fully typed and returns fully typed python classes! And better yet, the api is automatically generated from the api spec bungie publishes. This means when there is an update to the api, it needs literally one button click from me to update
/r/Python
https://redd.it/12m2kpe
Original Post: https://www.reddit.com/r/DestinyTheGame/comments/12lt3f1/introducing_bungio_a_python_bungie_api_wrapper/
---
**Features**
* Python 3.10+
* Asynchronous
* 100% typed and raw api coverage
* Ratelimit compliant
* Manifest support
* OAuth2 support
* Easily used in combination with other libraries like FastApi and discord wrappers
**Github**: https://github.com/Kigstn/BungIO
**Docs & Getting Started**: https://bungio.readthedocs.io/en/latest/
**Guides**: https://bungio.readthedocs.io/en/latest/Guides/basic/
---
While the bungie api is very extensive with a **lot** of functionality, it is IMO very confusing for new users. It also has a bunch of inconsistencies and suboptimal documentation. So as a side project, I've been working on making it more accessible for new people and api veterans.
Fast forward a few months, I'm ready to share BungIO with you all. I've been using it for my personal discord bot for ~half a year now and hopefully ironed out all the major kinks. It is designed to be easy to use, but still requires you to loosely know the api.
## Full API Coverage
What sets this library apart from other projects is that it has full api coverage - every single route is fully typed and returns fully typed python classes! And better yet, the api is automatically generated from the api spec bungie publishes. This means when there is an update to the api, it needs literally one button click from me to update
/r/Python
https://redd.it/12m2kpe
Reddit
r/DestinyTheGame on Reddit: Introducing BungIO - a python bungie api wrapper
Posted by u/Kigstn - 911 votes and 55 comments