sub
stringclasses
1 value
title
stringlengths
7
303
selftext
stringlengths
0
8.65k
upvote_ratio
float64
0.08
1
id
stringlengths
9
9
created_utc
float64
1.65B
1.65B
Python
I made a video about Cross Validation using python's sklearn package. An extremely important yet often overlooked topic in machine learning.
0.38
t3_u2pmet
1,649,854,324
Python
Python 3.11 is Coming! Here’s How It Fares Against Python 3.10
0.78
t3_u2orpk
1,649,851,479
Python
Do you have hundreds of old and embarrassing tweets? Here's a script to delete them all.
I made a Python script to delete old tweets. Given a date, it'll delete all the tweets before that date. Personally, I had hundreds of tweets between my friends talking about hot boys in high school that I had forgotten all about but were all so public 🤦🏻‍♀️. Give it a try: [https://github.com/yaylinda/delete-tweets](https://github.com/yaylinda/delete-tweets) Feel free to make suggestions or improvements!
0.91
t3_u2o1al
1,649,848,859
Python
Here is a script that turns your pc off when a download is finished
Here is a script that turns off your computer when a game on steam has finished downloading. import os import time while os.listdir('*insert your own steam downloading folder here*') != []: print('Download in progress..') time.sleep(5) print('Folder empty. Downloads complete.') os.system("shutdown /s /t 1")
0.86
t3_u2ln8f
1,649,838,771
Python
Gotchas of early-bound function argument defaults in Python
0.72
t3_u2iknk
1,649,825,890
Python
Why do some functions have the arguments outside and some inside? e.g: len(example) vs example.upper() ?
This is the case too in other languages right?
0.8
t3_u2gg0a
1,649,818,670
Python
A python framework for unstructured data processing
Unstructured data is information that is not arranged according to a predefined schema or data model. Image, text, video, and nested JSON are the most common types of unstructured data we collected in real-world applications. We have just released [Towhee 0.6](https://github.com/towhee-io/towhee), a framework for doing ML jobs over unstructured data. Our latest release includes [`DataCollection`](https://towhee.readthedocs.io/en/branch0.6/data_collection/get_started.html), a new user-centric method-chaining API that enables rapid development and prototyping of unstructured data applications. `DataCollection` is designed to behave as a python list or generator, with some enhancement features such as `method-chaining coding style`, `parallel execution`, and `exception handling`. Here is a short example of image animation: ```python import towhee towhee.glob['path']('./test.png') \ .image_decode['path', 'origin']() \ .img2img_translation.animegan['origin', 'facepaintv2'](model_name = 'facepaintv2') \ .img2img_translation.animegan['origin', 'hayao'](model_name = 'hayao') \ .img2img_translation.animegan['origin', 'paprika'](model_name = 'paprika') \ .img2img_translation.animegan['origin', 'shinkai'](model_name = 'shinkai') \ .select['origin', 'facepaintv2', 'hayao', 'paprika', 'shinkai']() \ .show() ``` [`image_decode`](https://towhee.io/image-decode/cv2) and [`img2img_translation.animegan`](https://towhee.io/img2img-translation/animegan) are predefined `operator`s from [towhee hub](https://towhee.io). We already have nearly a hundred operators, officially maintained or contributed by our users. You can check the result from [the tutorial](https://github.com/towhee-io/towhee/blob/main/tutorials/anime_style_transformer.ipynb). Documentation for DataCollection is available [here](https://towhee.readthedocs.io/en/branch0.6/data_collection/get_started.html). We will be releasing code examples and tutorials using the new API in the upcoming weeks. Would appreciate some feedback and contribution :)
0.67
t3_u2g5ha
1,649,817,729
Python
Do people generally write Sphinx API documentation using autoapi or manually?
(this might not be the best subreddit, but I didn't see a Sphinx subreddit, if there's a better place, let me know) I'm working on writing my first distributable python package and I'm trying to be very meticulous about the documentation, making a readthedocs page for it. I'm very new to using Sphinx, and I'm confused on the landscape of projects that have autogenerated API documentation vs. those that involve manually written documentation. I have been able to get the `autoapi` extension to work, but the documentation it generates feels very boilerplate, and I want to go in and reformat some of the stuff it does, which I think it's possible to essentially "convert" a project from auto to manual. So maybe I should autogenerate it at first and then convert it for later changes. I have some concerns about that approach though. 1. What if I add more stuff to the API later, or update the way certain functions work? Would I just need to do those small changes by hand? I feel like if I reverted to the autogeneration it would overwrite my manual changes (maybe I'm wrong though). 2. I actually prefer to code at the same time that I am documenting, so that the documentation is not an afterthought, but in that case I would want to do the manual changes at the same time as when I code, so maybe autogeneration is a bad idea for me. But this particular project is collaborative and I think I'm probably the only one in my group who *enjoys* the documentation, so I want to be sure it's super easy for future collaborators. Any thoughts at all would be greatly appreciated! I seem to be unable to find answers to a general best practices question like this
0.81
t3_u2dfzz
1,649,809,416
Python
Wednesday Daily Thread: Beginner questions
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions! This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at [https://discord.gg/python](https://discord.gg/python) where you stand a better chance of receiving a response.
1
t3_u2cz7f
1,649,808,018
Python
My first working code piece!
print ('What is the temperature today?') import random Temperature = random.randint(10,40) print(Temperature) print ('Degrees') ​ if Temperature > 24: print ('Its a hot day,') print ('Make sure to drink some water!') ​ if Temperature <24: print ('Its not to hot today!') ​ if Temperature == 24: print ('Its a hot day,') print ('Make sure to drink some water!') ​ ​ I am happy that it works!
0.55
t3_u2ccc8
1,649,806,110
Python
Name a better learning resource than Schafer Corey, I'll wait
I am really amazed by Schafer Corey on [YouTube](https://www.youtube.com/c/Coreyms/videos) especially since I am not the the type of guy that enjoys watching videos to learn, I am honestly in awe with his teaching skills and it inspires me to write blogs. I will be very curious to see if you guys have other high quality content. I am well aware that you won't become proficient just by watching his videos but his tutorials get straight to the point and you understand the concept and you can build new things!
0.87
t3_u2b3r9
1,649,802,620
Python
5 months of python, Beginning an AlgoBot, TEAR MY CODE to Shred to make me better.
0.87
t3_u27epy
1,649,792,143
Python
python programming quick look
0.17
t3_u25pul
1,649,787,655
Python
TIL Dropbox started, client and server, with Python and even hired the creator of Python
0.42
t3_u255tq
1,649,786,229
Python
2 Level Security system (Arduino Keypad + Face recognition ) using Python
0.91
t3_u24o2f
1,649,784,906
Python
fstring.help: Python f-string guide
0.5
t3_u21wcl
1,649,777,711
Python
20 Python Interview Questions To Challenge Your Knowledge
0.44
t3_u218g8
1,649,775,942
Python
Announcing Quart-DB
[Quart-DB](https://github.com/pgjones/quart-db) is a Quart extension that provides managed connection(s) to postgresql database(s). Once initialised it will, by default, add a connection on `g` for every request usable via `g.connection`. Alternatively connections (and transactions) can be managed directly and explicitly. The queries can be constructed using named `:name` parameters or `$1` positional parameters. Quart-DB uses [asyncpg](https://github.com/MagicStack/asyncpg) to manage the connections and [buildpg](https://github.com/samuelcolvin/buildpg) to parse the named parameter bindings. from quart import g, Quart, websocket from quart_db import QuartDB app = Quart(__name__) db = QuartDB(app, url="postgresql://user:pass@localhost:5432/db_name") @app.get("/<int:id>") async def get_count(id: int): result = await g.connection.fetch_val( "SELECT COUNT(*) FROM tbl WHERE id = :id", {"id": id}, ) return {"count": result} @app.post("/") async def set_with_transaction(): async with g.connection.transaction(): await db.execute("UPDATE tbl SET done = $1", [True]) ... return {} @app.get("/explicit") async def explicit_usage(): async with db.connection() as connection: ...
0.85
t3_u20nde
1,649,774,365
Python
I wrote a tutorial on how to use pytest to write good Python code. I hope somebody finds it useful!
[https://github.com/rhayes777/workshop](https://github.com/rhayes777/workshop)
0.97
t3_u206vp
1,649,773,093
Python
Shades: a module to make art with python
Over the last year or so, I've been developing a python library to make it easier for me to make maths-ey generative art in python. I shared stuff a while back while I was still developing, and finally got stuff in a state where I'm pretty happy with things, so thought I'd share here just in case any other python fans might like it. [Here's a link if you're interested!](https://github.com/benrutter/Shades) https://preview.redd.it/a9obpj02v3t81.png?width=2000&format=png&auto=webp&s=4cd73bba9cab4e875772a32091c3ef49057372bb
0.98
t3_u1zzlq
1,649,772,545
Python
Minesweeper but without any play-ability
This is the basic layout of a minesweeper field fished ​ import curses from curses import wrapper from random import randint field = [ ["#", "#", "#", "#", "#", "#", "#", "#", "#"], ["#", "#", "#", "#", "#", "#", "#", "#", "#"], ["#", "#", "#", "#", "#", "#", "#", "#", "#"], ["#", "#", "#", "#", "#", "#", "#", "#", "#"], ["#", "#", "#", "#", "#", "#", "#", "#", "#"], ["#", "#", "#", "#", "#", "#", "#", "#", "#"], ["#", "#", "#", "#", "#", "#", "#", "#", "#"], ["#", "#", "#", "#", "#", "#", "#", "#", "#"], ["#", "#", "#", "#", "#", "#", "#", "#", "#"] ] def print_maze(maze, stdscr,): BLUE = curses.color_pair(1) RED = curses.color_pair(2) bomb_Location = bomb_location() for i, row in enumerate(maze): for j, value in enumerate(row): if (i,j) in bomb_Location: stdscr.addstr(i,j*2, 'x', RED) else: amount = find_amount_bomb(field,i,j,bomb_Location) stdscr.addstr(i,j * 2, amount, BLUE) def bomb_location(): bombLocation = [] for x in range(25): bomb_loc = bomb() bombLocation.append(bomb_loc) return bombLocation def find_amount_bomb(field, row, col, bomb_loc=[]): bombs_nearby = 0 neighbours = find_neigbours(field,row,col) for neighbour in neighbours: if neighbour in bomb_loc: bombs_nearby += 1 return str(bombs_nearby) def find_neigbours(field,row,col): neighbors = [] if row > 0 and col < len(field[0]): neighbors.append((row -1, col +1)) if row > 0 and col > 0: neighbors.append((row -1, col -1)) if row < len(field) and col < len(field[0]): neighbors.append((row +1, col +1)) if row < len(field) and col > 0: neighbors.append((row +1, col -1)) if row > 0: # up neighbors.append((row -1, col)) if row < len(field): # down neighbors.append((row + 1, col)) if col > 0: # left neighbors.append((row, col - 1)) if col < len(field[0]): # right neighbors.append((row, col + 1)) return neighbors def bomb(): i = randint(0,8) j = randint(0,8) return i,j def main(stdscr): curses.init_pair(1, curses.COLOR_CYAN, curses.COLOR_BLACK) curses.init_pair(2, curses.COLOR_RED, curses.COLOR_BLACK) stdscr.clear() print_maze(field,stdscr) stdscr.refresh() stdscr.getch() wrapper(main) idk if this is intermediate or beginner sorry if it is beginner
0.5
t3_u1zxp1
1,649,772,396
Python
Python News: What's New From March 2022? – Real Python
0.75
t3_u1yevy
1,649,768,051
Python
Python code guidelines for unified, streamlined development
In Python programming, there are many things that developers have to consider and keep in mind when writing code. Those issues and practices differ from company to company and from team to team. At Evrone, we created our own collection of guidelines for Python, in order to build a common denominator for writing code within the company. [Read the guidelines here!](https://evrone.com/python-guidelines)
0.6
t3_u1xzt3
1,649,766,739
Python
In addition to a properly formatted and stylish data presentation, we will also apply other helpful functionality, such as adding data to the database.
[https://medium.com/codex/how-to-add-new-rows-into-relational-tables-effortlessly-f6685a60eef2](https://medium.com/codex/how-to-add-new-rows-into-relational-tables-effortlessly-f6685a60eef2) ​ https://preview.redd.it/7c47g2x903t81.png?width=875&format=png&auto=webp&s=26f50b234e17feb3a3a269582a59e174016461b3
0.5
t3_u1wky9
1,649,762,014
Python
Scraping Google Finance Ticker in Python
While programming is kinda easier than a stock market, you can do things programmatically, for example scraping Google Finance Ticker data in Python. Here's a working example to do exactly that, plus basic usage of Nasdaq API which Google is using, among [other data providers which Google Finance uses that you can find under Google's Disclaimer](https://www.google.com/intl/en_UA/googlefinance/disclaimer/). A gist to the same code below: https://gist.github.com/dimitryzub/a5e30389e13142b9262f52154cd56092 Full code and [example in the online IDE](https://replit.com/@DimitryZub1/Scrape-Google-Finance-Ticker-Quote-in-Python#main.py): ```python import nasdaqdatalink import requests, json, re from parsel import Selector from itertools import zip_longest def scrape_google_finance(ticker: str): params = { "hl": "en" # language } headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36", } html = requests.get(f"https://www.google.com/finance/quote/{ticker}", params=params, headers=headers, timeout=30) selector = Selector(text=html.text) # where all extracted data will be temporary located ticker_data = { "ticker_data": {}, "about_panel": {}, "news": {"items": []}, "finance_perfomance": {"table": []}, "people_also_search_for": {"items": []}, "interested_in": {"items": []} } # current price, quote, title extraction ticker_data["ticker_data"]["current_price"] = selector.css(".AHmHk .fxKbKc::text").get() ticker_data["ticker_data"]["quote"] = selector.css(".PdOqHc::text").get().replace(" • ",":") ticker_data["ticker_data"]["title"] = selector.css(".zzDege::text").get() # about panel extraction about_panel_keys = selector.css(".gyFHrc .mfs7Fc::text").getall() about_panel_values = selector.css(".gyFHrc .P6K39c").xpath("normalize-space()").getall() for key, value in zip_longest(about_panel_keys, about_panel_values): key_value = key.lower().replace(" ", "_") ticker_data["about_panel"][key_value] = value # description "about" extraction ticker_data["about_panel"]["description"] = selector.css(".bLLb2d::text").get() ticker_data["about_panel"]["extensions"] = selector.css(".w2tnNd::text").getall() # news extraction if selector.css(".yY3Lee").get(): for index, news in enumerate(selector.css(".yY3Lee"), start=1): ticker_data["news"]["items"].append({ "position": index, "title": news.css(".Yfwt5::text").get(), "link": news.css(".z4rs2b a::attr(href)").get(), "source": news.css(".sfyJob::text").get(), "published": news.css(".Adak::text").get(), "thumbnail": news.css("img.Z4idke::attr(src)").get() }) else: ticker_data["news"]["error"] = f"No news result from a {ticker}." # finance perfomance table if selector.css(".slpEwd .roXhBd").get(): fin_perf_col_2 = selector.css(".PFjsMe+ .yNnsfe::text").get() # e.g. Dec 2021 fin_perf_col_3 = selector.css(".PFjsMe~ .yNnsfe+ .yNnsfe::text").get() # e.g. Year/year change for fin_perf in selector.css(".slpEwd .roXhBd"): if fin_perf.css(".J9Jhg::text , .jU4VAc::text").get(): perf_key = fin_perf.css(".J9Jhg::text , .jU4VAc::text").get() # e.g. Revenue, Net Income, Operating Income.. perf_value_col_1 = fin_perf.css(".QXDnM::text").get() # 60.3B, 26.40%.. perf_value_col_2 = fin_perf.css(".gEUVJe .JwB6zf::text").get() # 2.39%, -21.22%.. ticker_data["finance_perfomance"]["table"].append({ perf_key: { fin_perf_col_2: perf_value_col_1, fin_perf_col_3: perf_value_col_2 } }) else: ticker_data["finance_perfomance"]["error"] = f"No 'finence perfomance table' for {ticker}." # "you may be interested in" results if selector.css(".HDXgAf .tOzDHb").get(): for index, other_interests in enumerate(selector.css(".HDXgAf .tOzDHb"), start=1): ticker_data["interested_in"]["items"].append(discover_more_tickers(index, other_interests)) else: ticker_data["interested_in"]["error"] = f"No 'you may be interested in` results for {ticker}" # "people also search for" results if selector.css(".HDXgAf+ div .tOzDHb").get(): for index, other_tickers in enumerate(selector.css(".HDXgAf+ div .tOzDHb"), start=1): ticker_data["people_also_search_for"]["items"].append(discover_more_tickers(index, other_tickers)) else: ticker_data["people_also_search_for"]["error"] = f"No 'people_also_search_for` in results for {ticker}" return ticker_data def discover_more_tickers(index: int, other_data: str): """ if price_change_formatted will start complaining, check beforehand for None values with try/except and set it to 0, in this function. however, re.search(r"\d{1}%|\d{1,10}\.\d{1,2}%" should make the job done. """ return { "position": index, "ticker": other_data.css(".COaKTb::text").get(), "ticker_link": f'https://www.google.com/finance{other_data.attrib["href"].replace("./", "/")}', "title": other_data.css(".RwFyvf::text").get(), "price": other_data.css(".YMlKec::text").get(), "price_change": other_data.css("[jsname=Fe7oBc]::attr(aria-label)").get(), # https://regex101.com/r/BOFBlt/1 # Up by 100.99% -> 100.99% "price_change_formatted": re.search(r"\d{1}%|\d{1,10}\.\d{1,2}%", other_data.css("[jsname=Fe7oBc]::attr(aria-label)").get()).group() } scrape_google_finance(ticker="GOOGL:NASDAQ") # outputs a JSON string ``` A basic example of retrieving time-series data using Nasdaq API: ```python import nasdaqdatalink def nasdaq_get_timeseries_data(): nasdaqdatalink.read_key(filename=".nasdaq_api_key") # print(nasdaqdatalink.ApiConfig.api_key) # prints api key from the .nasdaq_api_key file timeseries_data = nasdaqdatalink.get("WIKI/GOOGL", collapse="monthly") # not sure what "WIKI" stands for print(timeseries_data) nasdaq_get_timeseries_data() ``` Outputs a `pandas` `DataFrame`: ```lang-none Open High Low Close Volume Ex-Dividend Split Ratio Adj. Open Adj. High Adj. Low Adj. Close Adj. Volume Date 2004-08-31 102.320 103.71 102.16 102.37 4917800.0 0.0 1.0 51.318415 52.015567 51.238167 51.343492 4917800.0 2004-09-30 129.899 132.30 129.00 129.60 13758000.0 0.0 1.0 65.150614 66.354831 64.699722 65.000651 13758000.0 2004-10-31 198.870 199.95 190.60 190.64 42282600.0 0.0 1.0 99.742897 100.284569 95.595093 95.615155 42282600.0 2004-11-30 180.700 183.00 180.25 181.98 15384600.0 0.0 1.0 90.629765 91.783326 90.404069 91.271747 15384600.0 2004-12-31 199.230 199.88 192.56 192.79 15321600.0 0.0 1.0 99.923454 100.249460 96.578127 96.693484 15321600.0 ... ... ... ... ... ... ... ... ... ... ... ... ... 2017-11-30 1039.940 1044.14 1030.07 1036.17 2190379.0 0.0 1.0 1039.940000 1044.140000 1030.070000 1036.170000 2190379.0 2017-12-31 1055.490 1058.05 1052.70 1053.40 1156357.0 0.0 1.0 1055.490000 1058.050000 1052.700000 1053.400000 1156357.0 2018-01-31 1183.810 1186.32 1172.10 1182.22 1643877.0 0.0 1.0 1183.810000 1186.320000 1172.100000 1182.220000 1643877.0 2018-02-28 1122.000 1127.65 1103.00 1103.92 2431023.0 0.0 1.0 1122.000000 1127.650000 1103.000000 1103.920000 2431023.0 2018-03-31 1063.900 1064.54 997.62 1006.94 2940957.0 0.0 1.0 1063.900000 1064.540000 997.620000 1006.940000 2940957.0 [164 rows x 12 columns] ``` A line-by-line tutorial: https://serpapi.com/blog/scrape-google-finance-ticker-quote-data-in-python/
0.85
t3_u1vwze
1,649,759,567
Python
Gufo Ping - The Python asyncio Ping library
[Gufo Ping](https://pypi.org/project/gufo-ping/) is the Python asyncio Ping library. Besides the clean and simple interface is the highly-efficient raw sockets manipulation library implemented in the [Rust](https://rust-lang.org/) language with [PyO3](https://pyo3.rs/) wrapper. Pinging is simple: Send one echo request and await for reply: ping = Ping() rtt = await ping.ping("127.0.0.1") Send a series of requests and await replies: ping = Ping() async for rtt in ping.iter_rtt("127.0.0.1", count=5): print(rtt) Gufo Ping is fast, allowing to monitor 100 000+ hosts at once. Gufo Ping is the part of the [Gufo Stack](https://gufolabs.com/products/gufo-stack/) - the battle-proven technologies which drive the [NOC](https://getnoc.com/)
0.84
t3_u1vbxb
1,649,757,278
Python
Create a Bluetooth LE repeater using Python to overcome the range limitation when transferring data
0.84
t3_u1u01z
1,649,751,499
Python
Natural syntax for units in Python
0.88
t3_u1tgt0
1,649,749,144
Python
What the Decorators in Plain Words | Python
What is a decorator in Python? Why and how should I use it? How can I simplify the debugging of decorators? How can I decorate functions with parameters? How can I pass arguments to a decorator? [This article](https://medium.com/@vlad.bashtannyk/what-the-decorators-in-plain-words-python-b600623ea497) will provide you answers to all these questions in plain words with lots of examples! Check it out now!
0.7
t3_u1tglr
1,649,749,121
Python
Instagram likes predi tor using decision tree
0.45
t3_u1qkkd
1,649,738,057
Python
'Python is like a toy programming language compared to C++'
0.14
t3_u1qbdq
1,649,736,750
Python
Porting from Windows to Linux: Python vs. Powershell?
From a search, it looks like this question comes up every couple of months and, like everything else in IT, the answer is "It depends." So, here are my depends... TL;DR - My shop is running database servers on Windows with maintenance and health check scripts written in DOS .BAT files. The company plans to migrate to cloud servers running Linux using the same database software (DB2 LUW). I want to update our scripts to a new scripting language prior to migrating and port to the new platforms when the time comes. In terms of porting between platforms, and getting a team of DBAs used to a new scripting language, would you go with Python or Powershell? Python seems easier to learn and implement, but I think PS might port better. Your thoughts? --- My shop is running database servers on Windows (not SQL Server) with the intent to migrate to cloud servers running Linux at some point in the future yet to be determined. Our database maintenance scripts are DOS .BAT files. That alone is reason enough to rewrite in a better language and, while we're at, we'll build in intelligence, restartability, health checks, logging. Not a lot of activity from the scripts themselves as they mostly run utilities and not many will run in a day or at once. My plan is to convert the DOS .BAT files to PS now and port to Linux when/if we migrate. However, I'm seeing a lot about Python and looked over some code. The pros I see for it is it seems easy to pick up and not too fussy. I also see comments on its speed and low resource consumption. Those same comments also note that speed and resources aren't an issue as long as concurrency is low, as it is in my case. How is Python in porting between OSes? In Powershell, you have to code path names using the .net objects in order to get OS-independent code. Is there a similar mechanism in Python or will things like drive names and path separator characters cause issues? Another example in PS is 'sort'. If you use the 'sort' command, it will invoke the command for that OS which may behave differently. To get OS-independence, you have to use the actual Powershell command Sort-Object. Are there similar work-arounds in Python for path names? Does Python have issues with system commands that are named the same in both OSes? Are there any other porting gotchas? EDIT to answer common questions: The DB software is DB2 from IBM. There's a mainframe version, which we run on z/OS, and an LUW version, where LUW stands for Linux/Unix/Windows. Although it runs on Windows, industry standard for DB2 LUW is to run on Linux or AIX. We're currently running DB2 LUW on Windows Servers. Job scheduling is handled on the mainframe with remote triggers to the servers to run the scripts. The scripts are running utilities like reorgs, backups, restoring backups to other servers and then sending completion or failed status back to the mainframe scheduler.
0.89
t3_u1ogz1
1,649,730,644
Python
Tuesday Daily Thread: Advanced questions
Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python. **If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.** This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at [https://discord.gg/python](https://discord.gg/python) where you stand a better chance of receiving a response.
0.6
t3_u1lfq8
1,649,721,611
Python
SQLite Database with Python
0.55
t3_u1k58n
1,649,717,865
Python
AI Aimbot Python Tutorial
Been working on this for a while. Hope this helps inspire, motivate, & educate my fellow programmers. https://youtu.be/ilsn-TvryyA
0.65
t3_u1ibo5
1,649,712,969
Python
The Python on Microcontrollers Newsletter - free, open source, no spam ever
# Interested in Python? Especially on small devices? With the **Python on Microcontrollers newsletter**, you get all the latest information in one place! The Python on Microcontrollers newsletter is the place for the latest news involving Python on hardware. It arrives Tuesday morning with all the week’s happenings. **Catch all the weekly news on** [**Python for Microcontrollers**](https://www.adafruitdaily.com/) with [adafruitdaily.com](https://www.adafruitdaily.com/). >This *ad-free, spam-free* weekly email is filled with **CircuitPython**, **MicroPython**, and **Python** information that you may have missed, all in one place! You get a summary of all the software, events, projects, and the latest hardware worldwide once a week, no ads! Ensure you catch the weekly Python on Hardware roundup– you can cancel anytime **–** [**try our spam-free newsletter today**](https://www.adafruitdaily.com/)**!** [**https://www.adafruitdaily.com/**](https://www.adafruitdaily.com/)
0.57
t3_u1hqnr
1,649,711,457
Python
Introduction to Streamlit and Streamlit Components
Streamlit is an open-source app framework for Machine Learning and Data Science teams. In this article we will show you how to build Streamlit apps and custom **Streamlit** Components, with the end goal of implementing Auth0 **authentication**. [Read more…](https://auth0.com/blog/introduction-to-streamlit-and-streamlit-components/?utm_source=reddit&utm_medium=sc&utm_campaign=streamlit)
0.25
t3_u1f4tt
1,649,704,784
Python
Free Python 3 Course
Updated Link...(not sure what went wrong with old link) [https://www.udemy.com/course/python-three-from-beginner-to-pro/?couponCode=E74A9ED7BF27445AE778](https://www.udemy.com/course/python-three-from-beginner-to-pro/?couponCode=E74A9ED7BF27445AE778) ​ I created a Python course for beginners. The part that I really worked a lot on was functions, scope, closures and decorators. I always found these topics a bit hard for beginners.The other section that has a lot of material is OOP: classes, instances, properties, instance methods, class methods, inheritance and the MRO(method resolution order).Applications include web development using a backend SQL DB and of course numpy and pandas.
0.67
t3_u1f1se
1,649,704,559
Python
Python Tutorial Snippet - How to create a Stock Trading News Alert Application?
Python Tutorial Snippet - How to create a Stock Trading News Alert Application? [https://www.youtube.com/watch?v=60Z7Fl0Ddag](https://www.youtube.com/watch?v=60Z7Fl0Ddag) https://preview.redd.it/6xw1gq36yxs81.png?width=2880&format=png&auto=webp&s=6b312526559942d33fc91ac5737151e949a8b442
0.67
t3_u1e1vm
1,649,700,883
Python
Crypto toolkit I wrote
Crypto toolkit I'm working on. Features are: * Convert crypto currencies into fiat or other currencies * Check current prices * List some top decentralized exchanges * Get ***today's*** info on coins * And more https://github.com/Waxxx333/cryptkit
0.33
t3_u1ddpi
1,649,699,112
Python
Basic how to load/read and show images in Python (OpenCV)
0.25
t3_u1daza
1,649,698,916
Python
Open-source library that takes an AI model as input and produces an optimized version that runs much faster in inference
0.79
t3_u1bbjw
1,649,693,636
Python
python code for snake game | How to make snake game in Python
0.33
t3_u1ap07
1,649,691,916
Python
My first PIP package based on subprocesses
I never thought that one day I will release a pip package, last summer I was just learning the basics, and now I write public packages and serverless applications for AWS Lambda. Python is so great, friendly to learn, and the opportunities to develop with Python are countless. Here is the project: [https://pypi.org/project/cmagick/](https://pypi.org/project/cmagick/) ​ https://preview.redd.it/2cgh9kqn3xs81.png?width=1364&format=png&auto=webp&s=6383f2111fee0be5d2bc0cbefea4a19bf86f7c20
0.94
t3_u1a9ob
1,649,690,654
Python
Is there any platform to share scripts, import and run them easily?
0.37
t3_u19ok4
1,649,689,110
Python
Question on heapq design - why no maxheap implementation?
I am working through grokking the coding interview and decided to use python due to it's readability and overall simplicity in its syntax. This morning I started working on the 'two heaps' algorithms. It struck me as a bit odd that python or the writers of the heapq library decided to make all implementations of heap minheaps rather than adding some additional APIs for maxheaps. Maybe it's just me, but I find it a bit hard to reason through programs that make use of maxheaps. Having to remember to push a value multiplied by -1 and then do the same for retrieval feels a bit un-intuitive, but maybe it's just me. Does anyone know of the reasoning behind not implementing them separately and adding a thin layer to the maxheaps to avoid having to do this? I'm mostly just curious if there was any discussion around it when heapq was created but haven't been able to find anything yet.
0.81
t3_u1858d
1,649,684,785
Python
This Week Two Intermediate Articles - On Dunder Methods and Python with Docker / Docker-Compose
* [Dunder Methods in Python: The Ugliest Awesome Sauce](https://codesolid.com/dunder-methods-in-python-the-ugliest-awesome-sauce/) Implementing several dunder methods, along with design considerations for when they make sense or not. Includes a tool for enumerating the existing dunder methods on an object with their help strings. * [How to Use Docker and Docker Compose with Python](https://codesolid.com/how-to-use-docker-with-python/) Includes a simple docker container for Flask and a full Django plus Postgres starter stack using Docker Compose.
0.79
t3_u16r3b
1,649,680,593
Python
Monitor your Cluster Stack with Telegraf, InfluxDB and Grafana
We recently worked on monitoring our HPC stack which runs SLURM workload where we utilized telegraf, influxdb, and grafana. The idea is to ssh into the node which provides some status of the entire cluster, take collect data, parse that collected raw data and write to influxdb. For visualization of the collected data grafana is utilized. I think this would be a good read for anyone looking for data collection, data analysis, and engineering on the infrastructure. Please give us a star if the repository has helped you learn something. Repo: [https://github.com/bethgelab/slurm-monitoring-public](https://github.com/bethgelab/slurm-monitoring-public) Thanks
0.78
t3_u15q0w
1,649,677,179
Python
Microservices in 10 minutes - Minos tutorial
Hello everyone! We wanted to share the last tutorial that we have created to show how to create a project with a microservice architecture (with an API, event broker, discovery...) and its first microservice, in \~10 minutes. This is a very quick overview, but we hope that it will help you understand how to create much more complex projects. If you have any doubts, don't hesitate to contact us at [Gitter](https://gitter.im/minos-framework/community) or at [Github](https://github.com/minos-framework/minos-python)! [https://www.youtube.com/watch?v=ZYair128ITg](https://www.youtube.com/watch?v=ZYair128ITg)
0.89
t3_u15nc9
1,649,676,917
Python
Low Code Python has Arrived
0.45
t3_u15h0k
1,649,676,263
Python
QualityScaler 1.2.0 - Image/video upscaling & enhancement app
​ [GUI](https://preview.redd.it/1vms35d5ivs81.jpg?width=1372&format=pjpg&auto=webp&s=13bb87852a28d95fea0a111cdd8f1f7da3e8c670) Itch -> [https://jangystudio.itch.io/qualityscaler](https://jangystudio.itch.io/qualityscaler) Github -> [https://github.com/Djdefrag/QualityScaler/releases/tag/1.2.0](https://github.com/Djdefrag/QualityScaler/releases/tag/1.2.0) ​ **Update 1.2.0** Bugfix / perf. improvement / UI changes New * A new wonderful handmade icon :D Bugfix/improvement * Fixed the problem of displaying error messages correctly * Library import improvements * Other bugfix & code cleaning UI changes * Changed "QualityScaler" title position and background - to make space for new features ;) - * Other little changes
0.88
t3_u146jl
1,649,671,292
Python
Rmse-Mse-Linear regression mpdel-What is RMSE and MSE in linear regression models?-InsideAIML
0.57
t3_u12cxr
1,649,663,520
Python
Ideal Coding Bootcamp
Hi everyone 👋 What would your ideal coding bootcamp experience look like? Let’s say you were a beginner and had zero experience in programming. You find an affordable 6 week python course. What would you expect to walk away with and what do you think your next steps would be?
0.6
t3_u10b4g
1,649,654,868
Python
Selenium with Python for Beginners + Sample website you can probe without violating our Terms of Service
- [Selenium With Python](https://www.practiceprobs.com/problemsets/selenium-with-python/) - [Selenium Playground](https://seleniumplayground.practiceprobs.com/)
0.96
t3_u0uwsq
1,649,636,354
Python
Monday Daily Thread: Project ideas!
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code! If you're looking for project ideas, you might be interested in checking out Al Sweigart's, ["The Big Book of Small Python Projects"](https://inventwithpython.com/bigbookpython/) which provides a list of projects and the code to make them work.
0.78
t3_u0ujvk
1,649,635,212
Python
Learning GUI for Git
0.5
t3_u0sygl
1,649,630,335
Python
Discord log bot
0.5
t3_u04kxn
1,649,545,363
Python
How To Make A Good Github Repository For Your Python Projects
0.77
t3_u05eqn
1,649,548,116
Python
Can someone recommend me ball python names pls
I'm getting a ball python and I want its name to be a pun related to the programming language, but I'm coming up mostly empty. ​ I was thinking of naming it pip, but I feel like there are better names I can't think of.
0.82
t3_u04y52
1,649,546,544
Python
IndicatorManagement v0.4.0 - Management of mathematical/financial indicators
Hello. I am a Python developer and I am making my first Python PyPI module project. The library's name is "indicator-management"; It's about management of mathematical/financial indicators. The benefit of this library is that you can handle very large amount of data because this library does not store the whole data at once, instead it loads the data whenever the calculation is needed. The source code and details are available at [here](https://github.com/McDic/IndicatorManagement). This library is still under pre-alpha development. Your feedback and interest is appreciated! [Example usage with matplotlib](https://i.redd.it/r1vdpr865rs81.gif)
0.82
t3_u0opx3
1,649,618,139
Python
What is the best practice for injecting configuration into a python application
I am working on a Flask App. I have a configuration class defined which has configs for Dev, Qa, Prod and Test. I followed the common practice of reading the config file only once and initialising the app with the config data app.config.from\_object(config object) Now I need to access urls defined in the config class in other places. I tried accessing these configs using the current app proxy. But I realised that I also have to access these class outside the request/ app context as I have celery tasks which access them. One approach is to pass this config as a variable to every class it is required, which I dont prefer. Another option is to annotate the config class as singleton and create the config object at every place where I need them. I also came across this library called Dependency\_Injector. [https://python-dependency-injector.ets-labs.org/](https://python-dependency-injector.ets-labs.org/) This seems a bit heavy weight for my use case though. I am looking forward to know how other solve this problem Edit: I should add that I am already using environment variables. I create. the config object based on the value of the env vars.
0.74
t3_u0j5rn
1,649,602,241
Python
Exploring data in CockroachDB with Python and Pandas in DataStation
0.5
t3_u0i6he
1,649,599,224
Python
Space Science with Python - Autoencoders (concept)
Coders! I keep up my weekly tutorial sessions (some asked, whether I could increase it to 2 videos or more per week... But I have too many things to do... let's see how it continues in the long run!). Anyway, what did we do in the last couple of weeks? Using Python on Google Colab we: - Downloaded asteroid spectra + their corresponding class (whether it is e.g. a stony or iron obejct) - Parsed, cleaned and enriched the data - Created an interactive spectrum visualization tool in Colab - Conducted a Machine Learning experiment using scikit-learn and their SVM implementation - Created a neural network with Keras and optimized its architecture with Keras-Tuner to classify our data So are we done? Theoretically yes. But I would like to conclude the asteroid part with an unsupervised ML algorithm: Autoencoders! Using this neural network architecture + some clustering algorithms I'd like to show how one can create an unsupervised classification method. But what are Autoencoders exactly, and how do they work? Well to split up theory and coding a little bit, I created a small "concept" video on Autoencoders, so that we can start coding next time (knowing what we want to do and what to expect). I am not a CGI expert or big YouTuber. It's more "seminar-like" and I'd like to know your opinion on this, whether it's useful, or not. Link: https://youtu.be/ET441nffKjU So what will we do next with Python, Keras and the asteroid data? - Next tutorial: creating an Autoencoder using Keras (we won't use Keras-Tuner, to keep things simple). We'll also check the "reconstruction" power of the Autoencoder that compresses the 49-dimensional spectra into 2 dimensions - Afterwards: how does the latent space look like? We'll create an interactive Jupyter Viewer to visualise the latent space and color the spectrum class corresponding latent values to determine whether we have a "class separation" or not - Last video of the entire project: Rebuild an Autoencoder with a larger latent space, and applying Gaussian Mixture Models (GMMs) to determine the number of possible classes using the Bayesian Information Criterion (BIC) Well... Afterwards a new Space + Python project will start :) Hope you guys like it. I am looking forward to suggestions and ideas! See you next week! Thomas
0.92
t3_u0hr50
1,649,597,837
Python
How do you pronounce libraries with `py` in the name?
[this comment](https://reddit.com/r/Python/comments/u04y52/_/i454o57/?context=1) got me thinking about how each developer likes to pronounce package names I have always pronounced `numpy` as “num-pie”, but some people I’ve worked with have been adamant it is “num-pee” how do you pronounce “py” in names? (even if it’s solely in your head)
0.92
t3_u0g45w
1,649,591,920
Python
A Brief Introduction to PyQt
0.69
t3_u0f053
1,649,587,047
Python
YouTube version in case you missed it live: troubleshooting Python applications on Kubernetes (hunting down memory leaks, running cpu profilers, and using non-breaking debuggers)
0.8
t3_u0etrg
1,649,586,186
Python
Python Selenium Tutorial #8 - Read, Block & Mock Requests using Selenium Wire
0.81
t3_u0c8yx
1,649,574,107
Python
Desktop stereo system made with Python
​ https://reddit.com/link/u0c60e/video/fawvxu65gns81/player I absolutely love music, especially when coding. For a while now, I've been wanting to have a stound graphical analyzer to make y coding sessions more fun, so I decided to make my own. Here's the [code](https://github.com/BrickSigma/Desktop-stereo). I haven't documented the code yet or added any README file to it, but I will soon. This was a lot of fun to make because I learnt a lot of new things about digital audio processing, like their format, and Fourier transformations, which I'm in love with now. This was also my first attempt at editing a video for public presentation, so I hope I've done justice to it. Thanks for reading and have an amazing day!
0.91
t3_u0c60e
1,649,573,774
Python
Short Rock, Paper, Scissors game.
What do you thin about it, can it get any shorter? [https://github.com/sat1ss/The-shortest-Rock-Paper-Scissors-game](https://github.com/sat1ss/The-shortest-Rock-Paper-Scissors-game)
0.71
t3_u0byeh
1,649,572,827
Python
r/AskScience flair classifier using Praw and Fasttext
I wanted to learn how to use get data from reddit and came across the praw library, so I decided to create a fasttext nlp model which classifies what flair a post should be on r/AskScience (because they have purely text posts and each question is flaired). Currently it works with the top 10 flairs, but I plan to add some improvements to it later on to include all flairs and perhaps other subreddits too. link: [https://github.com/arnavkartikeya/RedditFlairClassifier](https://github.com/arnavkartikeya/RedditFlairClassifier)
0.62
t3_u085ro
1,649,557,796
Python
Analytics Dashboard with Plotly Dash Library
I created this dashboard with the Plotly Dash library. Thought it might be of use to anyone on here looking to get started with Dash. [https://www.youtube.com/playlist?list=PLUnjnS8VMCPpxCAjVp2Y-OjcuAxSQPBk6](https://www.youtube.com/playlist?list=PLUnjnS8VMCPpxCAjVp2Y-OjcuAxSQPBk6)
0.87
t3_u07h4i
1,649,555,368
Python
HiQ - A Modern Observability System
HiQ([https://github.com/oracle-samples/hiq](https://github.com/oracle-samples/hiq)) is a declarative, non-intrusive, dynamic and transparent tracking system for both monolithic application and distributed system. It brings the runtime information tracking and optimization to a new level without compromising with speed and system performance, or hiding any tracking overhead information. HiQ applies for both I/O bound and CPU bound applications. To explain the four features, declarative means you can declare the things you want to track in a text file, which could be a JSON, YAML or even CSV, and no need to change program code. Non-intrusive means HiQ doesn’t requires to modify original python code. Dynamic means HiQ supports tracing metrics featuring at run time, which can be used for adaptive tracing. Transparent means HiQ provides the tracing overhead and doesn’t hide it no matter it is huge or tiny. In addition to latency tracking, HiQ provides memory, disk I/O and Network I/O tracking out of the box. The output can be saved in form of normal line by line log file, or HiQ tree, or span graph. ## Installation pip install hiq-python ## Documentation **HTML**: 📷[ HiQ Online Documents](https://hiq.readthedocs.io/en/latest/index.html) **PDF**: Please check 📷[ HiQ User Guide](https://github.com/oracle-samples/hiq/blob/main/hiq/docs/hiq.pdf). ## Jupyter NoteBook ### Add Observability to PaddleOCR * [Latency](https://github.com/oracle-samples/hiq/blob/henry_dev/hiq/examples/paddle/demo.ipynb) * [Memory](https://github.com/oracle-samples/hiq/blob/main/hiq/examples/paddle/demo_memory.ipynb) ### Add Observability to AlexNet * [Latency](https://github.com/oracle-samples/hiq/blob/main/hiq/examples/onnxruntime/demo.ipynb) * [Intrusive](https://github.com/oracle-samples/hiq/blob/main/hiq/examples/onnxruntime/demo_intrusive.ipynb) ## Examples Please check 📷[ examples](https://github.com/oracle-samples/hiq/blob/main/hiq/examples) for usage examples.
0.57
t3_u07er0
1,649,555,126
Python
Have/do any of you make a side hustle web scraping/procuring data with Python? Everyone that talks about it online in tandem with “make $ with Python” never says how much they made made doing this.
0.79
t3_u06k0b
1,649,552,099
Python
Sunday Daily Thread: What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
0.85
t3_u05lzc
1,649,548,811
Python
What nontechnical piece of advice have you received that has changed how you work as a developer?
For example, Ive heard before automating something, you shouldn’t ask yourself if it can be done but should it be done. It’s an intuitive, slap your forehead concept but one that was eye opening
0.92
t3_u0431h
1,649,543,792
Python
Tips for Python debugging in Vim
What is your workflow and which plugins do you use, if any ?
0.63
t3_u03d4y
1,649,541,591
Python
An easy to use PGP tool
Good morning to everyone, after my unsuccessful attempts at using PGP software, I decided to create my own one in python, as simple as I possibly could, to make it easier on myself should I ever need to use again this PGP process or should someone decide to use it. I'm a student, an amateur python programmer and I love challenges, so I took upon the challenge of creating my first tool with a GUI, it's my first time using any of these python libraries and posting anything publicly.... I give you [EZPZ-PGP](https://github.com/HandImpersonator/EZPZ-PGP) (name could do some work, I know): [Tool menu](https://preview.redd.it/equy9g1wjks81.png?width=322&format=png&auto=webp&s=ef57c2ce60e7c20edb4fb4f7a65dc2ee6993b4c4) [Folders created](https://preview.redd.it/nxec6ovyjks81.png?width=887&format=png&auto=webp&s=27d55d3a47f937a9a2c18f26567293e16cb2c0ec) [Key location](https://preview.redd.it/4ywhr3n0kks81.png?width=885&format=png&auto=webp&s=6979992268aa7458c90f4ac08abbc948387d54da) [Message encryption test](https://preview.redd.it/x2pe8gb2kks81.png?width=479&format=png&auto=webp&s=74224b5cc3766fa1444e7e2d831279bda143de9d) [Message decryption test](https://preview.redd.it/364ye2n5kks81.png?width=479&format=png&auto=webp&s=71385a74a8eee2463031ace4c578f3b6b7d83a15) I really have no idea how much simpler to make this tool, I have included some [mildly straightforward instructions](https://github.com/HandImpersonator/EZPZ-PGP#what-the-tool-can-do) for ease of use. It can create PGP keypairs (PGPY), encrypt, decrypt, sign and verify signatures on messages and files (PGPY). Completely open source, I want to share my personal tool with the world with the hope of getting some feedback on it and see if people like it a bit. I'd like to work on translating the tool to other languages with latin alphabet, I'll upload soon to github a file with all the text needed to be translated to other languages. PM me if you decided to help translate the tool to your language so I can update the tool and include your name/account in the github credits! ​ Thank you, looking forward to your feedback.
0.83
t3_u02g7d
1,649,538,795
Python
I released a game made with Pygame!
Over the past week I challenged myself to make a game in Pygame and this was the result. Everything was made by me except the music! https://i.redd.it/kp5kik7kdks81.gif Download the game here - [https://scriptline-studios.itch.io/planyt](https://scriptline-studios.itch.io/planyt)
0.96
t3_u01qvx
1,649,536,656
Python
[Challenge] print "Hello World" without using W and numbers in your code
To be more accurate: without using w/W, **'** (apostrophe) and numbers. Edit: try to avoid "ord", there are other cool tricks [https://platform.interway.ai/#/get/play\_/ch/hello\_\[w09\]orld](https://platform.interway.ai/#/get/play_/ch/hello_[w09]orld) Disclaimer: I built it, and I plan to write a post with the most creative python solutions
0.9
t3_u01kmr
1,649,536,115
Python
Threading in Python: The Complete Guide
0.82
t3_u01bcj
1,649,535,326
Python
Has anyone applied to a job that requires a bachelors degree but doesn’t have one themselves and got the job??
I’m 22 years old and have an associates right now, I’m working on by bachelors but I HATE SCHOOL. I have been learning python for a couple of months now an have a general understanding of it. I was just looking at entry level job and most of these require a bachelors degree, I really want to know if anyone has gotten any of those jobs without a bachelors??
0.79
t3_u00pmy
1,649,533,491
Python
How to correctly install Python applications & libraries from PyPI
0.5
t3_tzyv6j
1,649,527,919
Python
Using Nuitka to Speed Python Code
I am playing with Nuitka and following this [link](https://ao.ms/how-to-package-a-python-app-using-nuitka/). I was under the impression that compiled program should run faster but that is not the case here? Running the Python code, $ time python test1.py h<z`3C337E|$Oe2@ real 0m0.095s user 0m0.024s sys 0m0.013s Then running the standalone code compiled via Nuitka, $ time ./test1.bin +>PAGZ$OHlVK/.5 real 0m0.191s user 0m0.031s sys 0m0.014s The standalone code runs slower but shouldn't it have run faster since it is a complied?
0.6
t3_tzy00o
1,649,525,369
Python
Open Source Rhythmic Midi Generator for all Major Keys in Python
This program uses some relatively simple python logic to generate random chord progressions in every major key! The progressions are then broken up into rhythmic subunits, which are also semi-random. The midi files need a specified directory to be outputted to. Where to do this can be found within the code. Any and all feedback is appreciated! Link to the code: [https://github.com/prod-emdub/midirhythm/tree/main](https://github.com/prod-emdub/midirhythm/tree/main) ​ Here is an example of a randomly generated progression in F major: ​ https://preview.redd.it/usbt91cd5js81.png?width=3541&format=png&auto=webp&s=eb5513343eb5bccf4bdda2ad40eac07ba1355af6
0.83
t3_tzwra2
1,649,521,697
Python
Build a Site Connectivity Checker in Python – Real Python
1
t3_tzwhkh
1,649,520,902
Python
I made an R6 Strat Roulette discord bot in python!
Hey I'm fairly new to python this is one of my first actual projects! If you want to talk to me about it or give me some suggestions add me on discord: Axkkzy#7992 :) [https://github.com/Axkkzy/R6-Strat-Roulette-Bot](https://github.com/Axkkzy/R6-Strat-Roulette-Bot)
0.67
t3_tzulmw
1,649,515,365
Python
Free Python Course Inquiry
I had a quick question regarding a coursera class I am currently taking for simple python programming (it's offered for free and it looks like the course is laid out fairly well). However, after week 1 (so a few hours I've invested), it appears to be a course that may have been recycled/offered to newbies from original posting date of several years ago and not within the past 2 years (I found comments from students reviewing the course from 2016). The teaching style is a little inflexible at times (jumping around functions, assignments a bit), but I want to get through the course because of the value of learning to work with Python Is there value in this particular program based on the age of the course or do I need to restart a similar course not older than a certain amount of years? They are working with python 3.4 btw ​ Thanks for any feedback/recommendations!
0.33
t3_tzra4g
1,649,503,690
Python
Python client for Crunchbase's REST API
Hi, I recently needed to use [Crunchbase](https://www.crunchbase.com/)'s REST API in a project but couldn't find a well-maintained python client for it. I started writing one and decided to open-source it. This is my first open-sourced project. Your feedback, improvements, and suggestions will be appreciated. [https://pypi.org/project/py-crunchbase-api/](https://pypi.org/project/py-crunchbase-api/) Thanks.
1
t3_tzq3q7
1,649,498,486
Python
What do you guys think of this book?
0.87
t3_tzpk9y
1,649,496,037
Python
custom-literals A module implementing custom literal suffixes using pure Python
1
t3_tzp8qe
1,649,494,611
Python
Python — Network Tracking using Wireshark and Google Maps
0.83
t3_tzp4n9
1,649,494,069
Python
A Hitomezashi pattern generator I made in python!
I made a Hitomezashi stitch pattern generator fully in python after watching the Numberphile video a long time ago. I used the pygame module to do it. Source Code- [https://github.com/Topkinsme/Hitomezashi-Stitch-Pattern-Generator/blob/main/main.py](https://github.com/Topkinsme/Hitomezashi-Stitch-Pattern-Generator/blob/main/main.py) https://reddit.com/link/tzp0f4/video/sorpps5wsgs81/player
0.97
t3_tzp0f4
1,649,493,503
Python
When default __new__ function should be overwritten?
I recently learnt about diffrence beetween __new__ and __init__ functions, but I cannot find usecase of writing my own __new__ method.
0.82
t3_tzmyvu
1,649,484,444
Python
Pygame Tutorial - Menus and Buttons!
0.4
t3_tzjdxt
1,649,471,029
Python
Internship skills:
I’m pretty new to python. All i’ve done is take a dual enrollment class at gt for it and the farthest we covered in the course is project oriented learning. I understand how to do the basic problems in the class like given an array of movies and their gross profit, sort them from greatest profit to least profit. Simple things like that. What can i do to learn how to actually apply this stuff to the point that i would be useful in an internship??
0.75
t3_tzh04s
1,649,462,928
Python
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic? Use this thread to chat about and share Python resources!
0.75
t3_tzgu3e
1,649,462,409
Python
Shortening common parts of code
Title. In JavaScript there are things like the ternary operator to reduce code size and "improve" code quality, I'm wondering if there is much in python aside from the obvious which is lambda
0.5
t3_tze4s6
1,649,454,239
Python
I created a library for teacher task automation
I created a library of utilities I've used as a teacher to automate various tasks (mail merges, interacting with google classroom, generating rubrics). I hope that it might lower the barrier of entry for teachers with some python knowledge to get started with using programming to ease the repetitive aspects of our work. Comments, criticism, and code review are much appreciated! https://pypi.org/project/teacherhelper/ https://teacherhelper.jackdevries.com/ https://github.com/jdevries3133/teacher_helper
0.94
t3_tzb9yc
1,649,446,042
Python
Using Github to host local images permenently on the web.
When you create an issue or add an image on github, you can actually upload images to the github server without any external apis. We can use this feature to mimic Github's behavior when uploading an image and upload any local image to the web. Because github has to store all images permenently (or images on READMEs or issues could change), we also do not have to worry about uploaded images expiring. I have been using this feature (although not automatically) for a long time to host images for my own website, and finally managed to automate this process. Honestly, as a beginner in programming, hosting images for websites for free is a pain in the ass and I hope this will help people learn more about websites. [Github link](https://github.com/0ev/github-issue-image-upload)
0.38
t3_tzb541
1,649,445,662
Python
Wordle in command line
you can wide the dictionary if you want 😉 from os import system, name import re import random # define our clear function def clear(): if name == 'nt': # for windows system('cls') else: # for mac and linux(here, os.name is 'posix') system('clear') #show the rules of the game and descripcion def menu(): print(""" __ __ _ _ ____ \ \ / /__ _ __ __| | | ___ / ___| __ _ _ __ ___ ___ \ \ /\ / / _ \| '__/ _` | |/ _ \ | | _ / _` | '_ ` _ \ / _ \\ \ V V / (_) | | | (_| | | __/ | |_| | (_| | | | | | | __/ \_/\_/ \___/|_| \__,_|_|\___| \____|\__,_|_| |_| |_|\___| Try to guess the word, we lend you some clues when you assert. After each guess, the color of the tiles will change to show how close your guess was to the word """) def show_words(array_words,guessword): for word in array_words: list_blocks = "" for i,letter in enumerate(word): if letter in guessword: if word[i] == guessword[i]: block = "🟩" else: block = "🟨" else: block = "🔲" list_blocks += block print(word.replace("", " ")[1: -1]) print(list_blocks) if __name__ == "__main__": dictionary = ["ninja","great","witch","grown","space","stone","earth","extra","entry","slice","shine","sharp","eager","ebony","penny"] guessword = random.choice(dictionary) lenword = len(guessword) word_guessed = False array_words = [] while word_guessed == False: clear() menu() show_words(array_words,guessword) try: word = input(f"Hit some word of {lenword} length here:") if len(word) != lenword: raise ValueError(f"it must be {lenword} length word!") elif not re.search(r"[a-zA-Z]{"+str(lenword)+"}",word): raise ValueError(f"it must be only alfabetical characters!") elif word == guessword: print(word.replace("", " ")[1: -1]) print("🟩🟩🟩🟩🟩") print("Awesome! 🎉🎉🎉") word_guessed = True else: array_words.append(word) except ValueError as e: print(e) a = input("Press 'enter' to continue")
0.54
t3_tz8uhj
1,649,439,253