sub
stringclasses
4 values
title
stringlengths
3
304
selftext
stringlengths
3
30k
upvote_ratio
float64
0.07
1
id
stringlengths
9
9
created_utc
float64
1.6B
1.65B
Python
I'm creating a tool to enrich your datasets with relevant external data
Hey all, I love doing market research and all kinds of exploratory analyses, but getting the data is a major pain point, as it is in many places (data dumps, apis, marketplaces, web data) and in all kinds of formats I'm trying a different approach, where instead of searching for data sources, and then integrating manually, you just upload your dataset. My service has a large index with datasets and api providers, and finds relevant ones for your dataset which you can add easily. ​ [Example](https://i.redd.it/7ou7f2egowq81.gif) Does this seem useful to you? Would love to hear your thoughts
0.93
t3_ttosfb
1,648,813,824
Python
jupino: Annotate data in Jupyter notebooks
Often times I need a quick way to annotate data for my experiments and since I use Jupyter notebook quite a lot, overtime I developed a simple way to annotate data using Jupyter widgets and recently published it to Github([https://github.com/jangedoo/jupino](https://github.com/jangedoo/jupino)) and pypi to share it with others. I hope you find it useful. The README file contains code samples for common data annotation scenarios. I would love to get your feedbacks! https://preview.redd.it/3moyq5fqhwq81.png?width=734&format=png&auto=webp&s=74309c310d96acd056726f354f5de2c24e981878
0.91
t3_tto7z2
1,648,811,835
Python
Python Data Persistence - DBM Package
nan
0.67
t3_ttmu0f
1,648,806,221
Python
Old Project Showcase [ThoughtLogger]
## Backstory I made this application a long time ago. And really didn't think about showcasing this off in this subreddit. It was a big mistake. But now, I think this project might help somebody, so here it is, # ThoughtLogger. Your Personal Thought Logging application that you can use anytime without losing any focus. **Made using tkinter in Python.** You can write down your thoughts, make a list, use it as a diary, your choice. You get two profiles to write into. This might be useful with people with CBT (Cognitive Behavioral Disorder) The text is then saved as a '.log' file. Image of [Main Window](https://user-images.githubusercontent.com/68242099/137069866-9de85060-c0cf-4907-9e3d-3931f614e35f.png) ## You can also customize stuff You can use the '.ini' file to customize the application to your liking. \[still in beta stages\] [ini file](https://user-images.githubusercontent.com/68242099/135040471-4d9fd50b-72d3-4696-baac-9490145b5b62.png) ## You can try it out from this [Github Repo](https://github.com/moiSentineL/ThoughtLogger). It was just a beginner project. Didn't know many things. ## Also hoping that you guys would help improve the code. ## Thank you.
0.8
t3_ttmrs1
1,648,805,960
Python
Removal of supported types in the sample function of the random-library. Why would this be done?
When reading the [documentation of the random module](https://docs.python.org/3/library/random.html) I noded the following: > Deprecated since version 3.9: In the future, the *population* must be a sequence. Instances of [set](https://docs.python.org/3/library/stdtypes.html#set) are no longer supported. The set must first be converted to a [list](https://docs.python.org/3/library/stdtypes.html#list) or [tuple](https://docs.python.org/3/library/stdtypes.html#tuple), preferably in a deterministic order so that the sample is reproducible. And my question is why would you do something like this, rather than further supporting all iterables and then casting them to sequences if needed. Maybe make a keyword only argument that has tuple as default parameter so that a user can pass in a custom function to convert non-sequence iterables and raise an error if and only if the convert function fails? Why would we want reproducible results for the random module anyway? I know it is more for games than security purposes but still doesn't this defeat the purpose.
0.64
t3_ttlu6q
1,648,801,881
Python
Object Counting by Color. Learn how to count selected color objects using OpenCV and Python.
nan
0.7
t3_ttlipp
1,648,800,408
Python
Transfer file wirelessly between two computer over the Bluetooth Low Energy protocol Using Python
nan
0.71
t3_ttl4ra
1,648,798,697
Python
GitHub - brenw0rth/pync: arbitrary TCP and UDP connections and listens (Netcat for Python).
nan
0.67
t3_ttkpio
1,648,796,851
Python
Why does it seem that python pays more than Java (from what little googling I’ve done)? I would assume that since Java runs faster and more efficient (and since it’s harder to learn, thus, making it a more scarce skill) that Java would be the higher paying language.
nan
0.33
t3_ttjbrc
1,648,791,346
Python
Automated WiFi Hacking Script In Python - Tutorial
nan
0.89
t3_tticqk
1,648,787,748
Python
simple and fast reverse port forwarding tool by python
I write a port forwarding tool using pyhton. Please have a try, thanks ! [xitongsys/moonlight: moonlight is a reverse port forwarding tool written by python (github.com)](https://github.com/xitongsys/moonlight)
0.71
t3_ttht7k
1,648,785,809
Python
my Hacker News interface, displays thumbnails and details about the linked page. written in Python 3.8, with Playwright for scraping, requests for API querying, Wand for thumbnail generation, and pickle for caching link data so I don't poll the Hacker News API too often
I'd like to share with you [my interface for reading the Hacker News feed](https://www.thnr.net/top/1/). It started as a Django app, but several iterations in I realized I was basically just creating static pages (for speed of UX) so I pivoted to using Python for just a backend of querying the Hacker News API to get the link info and generate the page html and the thumbnails and other details. Web serving is just nginx serving the generated static html pages. I'm happy to answer technical or design/architecture questions. My plan is to make the code public once it's in a less embarrassing state, but I'm happy to share source code as illustrations if anyone is curious about specific points. Oddly, the thumbnails have consumed the majority of my dev time. I use Playwright to get the [og:image](https://duckduckgo.com/?q=og%3Aimage) link (if it's present) and then I use good ole `requests` to download the og:image itself. I use Wand (an ImageMagick binding) to trim away large blocks of solid color and then I pad the image to make it either squarish or a 3:1 width to height aspect ratio. Finally I use Wand to save the file as webp since it's small but still good looking. Currently I also create thumbnails if the linked item (not og:image but the actual link) is to a PDF. I'm using Wand to do the conversion with Inkscape as the backend delegate for rasterizing. But sometimes the quality is kinda meh, so I'd like to experiment with using good old ghostscript for rasterizing PDFs, either through a binding (any suggestions?) or by calling a process from Python to the shell. For the curious: [Hacker News default interface](https://news.ycombinator.com/), [their public API](https://github.com/HackerNews/API)
0.75
t3_tthmk7
1,648,785,205
Python
Is taking hand-write note on Python Library courses good? In your opinion?
nan
0.42
t3_ttfj0z
1,648,778,283
Python
PEP 2241: Back to the Past
nan
0.84
t3_ttdl90
1,648,772,073
Python
PEP 9001
​ [The Best, and Only, Code Autoformatter You'll Ever Need](https://preview.redd.it/t15arr245tq81.png?width=758&format=png&auto=webp&s=b1accb0f300af6253cff6c14a458601abc5d0ebe) ​ [PEP 9001](https://peps.pythondiscord.com/pep-9001/) Our friends over at the [Python Discord](https://discord.gg/python) have been asked to draft and submit a PEP based on their experiences on Discord based on how to make Python development better for all. As the Python Discord Server, they are in a unique position to see how Python programmers grow along side the Python programming language. With that experience, they've noticed how much developer time and energy is expended on python formatting and how the guidelines of PEP8 even influence how people learn. In an effort to ensure Python continues to be the dominant and best programming language to ever exist, the Python Discord is submitting [PEP 9001](https://peps.pythondiscord.com/pep-9001/)—the New Ultimate Final Python Formatting Guide! This PEP is the final, ultimate, complete Python Formatting Guide that also includes proposed changes to the Python's syntax to encourage better coding practices. We encourage you all to begin porting your code to this new and final coding style. To help with this drastic but very necessary change, they’ve started drafting a new autoformatter for it, Blurple, so everyone can experience what their code looks like in it's ultimate form. This PEP is still in a draft state, so please suggest and make contributions in the #pep-9001 channel over in the [Python Discord](https://discord.gg/python). Play around with the autoformatter in #blurple-code-formatter and experience what it’s like for your code to be expertly styled.
0.93
t3_ttdjl6
1,648,771,923
Python
Friday Daily Thread: Free chat Friday! Daily Thread
Use this thread to talk about anything Python related! Questions, news, projects and any relevant discussion around Python is permitted!
0.67
t3_ttdb2f
1,648,771,207
Python
5 Powerful Python one-liners 🤯
[https://medium.com/@needablackcoffee/5-powerful-python-one-liners-260dd61c4d09](https://medium.com/@needablackcoffee/5-powerful-python-one-liners-260dd61c4d09)
0.15
t3_ttbviw
1,648,766,763
Python
Django Boilerplate: new open source project, asking for feedback
I just finished the first iteration on my new open source side project, a Django boilerplate. What do you think about it? I won't explain much here since I'd like the [readme.md](https://readme.md) to be self-explanatory. interesting in feedback about: \- it is useful? \- it is properly done? \- it is something you don't like? \- there is something "not django-ish"? \- and, of course, any other feedback you may want to leave me! I'd appreciate even the small bit of time you'd dedicate to my project. here's the link: [https://github.com/carloocchiena/django\_boilerplate](https://github.com/carloocchiena/django_boilerplate)
0.67
t3_tt8dpi
1,648,757,067
Python
I made a random class generator for Elden Ring
`import random` `classes=['Hero', 'Bandit', 'Astrologer', 'Warrior', 'Prophet' 'Vagabond', 'Confessor', 'Wretch', 'Prisoner', 'Samurai' ]` `class_selection = random.choice(classes)` `print(class_selection)` Please give me any feedback on how to improve this, it's one of my first projects
0.58
t3_tt753s
1,648,753,658
Python
Files and Dictionary practice
I had already posted but i did not read the rules all the way so I had to remove it, but I am back. This project came on a whim and I thought it would be fun. The code in my opinion is a tad bit messy but readable. Most of the code came from me with some help from Stack-overflow [Guthub Link](github.com/Gamelift/File-and-Dictionary-Practice/tree/main)
0.4
t3_tt53sn
1,648,748,158
Python
Create a progression of recommendations with any recommender
Hi! For work I made a [recommendation progression package](https://github.com/askarthur/graph-progression) which we've open sourced! Let me explain. # Reason We are an ArtTech company and have created a few recommendation engines around artists and artworks. For the artwork one in particular, we thought it'd be cool to see a progression of artworks given a "seed" work. During that process, we discovered a solution like this doesn't exist when all the recommendations aren't calculated before hand and stored (like a graph database) ... so we built this. # Summary The main idea behind the package is to allow users to create a series of recommendations in a sort of "progression" from one another using a *context-based* recommender. So you supply the recommendation engine (or client to it), the starter item (seed), and the progression length. It will then try to create a progression of recommendations from the start (seed -> rec 1 -> rec 2 -> etc.). Some cool features it has are memoization (it won't call the recommender again if it hits the item again), backtracking (if an item has no valid recommendations), and post-selection filters (if you want to filter out certain recommendations). ## Sample Checkout out a [sample](https://github.com/askarthur/graph-progression/blob/main/docs/samples/README.md) (for artworks) starting with a VanGogh painting! ​ Would love to hear any feedback and/or questions people have! Thanks for reading!
0.7
t3_tt4k17
1,648,746,668
Python
Interceptor algorithm (no relevance to current world events)
[https://www.youtube.com/watch?v=RoIsWAdIqos](https://www.youtube.com/watch?v=RoIsWAdIqos) I made a bot that uses a few altered kinematic equations. It's designed to be an aiming algorithm, but it also works as an unjukable bot. I made the control physics work like starships in SWBF just for fun. Change the speed and acceleration values to see some interesting results. Turn off the constant unit vector speeds and watch it intercept extremely well.
0.77
t3_tt4i7h
1,648,746,529
Python
Asynchronous Web Scraping With Python AIOHTTP
nan
0.65
t3_tt2qi2
1,648,741,724
Python
Bulk file rename app
[Tr.Rename](https://preview.redd.it/oubod92w2qq81.jpg?width=150&format=pjpg&auto=webp&s=3a86f3ee1bbace7e43757a38b9dcb0ad1575d74a) ​ this app is my first project on Github. it is a bulk file rename/translator. it is based on python. only tested on windows 10 64bit. the GUI is based on qt. the app name is Translate.Rename and it is capable of: 1. translates all the files into a folder and renames. (uses Built-in google translate API). 2. adds any characters and dates to every file inside the selected folder. (both before or after original filename). 3. completely renames all files in a folder by user-given characters and adds \_1,\_2,... 4. change the suffixes of given files. 5. filters affected files by text, date, size, and type. [https://github.com/theRJorj/Translate.Rename](https://github.com/theRJorj/Translate.Rename) EXE: [https://sourceforge.net/projects/trans-rename/](https://sourceforge.net/projects/trans-rename/) would be glad to have your feedback.
0.84
t3_tt007r
1,648,734,034
Python
A feature complete W-TinyLFU cache implementation in Python
While learning Python I tried to implement the cache architecture proposed in the paper [A Highly Efficient Cache Admission Policy](https://arxiv.org/pdf/1512.00727.pdf). I have seen that Python only propose LRU cache as a decorator so I thought a more efficient cache was something meaningful and funny to code. Not an expert, tried my best. Brief description of the cache structure: >W-TinyLFU uses a small admission LRU that evicts to a large Segmented LRU if accepted by the TinyLfu admission policy. TinyLfu relies on a frequency sketch to probabilistically estimate the historic usage of an entry. The window allows the policy to have a high hit rate when entries exhibit recency bursts which would otherwise be rejected. The size of the window vs main space is adaptively determined using a hill climbing optimization. This configuration enables the cache to estimate the frequency and recency of an entry with low overhead. Here's the github link: [https://github.com/vanika/TinyPyCache](https://github.com/vanika/TinyPyCache)
0.63
t3_tszssv
1,648,733,396
Python
I wrote okjson - A fast, simple, and pythonic JSON Schema Validator
I had a requirement to process and validate large payloads of JSON concurrently for a web service, initially I implemented it using [jsonschema](https://github.com/python-jsonschema/jsonschema) and [fastjsonschema](https://github.com/horejsek/python-fastjsonschema) but I found the whole [JSON Schema Specification](https://json-schema.org/) to be confusing at times and on top of that wanted better performance. Albeit there are ways to compile/cache the schema, I wanted to move away from the schema specification so I wrote a validation library inspired by the design of [tiangolo/sqlmodel](https://github.com/tiangolo/sqlmodel) (type hints) to solve this problem easier. **Here is a simple example:** ```py from okjson import JSONValidator schema = { 'name': str, 'age': int } json_string = '{ "name": "Charly Gordon", "age": 32 }' assert JSONValidator().is_valid(instance=json_string, schema=schema) ``` There is an [example covering all the features](https://github.com/mufeedvh/okjson#every-feature-in-a-single-example) in the README. It also has well defined exceptions for each error case when you want to get the reason for the validation failure. (Helpful when you want to show user facing error messages) **GitHub:** https://github.com/mufeedvh/okjson This is my first time publishing a Python library, please share your feedback/suggestions. :)
0.74
t3_tsz0i3
1,648,730,942
Python
Current situation of library support for M1
I am planing to swap my old MacBook with a M1 Pro MacBook. I would like know if anyone has experience with the current situation of supported library support/ general usability of python on M1. I need support for most of the common data science libraries. I can sacrifice some performance problems since I am mostly just doing DevOps for a Data Science project. But I need to be able to execute it. Furthermore, I am doing a lot of Docker stuff, but as far as I know this is mostly supported. So, any knowledge or experience is welcomed :)
0.93
t3_tsyuig
1,648,730,378
Python
Flame graph rendering in the terminal
nan
0.56
t3_tsya02
1,648,728,441
Python
Concurrent Web Scraping with Selenium Grid and Docker Swarm - updated!
nan
0.57
t3_tsy5pb
1,648,728,034
Python
Project idea for Python lovers in the Linux world
I'm just throwing this somewhere cuz it'd truly be a blessing if it was made, but I don't get my hopes too high. I'm very bad at Linux, but I basically spent a week on and off trying to find an easy to use and configure fan control program for CPU and GPU. There's plenty that need you to write config files yourself, or that require 15 steps configuration process where it's always failed me somewhere. So, having a software with a gui that doesn't require you to jump into the Terminal times and times again would be a blessing to me, and I bet to many other inexperienced Linux users as well. I find open-source OS so attractive for many reasons, but at the same time I can't do much because I don't have the technical knowledge for it. Life's really hard as a new user who can't deep dive and learn all the technicalities. (the love-hate relationship is very real - > \^ 3 \^ // = --O) Maybe, if you can relate in some ways and have more knowledge and free time... the door's open for you to contribute.
0.5
t3_tsxyc3
1,648,727,281
Python
Python in Visual Studio Code – April 2022 Release
nan
0.89
t3_tsxkgp
1,648,725,776
Python
^fassert$: Fuzzy assert only data that matters
Hello, In almost every project I worked on I had a need to fuzzy match (assert) recursively nested structures such as combinations of lists/dicts/tuples/sets etc... If you need to assert some data deep within the nested structures, especially if the position within the list is not known, the complexity can raise quickly with several nested for loops. I always wrote more-or-less the same test fixture to do this kind of thing but figured I am not the only one having this problem so I decided to made this into a small library with emphasis of having 0 dependencies. The whole library is also implemented in a single file (I would like to keep it that way if possible) so if you don't feel like installing something from pypi you can just copy paste the content into your pytest fixtures and start using it straight away. Source code: [https://github.com/SourceCode-AI/fassert](https://github.com/SourceCode-AI/fassert)
0.61
t3_tswigu
1,648,721,347
Python
An A Markov-Chain Twitter bot trained on Elon Musk Tweets and Childrens Books
Ever wondered what would happen if Elon Musk started quoting childrens books halfway through his Tweets? Wonder no longer! Github: [https://github.com/FlynnOwen/elon-markov-chain-twitter-bot](https://github.com/FlynnOwen/elon-markov-chain-twitter-bot) Twitter: [https://twitter.com/elonstorybot](https://twitter.com/elonstorybot)
0.82
t3_tsvexj
1,648,716,375
Python
If an exception is raised but not handled would the process definitely stop/crash? I have seen some programs that keep printing stack trace to cli but don't crash and keep trying.
EDIT: thanks i think i got my answer. ```py while True: try: something_that_raises_exception() except as e: logger.error(e) ```
0.88
t3_tsux1z
1,648,714,032
Python
Print Emoji's using Python.
nan
0.33
t3_tsusc7
1,648,713,463
Python
Real Time Speech Recognition
nan
0.83
t3_tst6rj
1,648,706,438
Python
Demo for game made with Pygame
https://preview.redd.it/…for you. Thanks!
0.86
t3_tssu7d
1,648,705,022
Python
First Python Application - Blackjack Strategy Trainer - Seeking Feedback
Hi everyone! I just finished my initial beta for a blackjack training simulator. The application helps the user practice basic blackjack strategy. If you check it out and have some feedback for improvement, I would love to hear it! Thanks and enjoy! ​ [https://github.com/lrassbach/blackjack-training-simulator/releases](https://github.com/lrassbach/blackjack-training-simulator/releases)
0.8
t3_tsrmiu
1,648,700,446
Python
I made a utility library for downloading Wikimedia Data Dumps for analysis
I created a small utility library that exposes the directory structure of Wikimedia’s data dump site (and its mirrors). It includes a method to easily download and decompress data dumps using Python’s built in libraries - this proved to be an especially difficult problem because the data dumps are sometimes several times larger than the system’s memory. [Source code here.](https://github.com/jon-edward/wiki_dump)
0.85
t3_tsq2c8
1,648,695,137
Python
Tuple Reuse Quirks
I was testing tuple reuse today and noticed some strange behavior. If you run all the code below together as a script, 1) a and b have different IDs, as do c and d; but when you enter them in the interpreter line by line: 2) a and b have the same IDs, 3)c and d have the same IDs. Of the 3 observations, only 2) matches my expectation based on my understanding of tuple reuse, which is that Python moves tuples with fewer than 20 items to a "free list" after their reference count reach 0, (to make them available for potential reassignment later) Could someone explain why 1) and 3) happen? Thank you! `a = (1,2,3)` `print(id(a))` `del a` `b = (1,2,3)` `print(id(b))` ​ `c = (4,5,6)` `print(id(c))` `del c` `d = (7,8,9)` `print(id(d))`
0.7
t3_tso711
1,648,689,060
Python
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python education! **This thread is not for recruitment, please see** r/PythonJobs **or the thread in the sidebar for that.**
0.76
t3_tsmv9p
1,648,684,810
Python
Python or R?
I searched some differences but not found definite answer. So, I ask you. Which one is better for business? My company has over 3 million customer and tons of data expectedly. I will study in a different department after 3 or 2 years later and it will be about data analysis of costumers. Which one should I start with? Python or R?
0.4
t3_tsjvib
1,648,676,061
Python
Pollen Robotics' Reachy VR Digital Twin in Python (proof of concept)
Demonstration of a **"Reachy"** **digital twin** in **virtual reality**, based on **Python** and **HARFANG**. The goal of this P.O.C is to demonstrate that a simple digital twin of an existing robot can be implemented in less than 500 lines of **Python**. This digital twin shows a **VR** experience that could serve to bootstrap a **tele-operation** project : \- the user can see what the robot sees, using the 3D simulation in **virtual reality** \- the user can move his hands around, the **arms** of the **robot** will follow \- it helps to test the **challenge** of a tele-operation process The robot in this demonstration is a **Reachy, developped by the French company Pollen Robotics**. The physics & inverse kinematic solver is handled by PyBullet. The VR is simulated by HARFANG 3D. [https://www.youtube.com/watch?v=TBAjNGPpMfc](https://www.youtube.com/watch?v=TBAjNGPpMfc)
0.85
t3_tsjsaf
1,648,675,816
Python
pymac: Install and manage macOS Python.org installers from the command line
nan
0.9
t3_tsjhe7
1,648,675,001
Python
A simple Snooker 3D game in Python
Hi there, I would like to share a tiny **game** project all made in **Python** : a **Snooker simulator.** The gameplay is rather limited, as the aim of this project is to focus on the simulation aspect : how to produce a realistic snooker physics, with a visual rich enough to be on part with nowadays standards ? To reach this goal, this project relies on 2 major **features** : \- a **physics** engine, running at high frequency to handle the friction of the balls \- a **3D rendering** engine, with 2 quality modes, the highest quality mode including realtime reflections and radiosity (doesn't require a RTX GPU). I hope you folks will enjoy the project, can **learn** from it and maybe be turn it into something bigger! [https://github.com/harfang3d/snooker-python-hg2](https://github.com/harfang3d/snooker-python-hg2)
0.73
t3_tsixth
1,648,673,568
Python
Introducing Slap: A CLI to assist in the Python development process
I would like to share a project with you that I have been working on and actively using for over 1.5 years to streamline my day-to-day tasks developing Python projects. I use Slap tens to hundreds of times a day and would not want to miss it anymore. **Slap streamlines Python development tasks** >[Slap](https://niklasrosenstein.github.io/slap/) is a command-line tool to assist in the development of Python projects independent of the [PEP 517](https://peps.python.org/pep-0517/) build backend being used, capable of managing single- and multi-project repositories. Among the things that Slap can do, here is a short selection: * Perform development installs of your project (even for Poetry projects) * Manage local & global virtual environments * Bump version numbers (not just in `pyproject.toml`) * Publish to PyPI * Manage structured changelogs in TOML format * All while capable of handling mono-repositories that consist of more than one Python project *--- Check out the* [*Getting started*](https://niklasrosenstein.github.io/slap/getting-started/) *page in the documentation to get a more in-depth look into what Slap can do for you. ---* **Slap seems similar to the Poetry CLI, what's different?** Some people might find this similar to tools like Poetry, and while there is some overlap in functionality, Slap is **not a build backend** and is more targeted towards library development. Most of my projects use Poetry as the build backend but I never even once interact with the Poetry CLI throughout the lifetime of the project. The most notable differences to Poetry are * Slap supports mono-repositories (i.e. multiple related Python projects in the same repository), to the extent that it bumps version numbers of project inter-dependencies and installs your projects in topological order * Slap supports development installs independent of the build backend (yes; this means you can install Poetry packages in editable mode even though the Poetry backend right now does not support editable installs) * Slap's version bump command (`slap release`) updates the version not just in your `pyproject.toml` but also the `__version__` in your source code as well as in related projects (see mono-repositories above) and any additional references you can configure via Regex patterns * Slap does not automagically create a virtual environment for you when installing your project(s); instead, it errors when you try to install into a non-virtual Python environment and gives you an easy-to-use tool to create and activate virtual environments (and allowing multiple environments per project as well as global environments) * Slap uses Pip to install your project(s), unlike Poetry which comes with its own dependency resolver and package installer (which I have been having a lot of issues with in the past). * Slap does not have a concept of lock files **Ideas / Suggestions / Contributions** Slap is currently very opinionated by the fact alone that I built it as my personal workflow tool, but I welcome suggestions and contributions, and I am hopeful it will be useful to a wider audience than myself. **Links** * Documentation: [https://niklasrosenstein.github.io/slap/](https://niklasrosenstein.github.io/slap/) * GitHub: [https://github.com/NiklasRosenstein/slap](https://github.com/NiklasRosenstein/slap) * PyPI: [https://pypi.org/project/slap-cli/](https://pypi.org/project/slap-cli/) **Edit**: I've added an in-depth [Getting started](https://niklasrosenstein.github.io/slap/getting-started/) guide to the documentation.
0.87
t3_tsgavg
1,648,669,463
Python
Python Tutorial - How to create a Screen Recorder using Python?
Hey Everyone! I created a short Python Tutorial explaining how I created a Screen Recorder using Python. [https://www.youtube.com/watch?v=449c5lsGKKw](https://www.youtube.com/watch?v=449c5lsGKKw) https://preview.redd.it/ro2g0wc5hkq81.png?width=2880&format=png&auto=webp&s=649c062e96554d29b4348c07eb076a767b3d929b
0.73
t3_tsdftv
1,648,666,101
Python
[GUI] DyCall - Run exported functions from dynamic libraries
nan
0.87
t3_tsdcn8
1,648,665,866
Python
I Created a Simple Pushup Counter Using Mediapipe Python
nan
0.78
t3_tsb1mf
1,648,659,632
Python
Any good Machine learning udemy courses ?
I recently took python course and I’m learning python I want to get into machine learning and ai is there any good udemy courses for this? I see an A-Z machine learning course but is it good ? If anyone has taken it can you tell me what it exactly teaches you or does it just skip important points thanks
0.63
t3_ts9m9n
1,648,655,819
Python
Scrape Google Scholar Metrics Results to CSV with Python
Full code: ```python import requests, lxml from bs4 import BeautifulSoup import pandas as pd def scrape_all_metrics_top_publications(): params = { "view_op": "top_venues", # top publications results "hl": "en" # or other lang: pt, sp, de, ru, fr, ja, ko, pl, uk, id } # https://docs.python-requests.org/en/master/user/quickstart/#custom-headers # whatismybrowser.com/detect/what-is-my-user-agent headers = { "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.88 Safari/537.36" } html = requests.get("https://scholar.google.com/citations", params=params, headers=headers, timeout=30) soup = BeautifulSoup(html.text, "lxml").find("table") df = pd.DataFrame(pd.read_html(str(soup))[0]) df.drop(df.columns[0], axis=1, inplace=True) df.insert(loc=2, column="h5-index link", value=[f'https://scholar.google.com/{link.a["href"]}' for link in soup.select(".gsc_mvt_t+ td")]) df.to_csv("google_scholar_metrics_top_publications.csv", index=False) # save to csv for specific language # df.to_csv(f"google_scholar_metrics_top_publications_lang_{params['hl']}.csv", index=False) def scrape_all_metrics_public_mandates(): params = { "view_op": "mandates_leaderboard", # public access mandates results "hl": "en" # or other lang: pt, sp, de, ru, fr, ja, ko, pl, uk, id } # https://docs.python-requests.org/en/master/user/quickstart/#custom-headers # whatismybrowser.com/detect/what-is-my-user-agent headers = { "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.88 Safari/537.36" } html = requests.get("https://scholar.google.com/citations", params=params, headers=headers, timeout=30) soup = BeautifulSoup(html.text, "lxml").find("table") df = pd.DataFrame(pd.read_html(str(soup))[0]) df.drop(df.columns[[0, 2]], axis=1, inplace=True) df.insert(loc=1, column="Funder Link", value=[link.a["href"] for link in soup.select("td.gsc_mlt_t")]) df.to_csv("google_scholar_metrics_public_access_mandates.csv", index=False) # save to csv for specific language # df.to_csv(f"google_scholar_metrics_public_access_mandates_lang_{params['hl']}.csv", index=False) ``` If you need an in-depth explanation, have a look at [Scrape Google Scholar Metrics Results to CSV with Python](https://serpapi.com/blog/scrape-google-scholar-metrics-results-to-csv-with-python/) blog post at SerpApi.
0.4
t3_ts9lzb
1,648,655,795
Python
Building a Full Stack Flask HTMx Application
nan
0.75
t3_ts8x51
1,648,653,894
Python
I created 80 Python and Pandas Challenges with Video Solutions
nan
0.88
t3_ts8hpw
1,648,652,727
Python
Transcribe Speech to Text with Python for Free
nan
0.69
t3_ts6whh
1,648,648,258
Python
What to expect from Python 3.11?
nan
0.95
t3_ts6idv
1,648,647,068
Python
GitLab Webhooks [Python and Google Chat Example]
nan
1
t3_ts66bz
1,648,646,050
Python
I made a video about efficient memory use in pandas dataframes!
nan
0.96
t3_ts5mmf
1,648,644,350
Python
Create a google account in Python
I would like to be able to create google account with a python script. I've try with Mechanize but nothing conclusive. Do you have any idea to how to do that ? I tried with the library Mechanize. I get the first form with: * FirstName * LastName * UserName * Password I submit it, but impossible to get the second form...
0.5
t3_ts5l04
1,648,644,210
Python
Python program to find day of any date.(Yes any! from 1000 AD - 9999 AD)
​ [Program in action!](https://preview.redd.it/5eorq0mfniq81.png?width=1484&format=png&auto=webp&s=426f40c1b36cd85844c3f1565b8906da58c404f2)
0.67
t3_ts5ij2
1,648,643,992
Python
ABCMeta library to limit derived classes their methods to follow the same signature as the parent
Python metaclass and abstract method library with restrictions. This library provides a restricted way to validate abstract methods. The Python's default abstract method library only validates the methods that exist in the derived classes and nothing else. What this library provides is apart from that validation it provides validations over the method's signature. All you need is to import ABCMeta and abstractmethod from this library. [https://github.com/mortymacs/abcmeta](https://github.com/mortymacs/abcmeta)
1
t3_ts4ooj
1,648,641,121
Python
Authoring Opportunity: Developing a Python book with Packt Publishing
Hi all, I am a Product Manager at Packt Publishing. Packt is a publishing company helping the world put software to work in new ways, through the delivery of effective learning and information services to IT professionals.  We are planning to publish a book on Python to address the challenges and requirements of the Python community. We are looking for an expert experienced Python developer who could share their valuable insights on the topic and collaborate with us in developing content for a book that we are planning to publish. If you feel you might be interested in this opportunity please send me a direct message on or before 7th April 2022. PS: Content development experience in terms of writing a blog or anything else is appreciated but not required.
0.43
t3_ts4caw
1,648,639,896
Python
br4nch 1.2.1 - Data Structure Tree Builder for Python.
***New patch released (1.2.1) that improves alot of features!*** ​ `br4nch` is created to provide an efficient implementation of tree data structure in ***Python***. ​ The **libary** is built on pure python so you don't need **ANY** other libaries. The amount of features are endless such as: **adding**, **deleting**, **renaming**, **moving**, **copying**, **painting**, **sizing**, **change symbols**, **importing folder structure**, **exporting to txt and br4nch file**, etc.. ​ *PyPi*: [https://pypi.org/project/br4nch/](https://pypi.org/project/br4nch/) *Documentation*: [https://docs.br4nch.com/](https://docs.br4nch.com/) *Github*: [https://github.com/TRSTN4/br4nch](https://github.com/TRSTN4/br4nch)
0.64
t3_ts4avc
1,648,639,752
Python
python dictionary comprehension
nan
0.67
t3_ts3lg7
1,648,637,091
Python
Do you have experience with stocks prices analysis?
I am about to start a hobby project, mainly for learning and curiosity. I want to analyze stocks data and try to learn some basic concepts about investing and machine learning. The flow should be following: \- Use some free API to get historic stocks data. \- Store data in the database (probably PostgreSQL hosted on Heroku). \- Train neural network to predict stocks prices (here, I have the biggest knowledge gap). \- Use some free API to get real-time stocks data. \- Store real-time data in the database. \- Compare predicted stocks prices with actual stock prices in BI tools like GoodData, or Looker. I know it is not rocket science, but as I said, my motivation is to learn something new. Before I start, I would like to ask you if you have experience with such a similar project and if there is something you might recommend to me.
0.71
t3_ts2ujz
1,648,633,956
Python
How to document python functions?
Link: [https://www.youtube.com/watch?v=fU6qB06rkz0](https://www.youtube.com/watch?v=fU6qB06rkz0)
0.44
t3_ts2t1f
1,648,633,755
Python
Froyo: A Python GUI utility for downloading works from Archive Of Our Own/AO3 (made in Python with Dear PyGui): a fast, responsive graphical user interface results in a user-friendly tool
​ [Froyo: A Python GUI utility for downloading works from Archive Of Our Own\/AO3 \(made in Python with Dear PyGui\): a fast, responsive and user-friendly tool](https://i.redd.it/xyrdfo9zahq81.gif) Froyo is a small graphical application for downloading works from Archive Of Our Own (AO3). It supports batch downloading of works to supported formats (AZW3, EPUB, HTML, MOBI, PDF). The app is small, fast and functional, a perfect fit for Dear PyGui. Not every app has to be complex. Sometimes a tool just needs to get the job done.
0.9
t3_ts1iat
1,648,627,758
Python
Programming languages: Python just got a boost from Facebook's Meta
nan
0.37
t3_ts1al4
1,648,626,768
Python
Understanding __init__ Method in Python
nan
0.76
t3_ts0cgt
1,648,622,580
Python
How do you define beginner, intermediate, and advanced?
These terms are used frequently, but many seem to often disagree on them. Could be used to describe a persons knowledge, competence, or the qualiry od code/codebase etc. I would say a beginner is just someone who is learning the actual language, syntax, just learning to code. Maybe touching on the common built-in libraries, learning classes, and basic OOP. Intermediate is past the syntax and basic concepts and is using libraries. Intermediate is a lot longer phase, I think. Intermediate is learning about programming concepts, practices, patterns, design, libraries, ... Advanced (again, in my perspective) is not a wizard who knows Python internals and corners of the python object model. It's someone who can create useful, well-structured programs from the ground up properly, using the right tools and libraries. Not just doing practice projects, but a larger product properly. Able to pretty much learn any technology needed for a project. What do you think? What do you disagree with?
0.92
t3_try32l
1,648,613,843
Python
ipyvizzu - create animated charts in Jupyter Notebook using Python with this open-source tool
Hey, We've built and released a new integration of our open-source charting library Vizzu. We hope this will help data scientists and analysts share their insights easier by utilizing animation for storytelling with data. We'd love to know what you think about it. More info, tutorial & examples: [https://github.com/vizzuhq/ipyvizzu](https://github.com/vizzuhq/ipyvizzu) Here's a short video illustrating how ipyvizzu works. https://reddit.com/link/trxyg5/video/j6rd94q6mcq81/player
0.56
t3_trxyg5
1,648,613,371
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_trtfcd
1,648,598,410
Python
Looking for tips
I made a program to try and simplify square root radicals with python. I would like to get some feedback and tips on how to write some better code. [https://github.com/Falt-b/simpliify-radicals](https://github.com/Falt-b/simpliify-radicals)
0.72
t3_trlofs
1,648,587,916
Python
I made a web-based Instagram bot that scrapes people's usernames and follows/unfollow them
​ https://reddit.com/link/tre7to/video/nf7rtqni9dq81/player
0.86
t3_tre7to
1,648,579,177
Python
Multi-threaded Omegle bot with proxy support and other neat features, like content spinning and typo generator.
[https://github.com/embium/Omeglebot](https://github.com/embium/Omeglebot) # Omeglebot Multi-threaded Omegle bot with proxy support and other neat features, like content spinning and typo generator. I'm not even sure it's possible to run without proxies. I could sell this but I rather release it publicly. This supported me financially for a few years. Enjoy.
0.76
t3_tre8z9
1,648,579,265
Python
pync - Netcat for Python
Hi, I've been reading Black Hat Python and decided to try and make a Netcat library for Python developers. It's not fully there yet (there's a few things I still need to do), but I thought I'd share it anyway in hopes that someone might find it useful. Anyway, here's the [GitHub repo](https://github.com/brenw0rth/pync) for the project if you're interested. Any feedback or criticism is welcome, thank you. 😊
0.83
t3_tre60y
1,648,579,046
Python
Tomorrow: a live 45-minutes session on the fundamentals of observability, OpenTelemetry, and distributed tracing in Python
Hi everyone, a quick reminder about the live OpenTelemetry and observability fundamentals session - in 2 days, Wednesday, March 30 at 11 AM PST. You will learn how to instrument your apps to capture traces with OpenTelemetry in Python. This session is at no cost and vendor-neutral. You can expect in this session: 45 minutes of core concepts, how to deploy it yourself hands-on + Q&A. If you are interested in observability, OpenTelemetry, and tracing - join! Register here [https://www.aspecto.io/get-started-with-opentelemetry/](https://www.aspecto.io/get-started-with-opentelemetry/?utm_source=post&utm_medium=reddit&utm_campaign=r-python-opentelemetry-workshop-pyhon-march-30-2022)
0.87
t3_tra9f1
1,648,574,859
Python
I built a real-time stock tracker using Python + Fast API, Alpaca, Next.js, and Redis Stack. Check it out!
nan
0.64
t3_tra4u1
1,648,574,515
Python
I love type annotations, so I made a quick tutorial on how to add types to Flask SQLAlchemy
nan
1
t3_tr9r9n
1,648,573,518
Python
IndiePython.com - content about indie projects using Python (specially gamedev)
Hello, I'd like to present a website ([indiepython.com](http://indiepython.com)) I created to publish content about my indie Python projects including apps and games. It is still a work in progress, but it already has a lot of content about projects I'll be releasing, including, for instance, a node editor to be released on June 2022 like you can see below. My apps and their source code are free of charge and will be released to the public domain, both on github and pypi (can be installed via "pip install" command). [Nodezator \(node editor to be released on June 2022 to the public domain\)](https://reddit.com/link/tr5l1q/video/qfelxkvcicq81/player) It should feature other content like tutorials/articles as well in the future. Thanks for your time.
0.6
t3_tr5l1q
1,648,569,821
Python
If a person posts Python code to Amazon Web Services can it run all the normal Python libraries? I was thinking to a greater extent about moviepy.editor.
If a person posts Python code to Amazon Web Services can it run all the normal Python libraries? I was thinking to a greater extent about moviepy.editor.
0.5
t3_tr43cm
1,648,566,871
Python
Boss told me to learn python.
Got told I need to learn python from my boss, where should I start? Codeacademy? Like how they are teaching you there. But how good is it? Better places to learn? *Edit* My boss wants me to learn to program for robots and different task for automation of tasks. He told me I should learn the basics and then more about that field. Thinking something like making bots should be a good project? Current knowledge is Visual Basic some years ago.
0.85
t3_tr31rs
1,648,566,271
Python
Garmin Connect File Manager
Hey everyone, I put together [this project](https://github.com/lucas-nelson-uiuc/garmin-connect-file-manager/tree/main) to help me store (and, in the future, analyze) activities recorded on my Garmin to my local computer. It builds off the popular [gcexport](https://github.com/kjkjava/garmin-connect-export) repo with additional functionality including summary/geographical data extraction as well as activity-based sorting. Feel free to look things over if you're looking to critique someone's code today and/or implement this in your Garmin data backup routine.
0.78
t3_tr2oml
1,648,566,073
Python
Pagination for a User-Friendly Django App – Real Python
nan
1
t3_tr1m2y
1,648,564,625
Python
Loading config from the environment in Quart & Flask
nan
1
t3_tqz50j
1,648,558,577
Python
What is a Lambda function and its applications in Python
In this short article, I'm gonna explain Python's lambda functions in detail. A lambda function is a small anonymous function that can take any number of arguments but can only have one expression. Here is its syntax: **lambda arguments : expression** The expression is executed and the result is returned. ## Example: Add 10 to argument a, and return the result: x = lambda a : a + 10 print(x(5)) The result would be 15. (You could try this in a python IDE such as vs code) ========================================================================= Lambda functions can take any number of arguments: ## Example: Multiply argument a with argument b and return the result: x = lambda a, b : a * b print(x(5, 6)) The result would be 30. ========================================================================= **Why Use Lambda Functions?** The power of lambda is better shown when you use them as an anonymous function inside another function. Say you have a function definition that takes one argument, and that argument will be multiplied by an unknown number: def myfunc(n): return lambda a : a * n Use that function definition to make a function that always doubles the number you send in: ## Example: def myfunc(n): return lambda a : a * n mydoubler = myfunc(2) print(mydoubler(11)) The result would be 22. ========================================================================= Use lambda functions when an anonymous function is required for a short period of time. If you would like to watch the video version of this tutorial, you could click on the following link: [https://www.youtube.com/watch?v=DGUl5Uwz3g8](https://www.youtube.com/watch?v=DGUl5Uwz3g8) **#python** **#pythonlambda** **#lambdafunction**
0.4
t3_tqyil5
1,648,556,436
Python
My first coding project: Twitter Plays Wordle
After starting my coding journey 3 months ago, I've finally made something that isn't a terminal calculator app :0 So I made [Twitter Plays Wordle](https://twitter.com/WordleGame_Bot) ([github](https://github.com/afnzmn/twitter-plays-wordle)), a twitter bot that uses replies to its tweet as guesses for a Wordle game. The bot first checks if it's a fresh game. If yes, it tweets a blank Wordle grid. If it isn't, then it searches for the replies to its newest tweet, and checks to see if it has a guess in it. This can either be a reply with just a five letter word, or a five letter \[guess\] contained in square brackets. It adds this to a replies.csv. Then, it sorts the guesses by the likes, and uses the most liked valid reply as the guess. It then plugs the guess into a Wordle function, which just runs an algorithm for detecting what coloured square goes where, and adding it to a list. The list then gets joined and pushed out with other Wordle things for the Twitter bot to tweet. Finally, it adds the Wordle grid into a text file, and updates a csv on the current row position, the word number, and the win state to be used for the next tweet. If you want to play it, here's the most [recent tweet](https://twitter.com/WordleGame_Bot/status/1508769809550434309) Currently, I'm just running this on my old laptop since I can't really buy a hosting service, and iirc Heroku wouldn't run for the entire month with its free plan. If someone has an alternative, please let me know! (also if you wanna roast my code, you're welcome to do so)
0.75
t3_tqxx94
1,648,554,369
Python
The history of performing functions in Django
A question from a beginner. The [article](https://russianblogs.com/article/45611627794/) discusses what happens after the command is called *manage.p**y runserver* Is there any way to see this in the form of a "log" or similar functionality, not only after calling this particular command, but also after any actions, for example, in the admin panel, etc.?
1
t3_tqxkg9
1,648,553,092
Python
Sourcepy: source python files straight from the shell
Hey folks, sharing a project I built just for fun, Sourcepy: [https://github.com/dchevell/sourcepy](https://github.com/dchevell/sourcepy) I was writing some increasingly messy shell functions and thought it would be nice if I could just write Python functions/variables/etc. instead and source them from the shell. So … that's what this is. It uses a mix of importlib and inspect machinery to "source" files (in reality, generating shell stubs that hook back into a bridging interface, and aliasing \`source\` so it works just like you’d expect). Along the way I ended up deep diving into type annotations and turning plain python functions into dynamic command line apps that can coerce to native values, handle stdin, work with a large variety of types & objects and do a number of other interesting things - all without your code having to know a thing about Sourcepy. You write plain old python functions, add typehints to the parameters for the best results, and in most cases it should "just work".\* This is still a work in progress - its use case is largely for folks like me who like excuses to mess around in Python and customise their environment and toolset to an unnecessary degree. Try it out, share any suggestions (or bugs, or criticism). I've poked around looking for similar projects and the only similar thing I could find required running a daemon which wasn't an approach I liked, so hopefully you'll find some novelty here. ^(\*not a guarantee)
0.95
t3_tqwyrh
1,648,550,680
Python
Actual unique fun project ideas: Beginner | Intermediate | Advanced
Beginner: - Write a python function that creates 10 folders numbered 1-10 (hint: use context managers) - Using PILLOW, generate simple white noise images by randomly toggling individual pixel Colours between black and white in an MxN image (hint: use nested for loops) - Write a script that prints “Hello World” in red coloured text in the terminal. (hint: look up ANSI escape codes and run this script in the terminal) - Create a virtual environment with the built in venv library. Activate this environment. pip install pandas. Confirm the install with pip ls. pip uninstall pandas. (hint: you’ll learn about environments) Intermediate: - Using PILLOW, again generate simple white noise images, but this time by randomly toggling individual pixel Colours between any possible RGB value in an MxN image (hint: use nested for loops) - Create a python decorator to run any function you define in an infinite loop (hint: @) - Write a script that can simply parse large json files (1GB+) (hint: you’ll learn about memory management and memory allocation errors) - Create a bare minimum Flask app to convert temperatures (F to C) - no CSS. (You’ll learn a bit about packages and HTML) - Create a Bash Makefile.sh that automates the creation and activation of a virtual environment, and also pip installs pandas. Run this bash file. (hint: assumes Linux) Advanced: - Using PILLOW and any coloured image as INPUT, write an algorithm that gradually decreases the brightness of an image radially towards the centre pixel - Create a bare minimum python based inverted index (like Elasticsearch) (hint: you’ll learn about Classes, NLP, and basic algorithms) - Create a Selenium bot to enter random characters into any <input> HTML element on any website (hint: learn about “inspect element” in the browser)
0.9
t3_tqvytp
1,648,546,376
Python
EXPENSE-TRACKER -> An application to keep your expenses organized
Hey all, few days ago, I have made a post of making an expense tracker - [here](https://www.reddit.com/r/Python/comments/slbhbi/expensetracker_an_application_to_keep_your/). And you all have helped me improving it. Thanks to all. # MODIFICATION SO, I thought to change the entire project into a package which can be used by installing it through pip. First of all, I change the code structure to classes and objects. then add one decent functionality - Currency converter Previously, to show the expenses more clearly I use graphs. Now, I made another option of changing the currency of your expenses and compare it from the previous. Here, I have used tan API. # INSTALLATION AND CODE You can see the code as usual on github - [here](https://github.com/Shreejan-35/EXPENSE-TRACKER). Here you can get all information. You can install it using pip by the following ways - ``` pip install expense-tracker ``` OR ``` pip3 install exprense-tracker ``` Then run, ``` expense-tracker ``` I was lucky that no one has till now taken **expense-tracker** as a name. That's all to say. You can follow me on instagram - [@star_cyber_warrior](https://www.instagram.com/star_cyber_warrior/)
0.57
t3_tqvrl9
1,648,545,457
Python
How To Hire a Python Web Development Company for Your Project?
nan
0.14
t3_tqv3v9
1,648,542,428
Python
Top 10 Python Data Science Projects with Source Code
nan
0.71
t3_tqu35m
1,648,537,849
Python
I'm presenting live in 9 hours at Microsoft Reactor online about Python and Kubernetes. Let me know your questions in advance
nan
0.86
t3_tqta40
1,648,534,367
Python
My python git binding
hi, i know there are already great python library for git. but i need simple library and working with all git & python 3 version, so i made this binding [https://github.com/guangrei/Gitpybinding](https://github.com/guangrei/Gitpybinding) glad to hear your thoughts 🙏
0.79
t3_tqolbm
1,648,517,515
Python
First Full Stack, Mobile Friendly App (Flask)
Yet To Be Named Poll Based Matching App: [http://54.198.186.121:8080/](http://54.198.186.121:8080/) I was listening to a podcast at a company I want to work for and the host was talking about this idea for an app. I ended up building it to get my foot in the door and build out my project portfolio. This is my first production deployment ever. I'd like to get a little foot-traffic and feedback which is what brings me here. Currently, signup is required to view anything, however, user authentication is by the book using various flask based modules so all sensitive user data is encrypted. I think it's a tremendous example of what python is capable of. The whole app is 500ish python lines coupled with a few HTML pages, SQL queries, and a CSS stylesheet. With that said, I encourage you to sign up, and either make or take a poll. All feedback is welcome in the comments!
1
t3_tqn48r
1,648,512,727
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.67
t3_tqmvv4
1,648,512,009
Python
Question: best ways to build Python command line utilities
I have two medium size (less than 1000 lines each) code bases that I would like to make into two command line utilities. Two obvious approaches are: 1. Add a \_\_main\_\_.py file and a [setup.py](https://setup.py) to a module, and do a python [setup.ps](https://setup.ps) install 2. Copy all source files into a single Python source file that starts with *#!/usr/bin/env python, and put script in PATH.* To complicate matters, I use several different condo environments that I switch between. Is there an accepted best practice for this?
0.67
t3_tqgwm3
1,648,494,868
Python
ONNX to PyTorch
We have released our Python Open Source tool for conversion ONNX models to PyTorch. Almost all Computer Vision neural networks architectures are supported. Please try it. [https://github.com/ENOT-AutoDL/onnx2torch](https://github.com/ENOT-AutoDL/onnx2torch?fbclid=IwAR1HpWxialVy-ILdHUYR8CJ_EsUyxbjhrMkZbWPWkQ0DuNuwvYDEpNVuhqc) I ask the Data Science community to support the project with a star on GitHub.
0.89
t3_tqgjsk
1,648,493,932
Python
Software Engineering Tools and Best Practices for Data Science
nan
0.5
t3_tqfr47
1,648,491,771
Python
A zoo for decorators
Hello there! First time posting here :) Last week I worked on a small python library and wanted to share it! Reason for the library is that I found myself copy-pasting some python decorators over and over across multiple projects. Library is called deczoo (a zoo for decorators) and it's pip-installable. docs: [https://fbruzzesi.github.io/deczoo/](https://fbruzzesi.github.io/deczoo/) repo: [https://github.com/FBruzzesi/deczoo](https://github.com/FBruzzesi/deczoo)
0.5
t3_tqefp4
1,648,488,239