View profile

Python packages worth checking out

Python packages worth checking out
By Apoorv Tyagi • Issue #6 • View online
Pythonย is anย extremely popular programming languageย that is being used officially by majority of organizations.
Part of the reason isย its exhaustive collection of packages to make your life easy.
So I have decided to bring to you the 3 python packages which you probably havenโ€™t heard of before, but can come pretty handy in your next project.

Furl
Furl makes parsing and manipulating URLs easy for you. Furl objects let you access and modify the various components of a URL.
Here is an example of โ€œpathsโ€ and โ€œqueryโ€ using furl ๐Ÿ‘‡
Furl
Furl
Although Pythonโ€™s standardย urllibย andย urlparseย modules provide a number of URL related functions, but using these functions to perform common URL operations proves tedious.
Thatโ€™s where Furl comes in.
Furl can be pretty useful while Implementing functionality for your Wrapper APIs.
Here is one more example of using furlโ€™s inline modification methods ๐Ÿ‘‡
Furl (Inline Methods)
Furl (Inline Methods)
Html2Text
This allows you to convert HTML code to clean, easy-to-read plain ASCII text. Better yet, that ASCII also happens to be valid Markdown.
Hereโ€™s a simple example ๐Ÿ‘‡
Html2Text
Html2Text
One more example to demonstrate the case where you want to ignore the conversion of LINKS ๐Ÿ‘‡
Html2Text
Html2Text
Faker
Faker generates fake data for you.
Whether you need to bootstrap your database, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you.
Useย faker.Faker()ย to create and initialize a faker generator, which can generate data by accessing properties named after the type of data you want ๐Ÿ‘‡
faker
faker
Tip : You can checkoutย radarย if you want to generate random date and time ๐Ÿ‘‡
radar
radar
๐Ÿ‘‹ Thatโ€™s it for this week. I hope you enjoyed it and have learnt something new๐Ÿคž
If you have more suggestions, Iโ€™d love to hear about them as well.
๐ŸปConsider subscribingย in case you havenโ€™t already and share this newsletter with those you feel can get benefit out of it.
ย See you on the Internet next Wednesday!
-Apoorv;
Find Me Elsewhere
Did you enjoy this issue?
Apoorv Tyagi

๐—” ๐—ป๐—ฒ๐˜„๐˜€๐—น๐—ฒ๐˜๐˜๐—ฒ๐—ฟ ๐—ฎ๐˜ ๐˜๐—ต๐—ฒ ๐—ถ๐—ป๐˜๐—ฒ๐—ฟ๐˜€๐—ฒ๐—ฐ๐˜๐—ถ๐—ผ๐—ป ๐—ผ๐—ณ ๐๐ฌ๐ฒ๐œ๐ก๐จ๐ฅ๐จ๐ ๐ฒ, ๐“๐ž๐œ๐ก ๐—ฎ๐—ป๐—ฑ ๐’๐จ๐Ÿ๐ญ๐ฐ๐š๐ซ๐ž ๐„๐ง๐ ๐ข๐ง๐ž๐ž๐ซ๐ข๐ง๐ .

๐—๐—ผ๐—ถ๐—ป ๐Ÿญ๐Ÿฌ๐Ÿฌ+ ๐—บ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฟ๐˜€ ๐ญ๐จ ๐ข๐ฆ๐ฉ๐ซ๐จ๐ฏ๐ž ๐š๐ฌ ๐š ๐๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ž๐ซ ๐—ฎ๐—ป๐—ฑ ๐ญ๐จ ๐ ๐ž๐ญ ๐ญ๐ก๐ž ๐›๐ž๐ฌ๐ญ ๐ญ๐ข๐ฉ๐ฌ ๐š๐ง๐ ๐š๐ซ๐ญ๐ข๐œ๐ฅ๐ž๐ฌ ๐—ฑ๐—ถ๐—ฟ๐—ฒ๐—ฐ๐˜๐—น๐˜† ๐˜๐—ผ ๐˜†๐—ผ๐˜‚๐—ฟ ๐—ถ๐—ป๐—ฏ๐—ผ๐˜… ๐Ÿ“ฉ

P.S. It is free (and fun!) :)

Tweet ย ย ย  Share
In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Powered by Revue