r/PythonProjects • u/Agitated_Good4223 • May 08 '21
r/PythonProjects • u/_OptedOut • Nov 05 '18
For the Holidays
Make an 8 bit Christmas tree with changing/rotating colors.
On the bottom, have it display a countdown.
r/PythonProjects • u/More_Benefit_8262 • Oct 01 '23
Driver.find.flick this is the code that I used and it just flicks rather than accurately scrolling.)
r/PythonProjects • u/Reasonable-Bat9059 • Sep 24 '23
Python Project
I need help making a simple file system with python. Can anyone help?
r/PythonProjects • u/TangerineThese7907 • Sep 23 '23
Need some idea for weekend Project
Hi need some idea for weekend project
r/PythonProjects • u/mono_jd • Sep 07 '23
Pydanql - Simplified PostgreSQL
Hey everyone! I'm thrilled to share Pydanql!Β
https://github.com/jdnumm/pydanql
It's a Python library designed to simplify your PostgreSQL interactions using Pydantic data models.
- Easy CRUD operations
- Effortless database queries
- Built-in logging
It is more or less a concept but I will add more features in the future.
from pydanql.base import Database
from pydanql.table import Table
# ObjectBaseModel is a Pydantic BaseModel equipped with default fields such as id, slug, date_created, and date_last_edit.
from pydanql.model import ObjectBaseModel
# Define the Book model using Pydantic
class Book(ObjectBaseModel):
name: str
author: str
year: int
# Initialize the database connection
db = Database(database='test_db', user='username', password='password', host='localhost', port=5432)
# Set up a table for books
db.books = Table(db, Book)
# Add a new Book to the database
new_book = Book(name="The Lord of the Rings", author="J. R. R. Tolkien", year=1964)
db.books.add(new_book)
# Retrieve and display Books from the database
books = db.books.find_many()
for book in books:
print(book)
# Close the database connection
db.close()r/PythonProjects • u/Artistic_Highlight_1 • Sep 05 '23
Learn how to fine-tune your Donut transformer model
Want to learn how to fine-tune your Donut transformer model to read text from images? Check out this article on fine-tuning the Donut model with your own data.
r/PythonProjects • u/nonychat • Jul 29 '23
I have created an anonymous chat app! Can I get a feedback?
nonychat.appr/PythonProjects • u/EstablishmentFit9892 • Jul 26 '23
YDEP (Youtube Show Poster)
self.pythonr/PythonProjects • u/onurbaltaci • Jul 18 '23
I shared a Python Country Information Cards App video in my YouTube Channel, I used Streamlit and API calls
Hello everyone, I published a Country Information Cards App video on my YouTube channel, I used Python, Streamlit and API calls. You can visit the video from the link that Iβll leave in this post. Have a great day!
https://www.youtube.com/watch?v=mgC73rn08Jc
r/PythonProjects • u/Artistic_Highlight_1 • Jul 17 '23
Discover how to create an awesome AI chess engine with your CS knowledge
Want to use your CS knowledge to create an AI chess engine? Check out the linked article, to make an AI chess engine the way AlphaZero did!
r/PythonProjects • u/i5d6 • Jul 11 '23
A tiny package to pickle objects with unpickable attributes
What do you think about this project : vipickle ?
The purpose of the package is to easily pickle objects that have unpickable attributes :
from vipickle import VIPicklable
class MyClass(VIPicklable):
PICKLE_BLACKLIST = ["model_weights"]
def __init__(self):
self.model_weights= 42 # wont be pickled
def _dump_model_weights_(self, save_dir, overwrite=True):
"""This method will be automatically called by the save method"""
...
# you can dump model_weights in a different way here
def _restore_model_weights_(self, save_dir):
"""This method will be automatically called by the load method"""
self.model_weights = ...
# you can restore the attribute the way you want
Attributes can also be added/removed to PICKLE_BLACKLIST when a class inherit from a VIPicklable.
The whole thing is an experiment so I would be interested in any feedback π
r/PythonProjects • u/Salaah01 • Jun 25 '23
Python Library to Iterate over Massive JSON without Loading Entire File Into Memory
Literally just finished a Python library for reading massive JSON files.
Python's json library is awesome, it's really fast, but, it does load the entire JSON into memory which might not be ideal if for whatever reason you have a massive JSON file and/or you have limited memory.
Under the hood of json-lineage I have created a Rust binary to convert JSON to JSONL and spit it out iteratively. This means the Python package is able to iteratively read each line without having to load the entire file into memory.
Now, this doesn't replace the `json` library at all. For smaller files, the `json` library is 100% the one to use. However, where file size becomes a problem and not loading the entire file into memory is a requirement, this might be suitable.
Here are some benchmarks:
32MB JSON file
| Library | Time (s) | Memory (MB) |
|---|---|---|
json | 0.166 | 158.99 |
json_lineage | 1.01 | 0.52 |
324MB JSON file
| Library | Time (s) | Memory (MB) |
|---|---|---|
json | 1.66 | 1580.46 |
json_lineage | 10.06 | 0.71 |
Link to repo: https://github.com/Salaah01/json-lineage
Link to GitHub pages: https://salaah01.github.io/json-lineage/
Link to PyPI: https://pypi.org/project/json-lineage/
r/PythonProjects • u/[deleted] • Jun 22 '23
Blog Automation using Pythonπ& Blogger
I was wondering what are the things I could automate with python. I know A LOT! ππ
π§ How about movies??
I had nothing specific in mind, but I know I could build something.
We all use Wikipedia a lot for many topics and movies being one of them , an idea clicked.
I'd like reading movie plots alot why not scrape the Plot section of the movie articles and build a website to read only movie plots??
Felt like doing something creative is a good exercise, but what movies??
With the Wikipedia a part already figured out, luckily I discovered python package for IMDb. So there is a module to fetch top200 movies list from IMDb using python.
Now
wikipedia(data scraping, python package, api)
imdb(python package) What about the website??
I'm not gonna spend $$$ for my side-project that much, instead decided to use bloggerAPI service, which allows use to create free blog websites with Google.
I can create a blogger website with a click and use it's API to upload posts.
πππππππππππππππππππ
Workflow
It's very simple:
Fetch
top200movie title listFor each movie title, check if the title has topic
"movie"If yes, get the article(url+python) from wikipedia, and scrape the data between
Plotsection and theCastsection. I said between Plot and cast since the html structure of Wikipedia articles makes it difficult scrape the particular section but, since all the movies articles almost follow the same pattern, that is the decision I made.Finally, bloggerAPI. Nothing special here:
Create a project in the Google API Console
EnabletheBlogger APIfor your projectCreate an
API keyandOAuth 2.0 Client ID
That's it! Run the script which will take care of the rest.
The Blogger Website : https://movieplotzz.blogspot.com/
Here is the github : https://github.com/pj8912/wiki-blog-automation clone it and follow the instructions to automate the process of creating your own movie plots website and have fun! π
r/PythonProjects • u/Artistic_Highlight_1 • Jun 18 '23
Create an AI chess engine
Want to learn to create an AI chess engine with imitation learning? Check out this article on creating an AI chess engine! In it, I use Python and Stockfish and generate a dataset that I can then use in the future to train my AI chess engine!
r/PythonProjects • u/MrCactochan • Jun 05 '23
tcmd || Tool
Tcmd stands for top commands. This tool can be used to see the most used commands. The tool was written in python3 and is pretty simple. It can be downloaded from pypi.
https://github.com/merwin-asm/tcmd
r/PythonProjects • u/Artistic_Highlight_1 • Jun 01 '23
Create a recommendation system!
Want to learn to create a recommendation system? In this article I make a recommendation system for books, using book plots I have scraped online!
r/PythonProjects • u/Artistic_Highlight_1 • May 30 '23
Scrape and analyse weather data!
Want to learn to scrape weather forecast data and tweet accuracy results? Check out: https://medium.com/@oieivind/weather-comparison-app-part-2-aquire-historic-data-and-set-up-automated-tweets-d9896291f017
r/PythonProjects • u/AeroArtz • May 27 '23
How To Build A ChatPDF App for FREE in Just 14 Minutes using Python! | Without OpenAI API
r/PythonProjects • u/[deleted] • May 25 '23
HELP!! I have a project where i have to create a hybrid data structure [ Hybrid here means a composite data structure which consists of two more fundamental linear and non-linear data structures.],and this data structure should solve a real-life problem efficiently. Any ideas?
r/PythonProjects • u/Destiny-97 • Mar 29 '23
Newbie needs help
enjoy piquant subtract rainstorm smart many friendly berserk rock hat this message was mass deleted/edited with redact.dev
r/PythonProjects • u/tenbeastop • Mar 28 '23
https://replit.com/@zucalcu/Python?s=app
Rate my project from 1 to10
r/PythonProjects • u/YoungHidden • Feb 24 '23
Save any type of file on Amzon Photo with a file to image converter
Hi guys, i created a script in python for convert any type of file in images.
You can use this technique for save any type of file on Amazon photos with unlimited storage space.
If you are interested, this is the link to the source code!
vincenzoAiello/AnyFileToImages
Enjoy it!βοΈ