Bookmark
Python Practical Package Packing 2024
https://matt.sh/python-project-structure-2024, posted 19 Jul by peter in development howto python reference toread
requirements.txt
(or “requirements insetup()
call”) is not a valid way to manage dependencies — and it hasn’t been for the past 5+ years. If you are still usingrequirements.txt
it shows you need professional help. luckily, i’m a professional.Let’s go over some bad / good / example practices for living your best python life in 2024.
Bookmark
Python API - LLM
https://llm.datasette.io/en/stable/python-api.html, posted Jul '23 by peter in ai development free python software
LLM provides a Python API for executing prompts, in addition to the command-line interface.
[...]
To run a prompt against the
gpt-3.5-turbo
model, run this:import llm model = llm.get_model("gpt-3.5-turbo") model.key = 'YOUR_API_KEY_HERE' response = model.prompt("Five surprising names for a pet pelican") print(response.text())
Bookmark
lucidrains/deep-daze: Simple command line tool for text to image generation
https://github.com/lucidrains/deep-daze, posted 2021 by peter in ai free graphics opensource python software
Bookmark
GitHub - mistio/mist.io: mist.io is an open platform for managing heterogeneous infrastructures
https://github.com/mistio/mist.io, posted 2016 by peter in development free management opensource python software virtualization
Mist.io helps you manage and monitor your virtual machines, across different clouds, using any device that can access the web.
Bookmark
Locust - A modern load testing framework
locust.io/, posted 2015 by peter in free opensource performance python software testing
Define user behaviour with Python code, and swarm your system with millions of simultaneous users.
Bookmark
Rewriting Reddit (Aaron Swartz's Raw Thought)
www.aaronsw.com/weblog/rewritingreddit, posted 2014 by peter in development framework opinion python toread
Python, on the other hand, has problems of its own. The biggest is that it has dozens of web application frameworks, but none of them are any good. Pythonists are well aware of the first part but apparently not of the second, since when I tell them that I’m using my own library, the universal response is “I don’t think Python needs another web application framework”. Yes, Python needs fewer web application frameworks. But it also needs one that doesn’t suck.
Bookmark
wooorm/franc
https://github.com/wooorm/franc, posted 2014 by peter in development free language nlp opensource python software
Detect the language of text.
Bookmark
Who has the best package manager? Part one
perltricks.com/article/110/2014/8/21/Who-has-the-best-package-manager--Part-one, posted 2014 by peter in development javascript perl php python review ruby
Every major language has thousands of libraries which enable programmers to reach higher, further and faster than before. Package managers (the online systems for sharing code) are key to a language's success; Perl, PHP, Python, Ruby and Node.js all have strong offerings. But which one is the best and what can we learn from each of them? This article is the first in a two-part series where I review each package manager. Part one focuses on searching and using packages and part two will look at how easy it is to upload and share packages.
Bookmark
TextBlob: Simplified Text Processing — TextBlob 0.5.0 documentation
https://textblob.readthedocs.org/en/latest/, posted 2013 by peter in development free language nlp python software toread
TextBlob is a Python (2 and 3) library for processing textual data. It provides a simple API for diving into common natural language processing (NLP) tasks such as part-of-speech tagging, noun phrase extraction, sentiment analysis, translation, and more.
Bookmark
An Efficient Way to Extract the Main Topics from a Sentence | The Tokenizer
thetokenizer.com/2013/05/09/efficient-way-to-extract-the-main-topics-of-a-sentence/, posted 2013 by peter in language nlp python toread
Last week, while working on new features for our product, I had to find a quick and efficient way to extract the main topics/objects from a sentence. Since I’m using Python, I initially thought that it’s going to be a very easy task to achieve with NLTK. However, when I tried its default tools (POS tagger, Parser…), I indeed got quite accurate results, but performance was pretty bad. So I had to find a better way. Like I did in my previous post, I’ll start with the bottom line – Here you can find my code for extracting the main topics/noun phrases from a given sentence. It works fine with real sentences (from a blog/news article). It’s a bit less accurate compared to the default NLTK tools, but it works much faster!