r/PythonProjects • • May 08 '21

Youtube Video Downloader using Python

Thumbnail
youtube.com
2 Upvotes

r/PythonProjects • • Nov 05 '18

For the Holidays

2 Upvotes

Make an 8 bit Christmas tree with changing/rotating colors.

On the bottom, have it display a countdown.


r/PythonProjects • • Oct 01 '23

Driver.find.flick this is the code that I used and it just flicks rather than accurately scrolling.)

1 Upvotes

r/PythonProjects • • Sep 24 '23

Python Project

1 Upvotes

I need help making a simple file system with python. Can anyone help?


r/PythonProjects • • Sep 23 '23

Need some idea for weekend Project

1 Upvotes

Hi need some idea for weekend project


r/PythonProjects • • Sep 14 '23

what do i do for this project?

Post image
1 Upvotes

r/PythonProjects • • Sep 07 '23

Pydanql - Simplified PostgreSQL

1 Upvotes

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 • • Sep 05 '23

Learn how to fine-tune your Donut transformer model

1 Upvotes

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 • • Jul 29 '23

I have created an anonymous chat app! Can I get a feedback?

Thumbnail nonychat.app
1 Upvotes

r/PythonProjects • • Jul 26 '23

YDEP (Youtube Show Poster)

Thumbnail self.python
1 Upvotes

r/PythonProjects • • Jul 18 '23

I shared a Python Country Information Cards App video in my YouTube Channel, I used Streamlit and API calls

1 Upvotes

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 • • Jul 17 '23

Discover how to create an awesome AI chess engine with your CS knowledge

Thumbnail
python.plainenglish.io
1 Upvotes

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 • • Jul 11 '23

A tiny package to pickle objects with unpickable attributes

1 Upvotes

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 • • Jun 25 '23

Python Library to Iterate over Massive JSON without Loading Entire File Into Memory

1 Upvotes

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

LibraryTime (s)Memory (MB)
json0.166158.99
json_lineage1.010.52

324MB JSON file

LibraryTime (s)Memory (MB)
json1.661580.46
json_lineage10.060.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 • • Jun 22 '23

Blog Automation using Python🐍& Blogger

1 Upvotes

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 top200 movie title list

  • For each movie title, check if the title has topic "movie"

  • If yes, get the article(url+python) from wikipedia, and scrape the data between Plot section and the Cast section. 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

    • Enable the Blogger API for your project

    • Create an API key and OAuth 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 • • Jun 18 '23

Create an AI chess engine

1 Upvotes

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 • • Jun 05 '23

tcmd || Tool

1 Upvotes

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 • • Jun 01 '23

Create a recommendation system!

1 Upvotes

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 • • May 30 '23

Scrape and analyse weather data!

1 Upvotes

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 • • May 27 '23

How To Build A ChatPDF App for FREE in Just 14 Minutes using Python! | Without OpenAI API

Thumbnail
youtube.com
1 Upvotes

r/PythonProjects • • 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?

1 Upvotes

r/PythonProjects • • Mar 29 '23

Newbie needs help

1 Upvotes

enjoy piquant subtract rainstorm smart many friendly berserk rock hat this message was mass deleted/edited with redact.dev


r/PythonProjects • • Mar 28 '23

https://replit.com/@zucalcu/Python?s=app

1 Upvotes

Rate my project from 1 to10

https://replit.com/@zucalcu/Python?s=app


r/PythonProjects • • Feb 24 '23

Save any type of file on Amzon Photo with a file to image converter

1 Upvotes

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!✌️


r/PythonProjects • • Nov 29 '22

Mini:DB, a free, simplistic database that runs on ANY device from anywhere. Negative comments only please; I mean, be brutal.

Thumbnail self.pythonprojects2
1 Upvotes