ftfy
shortuuid
ftfy | shortuuid | |
---|---|---|
2 | 5 | |
3,715 | 1,975 | |
0.7% | - | |
5.5 | 0.8 | |
20 days ago | about 1 year ago | |
Python | Python | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ftfy
-
You can't just assume UTF-8
If you’re actually in a position where you need to guess the encoding, something like “ftfy” <https://github.com/rspeer/python-ftfy> (webapp: <https://ftfy.vercel.app/>) is a perfectly reasonable choice.
But, you should always do your absolute utmost not to be put in a situation where guessing is your only choice.
-
7 Useful Python Libraries You Should Use in Your Next Project
ftfy
shortuuid
-
Ask HN: Could you show your personal blog here?
Unlike many people here, I don't like to write hundreds of mediocre posts. Instead, I prefer very few posts, that unfortunately are still mediocre.
If you're tired of all the perfection that exists on the internet, where every piece is deeply insightful and changes your life, I'd encourage you to read my articles, which only promise to shorten it:
https://www.stavros.io/
-
Short, friendly base32 slugs from timestamps
I use shortuuid[0] for that stuff, which also omits the capital letter I, and has some other niceties (I wrote the library). It works really well, and I like how small the IDs are.
[0] https://github.com/skorokithakis/shortuuid
- Ask HN: What are your favorite personal sites?
-
Building a Micro Business: What Services I Pay For
skorokithakis: developer of django-annoying and shortuuid
-
GUIDs Are Not the Only Answer
https://github.com/skorokithakis/shortuuid#usage
What are some alternatives?
fuzzywuzzy - Fuzzy String Matching in Python
pangu.py - Paranoid text spacing in Python
chardet - Python character encoding detector
xpinyin - Translate Chinese hanzi to pinyin (拼音) by Python, 汉字转拼音
pyfiglet - An implementation of figlet written in Python
Levenshtein - The Levenshtein Python C extension module contains functions for fast computation of Levenshtein distance and string similarity
Charset Normalizer - Truly universal encoding detector in pure Python
uniout - Never see escaped bytes in output.