PEP 699: Remove private dict version field added in PEP 509
PEP 509 introduced a private ma_version_tag field for dictionaries to allow optimizations in CPython and extension libraries. This PEP proposes to rescind PEP 509 and declare the field an implementation detail, as it has already been superseded by alternatives. This will further allow the field to be reused for future optimization. ⌘ Read more
@carsten@yarn.zn80.net I have the same problem, at work I work with c÷÷, c#, java, python and qt. I want to learn more rust, but its a pain to get into.
PEP 698: Override Decorator for Static Typing
This PEP proposes adding an @override decorator to the Python type system. This will allow type checkers to prevent a class of bugs that occur when a base class changes methods that are inherited by derived classes. ⌘ Read more
How to Develop and Deploy a Customer Churn Prediction Model Using Python, Streamlit, and Docker
Customer churn is a million-dollar problem for businesses today. The SaaS market is becoming increasingly saturated, and customers can choose from plenty of providers. Retention and nurturing are challenging. Online businesses view customers as churn when they stop purchasing goods and services. Customer churn can depend on industry-specific factors, y … ⌘ Read more
PEP 697: C API for Extending Opaque Types
Add limited C API for extending types whose struct is opaque, by allowing code to only deal with data specific to a particular (sub)class. ⌘ Read more
@prologic@twtxt.net Error handling especially in Go is very tricky I think. Even though the idea is simple, it’s fairly hard to actually implement and use in a meaningful way in my opinion. All this error wrapping or the lack of it and checking whether some specific error occurred is a mess. errors.As(…) just doesn’t feel natural. errors.Is(…) only just. I mainly avoided it. Yesterday evening I actually researched a bit about that and found this article on errors with Go 1.13. It shed a little bit of light, but I still have a long way to go, I reckon.
We tried several things but haven’t found the holy grail. Currently, we have a mix of different styles, but nothing feels really right. And having plenty of different approaches also doesn’t help, that’s right. I agree, error messages often end up getting wrapped way too much with useless information. We haven’t found a solution yet. We just noticed that it kind of depends on the exact circumstances, sometimes the caller should add more information, sometimes it’s better if the callee already includes what it was supposed to do.
To experiment and get a feel for yesterday’s research results I tried myself on the combined log parser and how to signal three different errors. I’m not happy with it. Any feedback is highly appreciated. The idea is to let the caller check (not implemented yet) whether a specific error occurred. That means I have to define some dedicated errors upfront (ErrInvalidFormat, ErrInvalidStatusCode, ErrInvalidSentBytes) that can be used in the err == ErrInvalidFormat or probably more correct errors.Is(err, ErrInvalidFormat) check at the caller.
All three errors define separate error categories and are created using errors.New(…). But for the invalid status code and invalid sent bytes cases I want to include more detail, the actual invalid number that is. Since these errors are already predefined, I cannot add this dynamic information to them. So I would need to wrap them à la fmt.Errorf("invalid sent bytes '%s': %w", sentBytes, ErrInvalidSentBytes"). Yet, the ErrInvalidSentBytes is wrapped and can be asserted later on using errors.Is(err, ErrInvalidSentBytes), but the big problem is that the message is repeated. I don’t want that!
Having a Python and Java background, exception hierarchies are a well understood concept I’m trying to use here. While typing this long message it occurs to me that this is probably the issue here. Anyways, I thought, I just create a ParseError type, that can hold a custom message and some causing error (one of the three ErrInvalid* above). The custom message is then returned at Error() and the wrapped cause will be matched in Is(…). I then just return a ParseError{fmt.Sprintf("invalid sent bytes '%s'", sentBytes), ErrInvalidSentBytes}, but that looks super weird.
I probably need to scrap the “parent error” ParseError and make all three “suberrors” three dedicated error types implementing Error() string methods where I create a useful error messages. Then the caller probably could just errors.Is(err, InvalidSentBytesError{}). But creating an instance of the InvalidSentBytesError type only to check for such an error category just does feel wrong to me. However, it might be the way to do this. I don’t know. To be tried. Opinions, anyone? Implementing a whole new type is some effort, that I want to avoid.
Alternatively just one ParseError containing an error kind enumeration for InvalidFormat and friends could be used. Also seen that pattern before. But that would then require the much more verbose var parseError ParseError; if errors.As(err, &parseError) && parseError.Kind == InvalidSentBytes { … } or something like that. Far from elegant in my eyes.
Scratch? Python? C? Kernighan on Languages for Kids Coding - Computerphile ⌘ Read more
PEP 696: Type defaults for TypeVarLikes
This PEP introduces the concept of type defaults for TypeVarLikes (TypeVar, ParamSpec and TypeVarTuple), which act as defaults for a type parameter when none is specified. ⌘ Read more
@prologic@twtxt.net: 1. I use classic twtxt client written in Python from console, I like simplicity; 2. Thanks for the feedback about my website! It’s better viewed with old 800x600 monitors, haha
TheKingElessar/iDeemYouWorthy
Sync your local music library with your Spotify playlists
Language: Python
Star: 14
Watch: 14 ⌘ Read more
the-spatializer/instagram-follower-scraper
Scrap Instagram Follower, detect accounts you follow, accounts that follow you, accounts that follow you but you don’t follow back, accounts you follow but don’t follow you back using python
Language: Python
Star: 1
Watch: 1 ⌘ Read more
the-spatializer/qr-code-generator
A program to create your own qr code. You can add a logo in the middle.
Language: Python
Star: 1
Watch: 1 ⌘ Read more
jerrykhh/ig_follower
Instagram follower to CSV and auto-follow
Language: Python
Star: 7
Watch: 7 ⌘ Read more
adw0rd/instagrapi
🔥 The fastest and powerful Python library for Instagram Private API 2022
Language: Python
Star: 1022
Watch: 1022 ⌘ Read more
A new “Pokemon”-type game for the Command Line
Available for Linux, Windows, and macOS. All written in Python. ⌘ Read more
borisdayma/dalle-mini
DALL·E Mini - Generate images from a text prompt
Language: Python
Star: 4442
Watch: 4442 ⌘ Read more
Re-AOL: A reverse-engineered AOL 3.0 server written in Python
Because… who doesn’t want to use AOL 3.0 for Windows 3.1 in 2022? ⌘ Read more
PEP 693: Python 3.12 Release Schedule
This document describes the development and release schedule for Python 3.12. The schedule primarily concerns itself with PEP-sized items. ⌘ Read more
NicholasDawson/TikTok-Video-Downloader
A tool that downloads all videos of a users profile.
Language: Python
Star: 4
Watch: 4 ⌘ Read more
CuriousYoda/tiktok-downloader
Downloads TikTok videos for a given user without water marks
Language: Python
Star: 10
Watch: 10 ⌘ Read more
krypton-byte/tiktok-downloader
Tiktok Downloader/Scraper using requests & bs4
Language: Python
Star: 64
Watch: 64 ⌘ Read more
xtekky/TikTok-Comment-Scraper
Get all comments of a video and filter them | Show Likes etc…
Language: Python
Star: 3
Watch: 3 ⌘ Read more
PEP 691: JSON-based Simple API for Python Package Indexes
The “Simple Repository API” that was defined in PEP 503 (and was in use much longer than that) has served us reasonably well for a very long time. However, the reliance on using HTML as the data exchange mechanism has several shortcomings. ⌘ Read more
have to admit that switching to python & numpy for data analysis from klong relieves me from a huge pain in the ass—klong is just slow for that.
PEP 690: Lazy Imports
This PEP proposes a feature to transparently defer the execution of imported modules until the moment when an imported object is used. Since Python programs commonly import many more modules than a single invocation of the program is likely to use in practice, lazy imports can greatly reduce the overall number of modules loaded, improving startup time and memory usage. Lazy imports also mostly eliminate the risk of import cycles. ⌘ Read more
inteoryx/twitter-video-dl
Download twitter videos as mp4 files
Language: Python
Star: 19
Watch: 19 ⌘ Read more
f-rog/twitter2mp4
twitter2mp4 its a tool to download videos from Twitter. Needless of ffmpeg.
Language: Python
Star: 19
Watch: 19 ⌘ Read more
PEP 688: Making the buffer protocol accessible in Python
This PEP proposes a mechanism for Python code to inspect whether a type supports the C-level buffer protocol. This allows type checkers to evaluate whether objects implement the protocol. ⌘ Read more
PEP 687: Isolating modules in the standard library
Extensions in the standard library will be converted to multi-phase initialization (PEP 489) and where possible, all state will be stored on module objects rather than in process-global variables. ⌘ Read more
I’ve made some fixes to twtxt to make it work with Python 3.7+. I hope @buckket@buckket.org will apply this patch!
PEP 686: Make UTF-8 mode default
This PEP proposes enabling UTF-8 mode by default. ⌘ Read more
PEP 685: Comparison of extra names for optional distribution dependencies
This PEP specifies how to normalize distribution _extra_
names when performing comparisons.
This prevents tools from either failing to find an extra name or
accidentally matching against an unexpected name. ⌘ Read more
athelia/unfold-wardrobe-manager
Rediscover joy in your closet. Catalog & choose what to wear with personalized outfit recommendations from your wardrobe.
Language: Python
Star: 16
Watch: 16 ⌘ Read more
janetanne/outfitless
Web application for organizing your closet and keeping track of your wardrobe, as well as picking your outfit for the day. Uses Google Oauth to register for an account/sign in and Clarifai API to process images.
Language: Python
Star: 3
Watch: 3 ⌘ Read more
TheComeUpCode/WardrobeApp
An app that automates your closet and generates an outfit.
Language: Python
Star: 71
Watch: 71 ⌘ Read more
LuisMayo/video-splitter
Simple Python script to split video into equal length chunks or chunks of equal size, duration, etc.
Language: Python
Star: 1
Watch: 1 ⌘ Read more
LuisMayo/ace-attorney-twitter-bot
Twitter bot that turns comment chains into ace attorney scenes. Inspired by and using https://github.com/micah5/ace-attorney-reddit-bot
Language: Python
Star: 407
Watch: 407 ⌘ Read more
PEP 683: Immortal Objects, Using a Fixed Refcount
Under this proposal, any object may be marked as immortal.
“Immortal” means the object will never be cleaned up (at least until
runtime finalization). Specifically, the refcount for an immortal
object is set to a sentinel value, and that refcount is never changed
by Py_INCREF(), Py_DECREF(), or Py_SET_REFCNT().
For immortal containers, the PyGC_Head is never
changed by the garbage collector. ⌘ Read more
PEP 682: Format Specifier for Signed Zero
Though float and Decimal types can represent signed zero, in many
fields of mathematics negative zero is surprising or unwanted – especially
in the context of displaying an (often rounded) numerical result. This PEP
proposes an extension to the string format specification allowing negative
zero to be normalized to positive zero. ⌘ Read more
medialab/gazouilloire
Twitter stream + search API grabber
Language: Python
Star: 68
Watch: 68 ⌘ Read more
QUT-Digital-Observatory/tidy_tweet
Tidies Twitter json collected with Twarc into relational tables.
Language: Python
Star: 1
Watch: 1 ⌘ Read more
tallesl/py-pic2tweet
Tweets the image files of the current directory and then deletes them.
Language: Python
Star: 1
Watch: 1 ⌘ Read more
otapi/Backup2Cloud
Backup specific folders and upload to a cloud provider. The uploaded files are 7zipped and encrypted locally. Uploads only those packages which were changed since last backup.
Language: Python
Star: 1
Watch: 1 ⌘ Read more
Ze1598/quotespy
Python library to create quotes/lyrics and tweet graphics with PIL.
Language: HTML
Star: 2
Watch: 2 ⌘ Read more
Naereen/generate-word-cloud.py
🐍 A simple Python (2 or 3) script to generate a PNG word-cloud ☁️ image from a bunch of 📂 text files 🎉. Based on word_cloud by @amueller.
Language: Python
Star: 18
Watch: 18 ⌘ Read more
AdriaPadilla/Tweetloader
Download tweets from user accounts
Language: Python
Star: 4
Watch: 4 ⌘ Read more
lianogueira/pytwanalysis
A tool to gather, discover, and analyze Twitter data using a combination of graph-clustering and topic modeling techniques with the goal of semantically grouping tweet messages together.
Language: Python
Star: 3
Watch: 3 ⌘ Read more
saeedesmaili/better-twitter
A simple python tool that makes your Twitter timeline much better.
Language: Python
Star: 11
Watch: 11 ⌘ Read more
gutfeeling/word_forms
Accurately generate all possible forms of an English word e.g “election” –> “elect”, “electoral”, “electorate” etc.
Language: Python
Star: 517
Watch: 517 ⌘ Read more
bradmontgomery/word2html
a quick and dirty script to convert a Word (docx) document to html.
Language: Python
Star: 47
Watch: 47 ⌘ Read more
itzmeanjan/twiz
Your Twitter Account Data Analysis & Visualization Tool <3
Language: Python
Star: 4
Watch: 4 ⌘ Read more
dilpreetsio/tweet2story
Create beautiful stories from tweets 🐦
Language: Python
Star: 2
Watch: 2 ⌘ Read more
Xacnio/tweetcapture
A Tweet Screenshot Tool/API (Python)
Language: Python
Star: 4
Watch: 4 ⌘ Read more
oliviersm199/Tweet-Generator
The Tweet Generator uses a Markov chain to generate random tweet based off of past tweets. It uses Python and the Twitter API to obtain the last 200 tweets from a particular user, organizes them into a JSON tree structure and then executes a random walk on that tree structure. This results in sometimes hilarious sometimes nonsense tweets that mimic the Twitter user’s past tweets.
Language: Py … ⌘ Read more
Benedict-Carling/spanish-conjugator
A python library to conjugate spanish words with parameters tense, mood and pronoun
Language: Python
Star: 9
Watch: 9 ⌘ Read more
kanzure/pdfparanoia
pdf watermark removal library for academic papers
Language: Python
Star: 422
Watch: 422 ⌘ Read more
I feel like it took me a bit longer to fully understand how to work in Smalltalk than it did most languages. The IDE is different than anything I’ve used before, and probably anything you’ve seen as well. You’re not going to be opening myscript.st in your favorite text editor, and then run it from the command line as you would a Python program. It takes a little mental adjustment to start with.
That’s not the warning, howe … ⌘ Read more
PEP 679: Allow parentheses in assert statements
This pep proposes to allow parentheses surrounding the two-subject form of
assert statements. This will cause the interpreter to reinterpret what before
would have been an assert with a two-element tuple that will always be True
(assert (expression, message)) to an assert statement with a subject and a
failure message, equivalent to the statement with the parentheses removed
(assert expression, message). ⌘ Read more
GoCN 每日新闻(2021-12-25)
- Python 在 Go 中的双向嵌入https://github.com/tliron/py4go
- golang 实的 xmpp 服务 jackal v0.55.0https://github.com/ortuman/jackal
- Go 有哪几种无法恢复的致命场景? https://mp.weixin.qq.com/s/gSfzrSKYbZTP8COz4lZKHQ
- 必看!6 步入门 Gohttps://mp.weixin.qq.com/s/DRpmh41dGAfzSOMsvwy8wA
- … ⌘ Read more
PEP 678: Enriching Exceptions with Notes
Exception objects are typically initialized with a message that describes the
error which has occurred. Because further information may be available when the
exception is caught and re-raised, this PEP proposes to add a .__note__
attribute and update the builtin traceback formatting code to include it in
the formatted traceback following the exception string. ⌘ Read more
蚂蚁 - 可信原生技术部 - 专用编程语言设计研发 (杭州 P7-8)
工作内容- 从事云原生配置策略语言的设计研发工作,服务云原生基础设施管理场景
- 从事区块链智能合约专用编程语言的设计及研发工作,服务区块链链智能合约场景
- 深度参与开源社区项目
- 熟练掌握 rust、golang、c/c++、java、python 中的一种或多种
- 熟悉现代编程语言设计理念、技术及研发体系,熟悉编译技术�� … ⌘ Read more
高性能中文分词库 gojieba
gojieba 是什么?gojieba 是 Python 知名分词库结巴 jieba 的 Go 语言实现版本,底层分词算法由 C++ 实现,具备很高的性能; gojieba 解决了在做文本分析,文本搜索相关业务功能时的分词需求。
gojieba 支持多种分词方式:
- 全模式:把文本中所有可能的� … ⌘ Read more
PEP 677: Callable Type Syntax
This PEP introduces a concise and friendly syntax for callable types,
supporting the same functionality as typing.Callable but with an
arrow syntax inspired by the syntax for typed function
signatures. This allows types like Callable[[int, str], bool] to
be written (int, str) -> bool. ⌘ Read more
Precise code navigation for Python, and code navigation in pull requests
Code navigation is now available in PRs, and code navigation results for Python are now more precise. ⌘ Read more
Today I learned that there is a new version 2 of Docker Compose. Docker Compose is now no longer a Python app, but a CLI plugin for Docker written in Go. And there is a Compose specification. ⌘ Read more
PEP 674: Disallow using macros as l-value
Incompatible C API change disallowing using macros as l-value to allow
evolving CPython internals and to ease the C API implementation on other
Python implementation. ⌘ Read more
@lyse@lyse.isobeef.org I’m a big fan of using PyCharm and IntelliJ on large Python and Java codebases respectively. In my personal life, I mostly use Emacs (because I don’t hack much Java outside of work), but I do wonder what GoLand is like.
JavaScript : web apps
wut?! 😳 seriously?! 🤦♂️
Python : small tools
Okay 👌
Go: micro services
Umm bad generalization 🤣 – Example yarnd that powers most of Yarn.social 😂
Java: enterprise software
Yes! Oh gawd yes! 🤣 And Java™ needs to die a swift death!
C: crimes
Hmmm? 🤔 I feel this one is going to have some backslash and/or go the way of “Hacker” being misconstrued to mean entirely different/incorrect things as is what’s happening in the media (for various definitions of “media”).
PEP 673: Self Type
This PEP introduces a simple and intuitive way to annotate methods that return
an instance of their class. This behaves the same as the TypeVar-based
approach specified in PEP 484
but is more concise and easier to follow. ⌘ Read more
mgmacias95/TwitterFriends
Django app that makes a graph dataset with your friends on twitter
Language: Python
Star: 26
Watch: 26 ⌘ Read more
eleurent/twitter-graph
Fetch and visualize the graph of your Twitter friends and followers.
Language: Python
Star: 99
Watch: 99 ⌘ Read more
gobborg/twitter-mutuals
figure out who your twitter mutuals are using tweepy python
Language: Python
Star: 1
Watch: 1 ⌘ Read more
Mohamed3on/TwitterNetwork
Finds the Twitter accounts that have the most mutual friends with you. A better alternative to Twitter’s recommendation algorithm.
Language: Python
Star: 6
Watch: 6 ⌘ Read more
berkay-dincer/mutual-followers
Allows you to discover the mutual friends of twitter accounts.
Language: Python
Star: 3
Watch: 3 ⌘ Read more
ejmg/help-why-cant-i-hold-all-these-mutuals
find all your mutuals and throw them on a list so you can all be miserable together on twitter dot com
Language: Python
Star: 135
Watch: 135 ⌘ Read more
PEP 672: Unicode-related Security Considerations for Python
This document explains possible ways to misuse Unicode to write Python
programs that appear to do something else than they actually do. ⌘ Read more
PEP 671: Syntax for late-bound function argument defaults
Function parameters can have default values which are calculated during
function definition and saved. This proposal introduces a new form of
argument default, defined by an expression to be evaluated at function
call time. ⌘ Read more
PEP 670: Convert macros to functions in the Python C API
Convert macros to static inline functions or regular functions. ⌘ Read more
@movq@www.uninformativ.de I would not mind keeping a diff, if you tell me where to make the changes! I know nothing of Python, and I have spent already a couple of hours trying to make sense. I know it is there, in front of me, if only I knew Python. 😩
PEP 8103: 2022 Term steering council election
This document describes the schedule and other details of the December
2021 election for the Python steering council, as specified in
PEP 13. This is the steering council election for the 2022 term
(i.e. Python 3.11). ⌘ Read more
python 程式中的 sys.path 會自動隨 python 執行檔的所在位置改變而改變。這是好是壞呢…
PEP 665: Specifying Installation Requirements for Python Projects ⌘ Read more…
PEP 664: Python 3.11 Release Schedule ⌘ Read more…
Python is the second-best language for everything.
Really cool collection of Python Programming Tutorials ⌘ Read more…
PEP 661: Sentinel Values ⌘ Read more…
PEP 658: Static Distribution Metadata in the Simple Repository API ⌘ Read more…
PEP 657: Include Fine Grained Error Locations in Tracebacks ⌘ Read more…
Video: How to Dockerize a Python App with FastAPI ⌘ Read more…
PEP 656: Platform Tag for Linux Distributions Using Musl ⌘ Read more…
Guest Post: Calling the Docker CLI from Python with Python-on-whales ⌘ Read more…
@lyse@lyse.isobeef.org (#hut4mnq) I am so sorry for you. I left my Java job for Go. Though through “restructuring” its become a Python job.
@lyse@lyse.isobeef.org (#hut4mnq) I am so sorry for you. I left my Java job for Go. Though through “restructuring” its become a Python job.
PEP 654: Exception Groups and except* ⌘ Read more…
How Developers Can Get Started with Python and Docker ⌘ Read more…
PEP 652: Maintaining the Stable ABI ⌘ Read more…
Upgrading the MacPorts packages on my 2009 Mac Mini via ‘port upgrade outdated’, mostly to get Python 3 > 3.6 and be able to run the current jrnl program #cli #macos